Re:More Dirty Coding Tricks from Game Developers (2010)
by krapp on Sunday August 02, 2015 @04:52PM
(#9992438)
Casey Muratori considers const a complete waste of time, so apparently that's a thing with some C/C++ programmers.
[ Parent
| on HN ]
Re:More Dirty Coding Tricks from Game Developers (2010)
by hibikir on Sunday August 02, 2015 @05:51PM
(#9992629)
If you want to go by authority, instead of by the fact that const just makes sense, there's this guy who claims to be a complete const nazi who you might have heard of. His name is John Carmack.
Re:More Dirty Coding Tricks from Game Developers (2010)
by cautious_int on Sunday August 02, 2015 @05:03PM
(#9992477)
That is why you should never learn from one exclusive source, especially if they don't provide valid arguments, and imply "trust me".
I saw a couple of his introductory videos and I think he is great to teach specifics about game programming, but should definitely not teach how to write C.
Re:More Dirty Coding Tricks from Game Developers (2010)
by lgieron on Sunday August 02, 2015 @05:12PM
(#9992495)
His argument is that he reckons that over his career he made very few bugs that could be avoided if he had used const. He admits that it's specific to his coding style and may not apply to other people.