|
Browse by Tags
All Tags » c++ (RSS)
-
hey folks, i've been reading TDWTF for a few years now... and i really hope this won't make my code end up here someday. that's why i'm asking. is encasing every single bit of loading in try-catch and logging any catches a wtf, or just good practise? i'm asking this because i'm...
-
[quote user="LordLiverpool"]Erm, well in Visual Studio 6.0 (that's 1998, people), Intellisense worked perfectly well.[/quote] C++ didn't , however. Maybe the additional complexity introduced since then crippled Intellisense? Then again, maybe not.
-
Hint: your selected forum editor interprets <something> as an HTML tag, and promptly deletes it. This tends to make code, such as yours, invalid.
-
Now that's not really a wtf. That's actually a pretty clever way of reducing memory allocation calls, which, for a game, is very useful. Now reviewing some code from the other team (which I thought we might reuse for our project) I bumped into this: It's a code for a class height_map that...
-
TRWTF is that it catches int . Okay, I admit that I threw a bool once, but it was in a solely personal program!
-
Putting something inside union is the idiom to show that you never expect that something to grow constructors or destructors. I can see two wtfs: 1) You didn't know the idiom. 2) They didn't explain the idiom well enough when you asked about it.
-
Overloading operators doesn't affect precedence. Oh, and the indentation is all messed up. Is it like this in the original code?
-
[quote user="Spikeles"] Because, on some architectures, char is not 1 byte in size. [/quote] That's false. [quote user="C99, 6.5.3.4(3)"] When [sizeof is] applied to an operand that has type char, unsigned char, or signed char, (or a qualified version thereof) the result is 1...
-
[quote user="lolwtf"][quote user="Spectre"]My sarcasm detector might be broken, but how's that , for example, useless?[/quote]Now that's the real WTF. Conflicts with the STL? How the fuck does that make it to production?[/quote] Remember, C++ was standartized in 1998, and...
-
So I've had the pleasure of taking over a rather large codebase and have to share some of the pain that I am experiencing or I'm going to go nuts. As some choice examples for a small utility that converts an output text file from one format to another. ls -l on the directory reveals: total 20...
|
|
|