Usually, I like a more AOE focused secondary for engineer, as his primaries aren't great for dealing with crowds. Turret EM Discharge helps to cover this weakness, BUT will be most effective if you make use of repellant platform funnels into the turrets. T1 Upgraded Capacitors is extremely important, as you need to electrify a turret to make it discharge, but other mods are more or less personal preference. The EM discharge does deal friendly fire, but it's a pretty small amount, and the electric field doesn't do DOT to dwarves.
The shard diffractor shines as a single target monster in this build. An alternative, if you're confident, is to take 31221 with Overdrive Booster OC. It'll do even better damage, but will obviously kill your movement. If you're not able to electricute enemies with stubby or turret discharge before firing shard diffractor, you're missing out on a lot of damage, try to electrify them if you can.
My engineer playstyle always involves repellant plats, but they're borderline necessary for a Turret EM Discharge build to funnel bugs.
I usually take two turrets, but again because of EM Discharge, they're even better. Quick Build helps you get your primary AOE damage sources out faster, it's an even better mod than usual. If you're a hawkeye lover, this build can use it well since it allows for more freedom in where you place your turrets, but I can't personally justify losing so much damage.