Re: Coding styles
toggle quoted messageShow quoted text
First coding ~ was typing games out of Hot CoCo magazine into everything from 4k to 64k color computers with my son….color basic…
Then first job coding was a little columnar based RPG on AS/400’s…..if you can see the girl in the red dress….then you were good to go….
But, I immediately pushed myself to head of the pack and was an early adopter of free form RPG, a quasi- ‘real’ language with sort of procedures….
In my travels….I found two kinds of programmers….hoarders and sharers…..
Those who think they are so slick they can write code that no one else can maintain….therefore maintaining a sense of false job security….some for a while (these are your stressful, suicidal coders)…..always on call over night to maintain their nightmares…..not much into sharing anything…..
And then I found those who eagerly shared the latest whizz bang routine they had come up with…..along with the documentation to allow you to comfortably use it….so it was always easy to share what you did with them….
Probably some of the hard to maintain code is from laziness….(from experienced lazy programmers…..new programmers might be given a little slack….but not after any intro like this), and some might be from rushed deadlines in the business world and self imposed deadlines in hobby stuff….but, I found most of the hard to maintain code in the business world….came from greedy people…..
The one thing extra I would add…..is add those comments when you write the code…..too many reasons to list to do this….far worse than NO comments is the comments that are added after the fact…..maybe reciting the business rule….not what was actually coded…and following not set pattern or style…
That was then….wonder what any code I might write today will look like….
anyway….just my thoughts