Indeed, some technical writings choose to place the comma outside in the event that placing it inside might cause confusion. However, technical pieces rarely follow strict english guidelines; the two are very different.
Yep, it's a zoo. As annk said, it's important to know your audience and the rules for the particular publication.