You can lose this key…

You can lose this key on your keyboard and still write perfectly decent code. Which letter of the alphabet isn’t used in any of the ANSI C keywords?

(How ironic!)

[yes, I forgot ‘q’]

This entry was posted in Uncategorized. Bookmark the permalink.

19 Responses to You can lose this key…

  1. Dusk says:

    Unless my list of keywords is missing something, both J and Q appear to qualify.

  2. Andreas says:

    More like “ode”, right? (-:

  3. Martin Thoma says:

    a: float
    b: break
    c: struct
    d: unsigned
    e: unsigned
    f: float
    g: goto (seriously?)
    h: while
    i: unsigned
    j:
    k: break
    l: float
    m: enum
    n: unsigned
    o: float
    p: typedef
    q:
    r: struct
    s: unsigned
    t: float
    u: unsigned
    v: void
    w: while
    x: extern
    y: typedef
    z: sizeof

    So the answer is j and q. What’s ironic about that?

  4. Harold says:

    I think you’d be fine without ‘j’ or ‘q’

    I really enjoy the posts on this blog.

    Take care.

  5. Evan says:

    Looks like “j” and “q” to me.

  6. JohnH says:

    j and q.

  7. Catprog says:

    J or Q?

    (looked up a list on the web)

  8. Duncan Domingue says:

    Is it j, q, or z?

  9. MagerValp says:

    Which *two* keys, or am I missing something?

  10. Stephen says:

    Yeah, I got two also

  11. paxswill says:

    Well, expanding from just keywords to all of the other characters used in the language I get this set:

    !"#%&\'()*+,-./01356789:;?ABCDEFGHIKLMNOPRSTUVWXYZ[\\]^_`abcdefghiklmnoprstuvwxyz{|}~

    As the shift key is needed for some, I added the characters for those keys that are already in there (ex: ‘^’ is in there, so I added ‘6’). Subtracting this set from the printable characters set (at least in Python’s string module) yields the J, Q, 2, 4, tab and return/enter key. Using trigraphs frees up the \, 6, 3, [, ], and ` keys.

  12. Ignacio says:

    I concur, two letters.

    And I’m definitely losing something because I don’t find the irony in those two letters.

  13. Andrew says:

    None of you regularly use ‘j’ for incrementing indices?

    • Michael says:

      They’re probably using ‘jj’. 🙂

    • Shamus H says:

      I use i, j, & k as loop indices all the time (if I ever get to k, I usually know that something’s wrong with my algorithm ;-).

      Also, since I use Qt, there’s no way in hell I could get by without my ‘Q’ key. 😛

  14. sapphirepaw says:

    Saw this again and realized: with omni complete (or similar features in IDEs) there are a lot of letters I could probably dodge. I only need to be able to start all the keywords, and it omni complete itself uses only Ctrl + X/O/N/P. Maybe not even N/P if you’re excessively careful.

    But it’s a moot point, because I wouldn’t use vim without all the letters.

  15. joel garry says:

    I learned to remap keyboard emulators back in the day, when the D key broke on the Duplix (1980’s vintage unix) system console.

Leave a Reply

Your email address will not be published. Required fields are marked *