Coding style is very important. Code should be easy to follow and read. I speak from professional experience. NOT teaching the good coding style cheats the students.
Yep. The school that caves to this requirement is making their students unemployable. If they manage to land a job, they won’t keep it for very long. They’ll drive their co-workers nuts and the lead engineer will be telling the chief engineer, “We gotta get this clown outta here.” When they’re in their probationary period, how hard do you think that will be? Buh bye, PC loser!
Exactly.
Slacking [which today's yutes learn in SPADES] also leads to poor documentation. Teaching discipline in your coding corrects some of that.
I just hate to work on undocumented software. It is especially bad when the code is either too clever or just pedestrian.
“Coding style is very important. Code should be easy to follow and read. I speak from professional experience. NOT teaching the good coding style cheats the students.”
totally. aside from being correct and robust, style is everything, because great style is what allows others to understand and easily modify a code; great style also helps to prevent bugs and makes finding bugs easier.
style includes a large number of elements, including:
1. Extensive and USEFUL commenting
2. Indention and use of a large amount of space (as opposed to scrunching everything up)
3. Avoidance of multi-line statements
4. Avoiding use of complex, esoteric, and obtuse constructs, including avoiding uncommon language elements unless there’s a damn good reason.
5. And of course use of structured programming techniques, such as avoiding breaking out of complex, nested loop structures in a willy nilly fashion, etc.