BTW, that is obviously C++ http://www.gamedev.net/topic/642323-my-programming-style/page-2#entry5057696
https://dev.visucore.com/doom3/doxygen/classid_str.html
Can't be old code.
BTW, that is obviously C++ http://www.gamedev.net/topic/642323-my-programming-style/page-2#entry5057696
https://dev.visucore.com/doom3/doxygen/classid_str.html
Can't be old code.
dude what's wrong with u? Seriously.. Doom3 was released in 2004!! By a guy famous for being "late to the C++ party".... with a 3 year typical dev time.. the code probably started in 2001... with a lot of cut & paste from older engines.
Do you realize it's 2013 don't you? Compilers are fine, computers are fine.. C++11 is almost a decent language to work with.. optimization techniques do not rely on those stuff anymore.. it's all about memory access and multithread and COMPLEXITY MANAGEMENT.. you are trying to solve problems that dont even exist anymore.
Stefano Casillo
TWITTER: [twitter]KunosStefano[/twitter]
AssettoCorsa - netKar PRO - Kunos Simulazioni
I smell hypocrazy. You talk about innovation, and yet you show code from +10 years ago to justify your inferior coding conventions. I'm not sure, something doesn't sound right here... somebody help me out plz?
</irony>
Seriously, even if those out-dated code sources were actually the way to take your coding style from... what would be so special about your coding style then? I mean, why don't I make such a thread, claming to have developed the next best coding convention, by using the "const" keyword to disallow modification of variables in my program. Yeah, totally frigging awesome, nobody would have thought about that. (damn, irony wasn't really off). And if what gets written in such a wasn't so obviously right, but outdated and rather beginner-ish, you should be fully accepting of the fact you are getting criticised and offered constructive help, rather than calling the other, more experienced people wrong.
<general rant>
SERIOUSLY, whats up with people nowadays? Whats so hard at accepting you are wrong? Not aimed at the OP directly, but everybody and their sister tries to justify all their actions up until the end, even if it is obvious they are wrong, bringing the most ludacris excuses / "proofs" they are right. Whats so hard on saying " oh, yeah, I see now, I was wrong, thanks for offering me a better way" ? But, I digress...
This topic was of questionable utility to begin with and has degenerated significantly from there, so I'm locking it. I've also restored attempts on the part of some users to sanitize the thread by deleting their posts. Please don't engage in such childish behavior.
Have a nice day.