Comment How Would You Teach 'Best Practices' For Programme (Score 1) 220
That totally depends on the domain of programming.
I am a scientist and program mathematical expression for physics.
I don't do Web programming. Hence 99% of what people call programming I do not.
I do not use C or any of its derivatives.
I follow the School of Niklaus Wirth.
"Make it as simple as possible, but not simpler" A. Einstein.
A procedure is specified with the word PROCEDURE, not some
hard to see syntax ala C.
Best practices entail using MODULEs, TYPEs, VARiables, CONSTants.
The language I use (Component Pascal) has built in garbage collection so
no need for a deallocation routine. It is strongly typed.
With C if you can get your code to compile you are only 50% done.
With Component Pascal if your code compiles you are 80% done.
Text editing and code development are woven together with the BlackBox
development environment of Component Pascal. The carat is placed at the character where
the error is detected (not just at the start of the line). That makes debugging very efficient.
The compiler is very fast so quick error correction can take place and one just walks
down through the code making corrections.
That whole environment is very different from what most of you experience
and consider "best practices".