Everytime I was the car, I just wipe the engine bay down with a cloth and some spot detailer.
On my "other" cars that see weather etc, I put plastic bags over fuse boxes and alternator and spray the engine bay down with cleaner/degreaser and agitate with a brush, then rinse with a flow of warm water and blow dry with an electric hand held blower.