@ID_AA_Carmack You've said your piece on Cocoa before, but this is one big thing that disappears in ObjC. Verbose, but reads like a dream.
-
-
-
@billjings I was always fond of that aspect of objective C, I just like strong typing and static dispatch by default more.
-
-
-
@ID_AA_Carmack another bool trap: trying to typedef uint8_t bool; to compensate VC++'s lack of C99. Welcome if (ptr) truncating bugs & alike -
@gpakosz@ID_AA_Carmack That was the reason for the recent MySQL massive root vulnerability right? - View other replies
-
@TheJare@id_aa_carmack more seriously I have no clue about MySQL. In our case, 64bit ptr with lower 32bits == 0 defeated if (ptr) tests -
@gpakosz@id_aa_carmack In MySQL it was something akin to "char Compare(int a, int b) { return a-b; }" so 1/256 root passwords were 'equal'
-
-
@ID_AA_Carmack Fortunately, in some cases (here for JavaScript apps) such Boolean traps are rather easy to detecthttp://ariya.ofilabs.com/2012/06/detecting-boolean-traps-with-esprima.html … -
@ID_AA_Carmack also boolshit. -
-
@ID_AA_Carmack Gotta love Objective-C. -
@optshiftk@ID_AA_Carmack I was thinking the same thing while reading that. - View other replies
-
@pbowden@optshiftk@ID_AA_Carmack Often enough to agree. We’ll give the ghastly “hidden” double-negative a pass.
-
-
-
@ID_AA_Carmack I think that having f.e. glEnable(GLenum cap, bool enabled) would be much better API than current glEnable/glDisable. - Show more
-
-
@ID_AA_Carmack I wish C++ allowed online enum definitions in function declarations: void foo(enum{DoBar,DontDoBar} bar); -
@ID_AA_Carmack of course, booleans aren't the only function arguments that can be obscure... -
-
@ariyahidayat I think that being quote by THE@ID_AA_Carmack is a sign of eternal glorification :) -
@detronizator It's all downhill from here :)
-
-
@ID_AA_Carmack@ariyahidayat I hope the knowledge of "boolean trap" problem will get more wide spread now. -
@ID_AA_Carmack a great read on this problem from CMU's Bob Harper:http://existentialtype.wordpress.com/2011/03/15/boolean-blindness/ … -
Interesting article on API design courtesy of
@ID_AA_Carmack :http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Bill Phillips
Gregory void
Javier Arevalo
Ariya Hidayat
git push -f
Kyle S.
Phillip Bowden
Matt Drance
Branimir Karadžić
Ted Mielczarek
Spooky Bear of Doom
Ivan De Marino
Adam Foltzer
asuter