• Home
  • About

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
By using Twitter’s services you agree to our Cookie Use and Data Transfer outside the EU. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
ID_AA_Carmack's profile
John Carmack
John Carmack
John Carmack
Verified account
@ID_AA_Carmack

John CarmackVerified account

@ID_AA_Carmack

Oculus VR CTO

Joined August 2010
  • © 2016 Twitter
  • About
  • Help
  • Terms
  • Privacy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @

Retweet this to your followers?

Optional comment for Retweet
 
 

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
140

Are you sure you want to delete this Tweet?

Promote this Tweet

Block

  • Add a location to your Tweets

    When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more

    Profile summary

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    Preview

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Buy Now

    Hmm... Something went wrong. Please try again.

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    Previous Tweet
    John Carmack Verified account ‏@ID_AA_Carmack 16 Jul 2012

    I was going to comment on use of booleans in API, and I found that it has an idiomatic name: "boolean trap":http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html …

    • Retweets 188
    • Likes 107
    • Moofles Jonathan Tsai unʞɐq ʎpuɐ Konrad Ciekot Wojtek M. Ronald Wotzlaw Charles Beauchemin Amlet Spooky Evil Bit
    3:27 PM - 16 Jul 2012
    0 replies 188 retweets 107 likes
      1. Bill Phillips ‏@billjings 16 Jul 2012

        @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.

        0 replies 0 retweets 0 likes
      2. John Carmack ‏@ID_AA_Carmack 16 Jul 2012

        @billjings I was always fond of that aspect of objective C, I just like strong typing and static dispatch by default more.

        0 replies 0 retweets 0 likes
      1. Gregory void ❤ Pakosz ‏@gpakosz 16 Jul 2012

        @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

        0 replies 0 retweets 0 likes
      2. Javier Arevalo ‏@TheJare 16 Jul 2012

        @gpakosz @ID_AA_Carmack That was the reason for the recent MySQL massive root vulnerability right?

        0 replies 0 retweets 0 likes
      3. View other replies
      4. Gregory void ❤ Pakosz ‏@gpakosz 17 Jul 2012

        @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

        0 replies 0 retweets 0 likes
      5. Javier Arevalo ‏@TheJare 17 Jul 2012

        @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'

        0 replies 0 retweets 0 likes
    1. Ariya Hidayat ‏@AriyaHidayat 16 Jul 2012

      @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 …

      0 replies 1 retweet 2 likes
    2. git push -f ‏@jamesiry 16 Jul 2012

      @ID_AA_Carmack also boolshit.

      0 replies 1 retweet 1 like
      1. Kyle S. ‏@optshiftk 16 Jul 2012

        @ID_AA_Carmack Gotta love Objective-C.

        0 replies 0 retweets 0 likes
      2. Phillip Bowden ‏@pbowden 16 Jul 2012

        @optshiftk @ID_AA_Carmack I was thinking the same thing while reading that.

        0 replies 0 retweets 0 likes
      3. View other replies
      4. Matt Drance ‏@drance 16 Jul 2012

        @pbowden @optshiftk @ID_AA_Carmack Often enough to agree. We’ll give the ghastly “hidden” double-negative a pass.

        0 replies 0 retweets 0 likes
      1. Branimir Karadžić ‏@bkaradzic 16 Jul 2012

        @ID_AA_Carmack I think that having f.e. glEnable(GLenum cap, bool enabled) would be much better API than current glEnable/glDisable.

        0 replies 0 retweets 1 like
      2. Show more
    3. Ted Mielczarek  🎮 ‏@TedMielczarek 16 Jul 2012

      @ID_AA_Carmack I wish C++ allowed online enum definitions in function declarations: void foo(enum{DoBar,DontDoBar} bar);

      0 replies 1 retweet 0 likes
    4. Spooky Bear of Doom ‏@mister_borogove 16 Jul 2012

      @ID_AA_Carmack of course, booleans aren't the only function arguments that can be obscure...

      0 replies 0 retweets 1 like
      1. Ivan De Marino ‏@detronizator 16 Jul 2012

        @ariyahidayat I think that being quote by THE @ID_AA_Carmack is a sign of eternal glorification :)

        0 replies 0 retweets 0 likes
      2. Ariya Hidayat ‏@AriyaHidayat 16 Jul 2012

        @detronizator It's all downhill from here :)

        0 replies 0 retweets 0 likes
    5. Denis Dzyubenko ‏@ddenis 16 Jul 2012 Oslo, Norway

      @ID_AA_Carmack @ariyahidayat I hope the knowledge of "boolean trap" problem will get more wide spread now.

      0 replies 1 retweet 0 likes
    6. Adam Foltzer ‏@acfoltzer 16 Jul 2012

      @ID_AA_Carmack a great read on this problem from CMU's Bob Harper:http://existentialtype.wordpress.com/2011/03/15/boolean-blindness/ …

      0 replies 0 retweets 0 likes
    7. asuter ‏@asuter 16 Jul 2012

      Interesting article on API design courtesy of @ID_AA_Carmack :http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html …

      0 replies 0 retweets 0 likes

    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.

      Promoted Tweet

      false

      • © 2016 Twitter
      • About
      • Help
      • Terms
      • Privacy
      • Cookies
      • Ads info