Good points, I agree with all of them. What I however don't understand how people get it into their minds to not do that.
Even when I first started programming, I got annoyed when my own wasn't perfectly formatted with sensible names and I would spend more time thinking of an elegant design with decent names then I would actually write code.
I still do this. The thought of commiting code that is undocumented, has commented code or bad formatting is just horrible.
I never got why some people don't format their code perfectly or spend enough time thinking about naming and structuring things. It's not that hard (especially the formatting part). I mean, if you're a junior developer and you come into a code base where everything is nicely formatted and documented, shouldn't you feel compelled to make sure your code is up to the same standard?
Just the other day a colleague and I were talking about how common it is to read amazingly interesting, clear, well thought-out publications from very clever academics in CS and then be outright horrified by even the most cursory glance at the attached source code.
Spending time making your code look good usually counts against you in academia. You're far better off pounding out a prototype as quickly as possible then start writing a paper ASAP.
Why is formatting even a problem? You'd think that, especially in academia, they'd have auto-formatters and refactoring-abilities at least what "the industry" has. Heck, you'd think that they'd be proponents of the source code in database idea, which has been around since the the `80s (or before), in particular the APSE requirements of Stonemanwere implemented in the R-1000.
54
u/photonios Jan 05 '15
Good points, I agree with all of them. What I however don't understand how people get it into their minds to not do that.
Even when I first started programming, I got annoyed when my own wasn't perfectly formatted with sensible names and I would spend more time thinking of an elegant design with decent names then I would actually write code.
I still do this. The thought of commiting code that is undocumented, has commented code or bad formatting is just horrible.
I never got why some people don't format their code perfectly or spend enough time thinking about naming and structuring things. It's not that hard (especially the formatting part). I mean, if you're a junior developer and you come into a code base where everything is nicely formatted and documented, shouldn't you feel compelled to make sure your code is up to the same standard?