Something you should ALWAYS remember,
Just because you know the programming language inside and out,
doesn't mean your maintenance crew does. If the machine goes down at all hours of the night and maintenance cannot understand the code, guess who gets the call to come in and fix the problem.
An OEM I used to work for had three programmers, myself being one of them.I have had to debug several programs written by them and it was not easy. one guy said a>b or a<b, never considered a=b. when the program stopped, there was 12 lines of code that could have created the problem. I finally went to the boss and had him rewrite the code so we could debug it. When the customer and I pointed out what was happening, he said I never considered these conditions. Another loved sequencers, masked moves, and no documentation.
regards,
james