If you're hand coding you need to start out understanding how the G-Code works, if you have a decent CAD/CAM package you just need to get the config right and the code comes out right.
There are so many ways to skin this cat, you can rough and finish a 4-Axis job in 3 Axes with manual 90 degree indexing, without using a 4th.

- Nick