in reply to How has your coding style changed over the years?
The only things I can come up for things that changed over the past 40+ years:
-
sub foo {
instead of
sub foo {
where the old style was mainly used because it made vi happy on the { and } navigation keys
- Indentaion 6 to 4 spaces. That was when I stopped using Pascal and Basic
I know many will NOT agree with my style, but at least I am very consistent. *AND* I have an explanation for every guide I follow, which I cannot say for people leaving school and just follow the basic rules of their IDE.
Anyway, not having a space between the function name and the opening paren is a reasong for me to not use the language at all.
I've summed it all up on my style guide. I will not accept PR's that do not strictly follow that guide.
Whatever style you follow, do so consistently, otherwise maint will be a nightmare.
Oh, and I do care a single *** about leading tabs or spaces even if you mix them. I don't see them. My editor does the right thing.
Enjoy, Have FUN! H.Merijn