Process to write code

Writing code is not a trivial exercise when done for the first time. However, having sufficient training material and reference documents helps a lot.

This is not available in many projects which are too new, too old etc. In such situations, the coder needs to do a lot of improvisation and head scratching especially if fixing bugs in someone else’s code.