John Carmack's comment on Doom 3's code style
1–10 of 210 posts
Re: John Carmack's comment on Doom 3's code style
#2"The major evolution that is still going on for me is towards a more functional programming style, which involves unlearning a lot of old habits, and backing away from some OOP directions."
Re: John Carmack's comment on Doom 3's code style
#3My heart grew a little warm with the last paragraph of John Carmack's comment: "The major evolution that is still going on for me is towards a more functional programming style, which involves unlearning a lot of old habits, and backing away from some OOP directions."
Re: John Carmack's comment on Doom 3's code style
#4Immutability...one less thing to worry about.
Re: John Carmack's comment on Doom 3's code style
#5Re: John Carmack's comment on Doom 3's code style
#6Re: John Carmack's comment on Doom 3's code style
#7My heart grew a little warm with the last paragraph of John Carmack's comment: "The major evolution that is still going on for me is towards a more functional programming style, which involves unlearning a lot of old habits, and backing away from some OOP directions."
http://www.altdevblogaday.com/2012/04/26/functional-programm...
Re: John Carmack's comment on Doom 3's code style
#8My second programming lecturer ever, refused to correct my assignments if these rules were not followed. He never told us said rules though. This was before I learned what an array was! Got 0% on my first two assignments with him but eventually he corrected the next ones with a good life lesson.
Frankly its the only thing I remember from that asshole but was probably one of the most important lessons in my opinion!
Re: John Carmack's comment on Doom 3's code style
#9Re: John Carmack's comment on Doom 3's code style
#10The author seems to like the minimalistic comments. I wonder if the team looked back what their thoughts would be. I can barely look at code I wrote a year ago and not ask what the hell I was thinking, but in my mind it was absolutely clear at the time. I guess an impartial third party reading it and understanding it is a strong testimonial.
The author makes a good point that comments are just more text that you need to maintain, and whenever you make changes you now have to make changes in two places: in the code, and in the comment - (and I guess in the unit tests as well, depending on the change...)
The best code I've personally seen has been code with no comments and an attached document explaining how the system works and how modules tie together.