We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
John Lorre
owensd You're right, I wouldn't write a vector like that. But when you are taught OO, to "model t…
»
David Owens II
You're right, I wouldn't write a vector like that. But when you are taught OO, to "model the obje…
»
Gafgar (Anders Davallius)
I agree, const is not hard to go around... it's not real meant for security, it's just meant to p…
»
Gafgar (Anders Davallius)
what... this is just silly. You would never write a Vector2f like that, and waht does a virtual f…
»
John Lorre
Owen is right that const is mostly an annotation for you to expressing intent of 'Do not mess wit…
»
Mārtiņš Možeiko
Yes, this is true. VS2013 ships with xaudio2.h header and import library from Windows SDK 8. And…
»
Mārtiņš Možeiko
owensd You cannot make that claim at all. What if function() created a thread that delayed execut…
»
David Owens II
@5sw, OOP is really about the following things: encapsulation extensibility via inheritance…
»
David Owens II
You cannot make that claim at all. What if function() created a thread that delayed execution of …
»
Jace Bennett
5sw A lot of things that are listed here as disadvantages of OOP don't really have anything to do…
»
Sven
OOP does have nothing to do with how the data is actually laid out in memory. Yes, it will take m…
»
norswap
Just my two cents: what's good about OOP is coding to interfaces. New programming languages seem …
»
Sven
@mmozeiko: Yes in your example const doesn't help because it shows aliasing issues. There restric…
»
Dale Kim
I'm going to have to disagree with you 5sw on performance issues being a myth on this one. Tony …
»
norswap
Hash functions are tricky :) You might find this post interesting (it compares the uniformity of…
»
Mārtiņš Možeiko
Minor nitpick - Unity uses UnityScript, not JavaScript. It's based on JS syntax, but it has diffe…
»
Dale Kim
I would highly recommend using more items than 1000 if you want to check performance. 1000 reall…
»
Sven
A lot of things that are listed here as disadvantages of OOP don't really have anything to do wit…
»
Dale Kim
In response to 5sw: Past me would have agreed with what you said, but today me: I disagree compl…
»
Mārtiņš Možeiko
Ok, that makes sense.
»
norswap
Nice work, I like it :)
»
Mārtiņš Možeiko
Also using const can help the compiler generate better code. While I'm all pro-const, I've never …
»
Sven
const should be used everywhere, where it makes sense. Of course when one starts to use const one…
»
John Lorre
There is no logical or even economical reason (RPI would be cheaper in any case). I'm not even tr…
»
Mārtiņš Možeiko
What would be advantage of STM32F4 over RPi? My understanding is that STM32F4 is still small ARM …
»
mojobojo
Thank you for that. I forgot about checking warning levels, that is something I need to do more o…
»
John Lorre
I am really considering to do this, actually I have been thinking about this a few weeks now. My …
»
David Owens II
If you enable warnings the compiler will tell you. It's warning C6282 for MSVC. https://msdn.mic…
»
Casey Muratori
I believe LLDB is still just a command line debugger. GDB has problems, certainly, but on the wh…
»
Casey Muratori
I really want to do that but I don't have the expertise! I want a CPU guy to do a Handmade CPU a…
»