News for hackers. Stuff that matters.
Re:A Real Keyboard for Programmers? by bhauer on Thursday August 29, 2013 @01:38PM (#6297221)
I agree with what I take as the underlying premise of this blog entry: if you're going to call something a "keyboard for programmers" it would be nice if you made concerted effort to improve matters for programmers, moreso than just tactile ergonomics.

However, I have mixed feelings with several of the author's specific points.

1. In general, I think a keyboard should retain all legacy keys, including Scroll Lock and Printscreen because they have acquired specific meaning through their many years. If a new keyboard were paired with a new operating system, then I'd be comfortable--even happy--with disposing of legacy. As it is though, Printscreen is the easiest way to grab a screen-capture or window-capture.

2. The CODE keyboard may be marketed as designed for programmers, but it seems to also carry over a certain "gamer programmer" target. Hence, the PS/2 adapter (I believe some harder-core gamers profess to PS/2 being faster).

3. Space is indeed very important. I am not sure if the author is just pointing that out matter-of-factly or intends it as criticism. I assume the prior.

4. Very much agree that Caps Lock should be diminished in importance. It should be located on some fringe alongside Scroll Lock. Many of my colleagues and I simply disable the key outright.

5. Also agree that backslash should be diminished in importance. However, I personally would like a "programmers keyboard" that made all variations of brackets < > ( ) [ ] { } / \ available (a) without modifier keys of any sort and (b) in side-by-side pairings. It bothers me that / and \ are not side-by-side on most/all keyboards.

6. Strongly disagree that Page Up (and presumably Page Down, although it's not cited by name) is a dumb key. I press Page Up, Page Down, Home, and End hundreds of times per day.

7. I don't actually like that function keys are often trimmed to half-height even on desktop keyboards. That is fine for a laptop. But on my desktop, I have the room for an additional row of full-height keys, thank you. In general, desktop keyboards that are built to laptop aesthetics are dubious to me.

8. Strongly disagree that arrow keys lack importance. I smell a vimmer. Oh, sure enough, he mentions the ADM3A. Please, I beg of you, vimmers: don't pretend to speak for all programmers.

9. Strongly agree with the premise that a programmer's keyboard should avoid use of modifier keys for symbols. I have often ranted that programming language designers should avoid arrow operators -> and => in their syntax because of the shift transition required to type an arrow on most keyboards.

I like the premise of this blog entry a great deal! Please, let's see some actual innovation in programmer's keyboards. But apparently, we should have one style for vimmers and one for other programmers. :)

Re:A Real Keyboard for Programmers? by mlwarren on Thursday August 29, 2013 @02:03PM (#6297423)
I stopped reading after the Page Up comment. Keyboard preferences are obviously subjective and the author of the post feels very strongly in a way that I don't agree with.

I used the wireless Apple keyboard for a while but I missed Home/End/Page Up/Page Down. Also had a lot of trouble swapping it back and forth between my OSX and Windows machines.

At least the CODE keyboard will add more variety. At the end of the day that's what people really need.

Re:A Real Keyboard for Programmers? by xahrepap on Thursday August 29, 2013 @03:03PM (#6297865)
Mac has remapped CMD+[arrow] to Home, End, PgUp, PgDn. I think it's much easier that way than to have them way off to the side.
Re:A Real Keyboard for Programmers? by mlwarren on Thursday August 29, 2013 @03:12PM (#6297932)
I don't agree. I use a full size wired Apple keyboard now and use the PageUp/PageDown buttons. I prefer it that way. Also Home/End scroll to the top and bottom of the entire document vs the beginning and end of a line and I've had to fix that in software settings.

That said, everyone has their preferences. I think someone else in the comments mentioned how it would be nice to have a fully 100% customizable keyboard. I agree with that idea.

Re:A Real Keyboard for Programmers? by jerf on Thursday August 29, 2013 @02:20PM (#6297552)
"Very much agree that Caps Lock should be diminished in importance.... Many of my colleagues and I simply disable the key outright."

Augh! Don't do that! Remap it to something useful! CTRL is popular, but I'm loving backspace, personally. It's a key that never comes up if you just count keys based on taking text file samples, but I for one like having it available where it does not rip my fingers off the home row. (Since I use Dvorak, the home row is actually meaningful to me, since it is useful, unlike the standard QWERTY homerow.) But I don't really care what you remap it to, just don't leave such valuable space sitting there!

Backspace (the original one) I remapped to switch active windows. I've really been eyeing that Tab key, too; it is not unused (many emacs programming modes use it as "reindent this line to the proper level"), but I've wondered if it couldn't be a bit more effective. Not sure what to reassign it to yet, though.

Re:A Real Keyboard for Programmers? by xahrepap on Thursday August 29, 2013 @03:02PM (#6297847)
[ESC] is my personal preference. I will never look back, and I never have once needed the capslock key since I switched it out.
Re:A Real Keyboard for Programmers? by danneu on Thursday August 29, 2013 @04:44PM (#6298500)
Best of both worlds: CTRL when used as modifier, ESC when pressed alone.

- On OSX: https://pqrs.org/macosx/keyremap4macbook/

- On Linux: https://github.com/alols/xcape

Re:A Real Keyboard for Programmers? by bhauer on Thursday August 29, 2013 @02:24PM (#6297583)
That's a good point. Caps lock is where I'd like to have Control. SOLD!
Re:A Real Keyboard for Programmers? by jfb on Thursday August 29, 2013 @01:44PM (#6297263)
I think there should be a 100% remappable keyboard. I never use any of the legacy key functions, but the switches are precious on a fixed piece of hardware. It is maddening to me that there are dead keys on my keyboards; having a completely soft layout would allow me to customize things exactly the way I want.
Re:A Real Keyboard for Programmers? by jerf on Thursday August 29, 2013 @02:15PM (#6297512)
"I think there should be a 100% remappable keyboard."

You have one. It's the one you typed that post on. A keyboard just emits numbers, it's up to the computer OS to determine what to do with it.

Exactly how to customize your keyboard is OS-specific, but it can be done in all the major ones, as far as I know. (Can't commit to Windows 8. Windows 7 did require some unpleasant registry hacking for changing caps lock.)

If you want control over what your keyboard does, take it.

Incidentally, the big key to trying things out is that if you remap a new function onto Caps Lock and you want to see if it works for you, be sure to demap the other copy of the key. If you make Caps Lock a new Backspace, you'll never use it. If you make Caps Lock a new Backspace, and then demap the current one, you'll literally be adjusted in a matter of minutes, and if you decide you don't like it, returning is also a matter of minutes.

Once you work out what you need to do for your OS, keyboard layout experimentation is far more rapid than people realize, I think.

Re:A Real Keyboard for Programmers? by numo16 on Thursday August 29, 2013 @03:06PM (#6297886)
On windows I use Autohotkey [1] to remap keys (capslock to backspace, qwerty to colemak, etc...), no registry hacks required. You just have to remember to run the script on startup.

[1]: http://www.autohotkey.com/

Re:A Real Keyboard for Programmers? by Marwy on Friday August 30, 2013 @05:41AM (#6300894)
Some time ago I used it to quickly change my layout from qwerty to colemak, and often it couldn't keep up with my speed (and I'm an average typist: ca. 65 WPM), which resulted in wrong order of characters. I tried both interpreted and compiled version - no difference. It wasn't a beefy machine, though, so with your i5s and 8 gigs it may work well ;-).
Re:A Real Keyboard for Programmers? by moogly on Thursday August 29, 2013 @03:59PM (#6298248)
On Windows, MSKLC is what you should use: http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx
Re:A Real Keyboard for Programmers? by bhauer on Thursday August 29, 2013 @02:07PM (#6297451)
I'd like that too. Wasn't that the premise of that ultra expensive keyboard with individual OLED displays for each key [1]? I've never seen one first hand because I live in the world of mere mortals.

Hard to conceive of spending that much and having to continue typing after all. If I had that kind of money, I'd have a keyboard chauffeur.

[1] http://en.wikipedia.org/wiki/Optimus_Maximus_keyboard

Re:A Real Keyboard for Programmers? by mike_h on Thursday August 29, 2013 @02:11PM (#6297484)
The Kinesis Advantage line is fully remappable, including macros. It's also premium hardware (nice switches) and a supremely ergo layout, with most keys within reach of the home row, and the thumb region divided up into multiple frequently-used (remappable) keys:

http://www.kinesis-ergo.com/advantage.htm

Don't be cowed by the esoteric appearance; it's really just a tweak on the standard layout.

Re:A Real Keyboard for Programmers? by jfb on Thursday August 29, 2013 @02:15PM (#6297511)
Yeah, I've been using a Kinesis for more than a decade. I've never gotten around to doing the full remap, however.
Re:A Real Keyboard for Programmers? by xntrk on Thursday August 29, 2013 @04:38PM (#6298461)
Kinesis is so worth the money. I have been using mine for about 4-5 years. swapped my esc and capslock ages ago.
Re:A Real Keyboard for Programmers? by lcedp on Thursday August 29, 2013 @02:33PM (#6297652)
There are class of keyboard like [1]. They are used for specific operator cases but I find fascinating the idea of implementing your own layout from scratch. Usually they have more keys then standard keyboard has. So you could arrange Greek letters in a separate raw; or split alphanumerics to the edges and place arrows in the center; or have to enter keys for both hands; etc

[1] http://www.cherrycorp.com/english/keyboards/POS/SPOS_Rows_Co...

Re:A Real Keyboard for Programmers? by ChuckMcM on Thursday August 29, 2013 @02:17PM (#6297527)
We're all brown moties [1] Keyboards are fundamentally a personal preference, and perhaps like instruments are a function of both the 'action' (key movement) and the layout.

I abhor the location of capslock/control because when I was first learning to program I only used terminals where control was the key where caps lock is. When I was forced to used keyboards that had control down at the lower left I went from using EMACS to using vi because of the annoyance.

That said, folks can adapt and much of what you do is muscle memory anyway. On your brackets idea I actually like that brackets are matched both unshifted and shifted on my keyboard. so {} and [] are both easy to type. Since I rarely type ctrl-] or ctrl-[ having those keys map to ( and ) might be useful but I don't look at my keyboard when I type so I really can't say.

For me it is all about reliably hitting the key I mean to hit. If I can do that I can adapt to most things.

[1] See "The Mote in God's Eye" by Pournelle.

Re:A Real Keyboard for Programmers? by tzs on Thursday August 29, 2013 @11:01PM (#6300016)
Niven & Pournelle.
Re:A Real Keyboard for Programmers? by tjdetwiler on Thursday August 29, 2013 @01:45PM (#6297269)
My impression is that PS/2 is desirable mostly for NKRO
Re:A Real Keyboard for Programmers? by bhauer on Thursday August 29, 2013 @02:00PM (#6297400)
Indeed! You're right. I wasn't quite remembering why gamers preferred PS/2 and took a guess it had something to do with speed. But you're right, it's because PS/2 has a higher capacity for simultaneously reporting multiple keys being held down concurrently.

http://en.wikipedia.org/wiki/Rollover_%28key%29

Re:A Real Keyboard for Programmers? by eliasmacpherson on Thursday August 29, 2013 @02:17PM (#6297528)
I don't think USB precludes NKRO, see this:

http://geekhack.org/index.php?topic=17458.0

Re:A Real Keyboard for Programmers? by asdasf on Thursday August 29, 2013 @02:35PM (#6297663)
It does. USB can't report enough keys being pressed at the same time. So keyboards that support n-key rollover internally can only support 6 key when using USB: http://www.daskeyboard.com/product/model-s-ultimate/
Re:A Real Keyboard for Programmers? by kps on Thursday August 29, 2013 @04:36PM (#6298451)
The standard keyboard HID descriptor has room for only 6 keys (plus the 8 modifiers). In principle the keyboard can just define a larger descriptor, but not all hosts allow this. Some 'NKRO' keyboards pretend to be a hub with multiple keyboards attached, but at least some of these don't handle modifiers properly for hosts that don't merge all keyboard input into one.
Re:A Real Keyboard for Programmers? by eliasmacpherson on Thursday August 29, 2013 @02:42PM (#6297714)
Re:A Real Keyboard for Programmers? by 1qaz2wsx3edc on Thursday August 29, 2013 @02:21PM (#6297562)
Re:A Real Keyboard for Programmers? by seferphier on Thursday August 29, 2013 @02:13PM (#6297489)
A real keyboard for programmers is a keyboard that is programmable.

ha! no. seriously, you can change any key you want on the keyboard to suit your preference coding/language style

Re:A Real Keyboard for Programmers? by bricker on Thursday August 29, 2013 @04:26PM (#6298407)
> It bothers me that / and \ are not side-by-side on most/all keyboards

I agree with you regarding the brackets - < >, ( ), etc. ... but / and \ have nothing to do with each other.

Re:A Real Keyboard for Programmers? by kps on Thursday August 29, 2013 @04:40PM (#6298478)
Point of order! \ was invented specifically to pair with /, to write the ∧ and ∨ operators as /\ and \/.

[1] http://www.bobbemer.com/BACSLASH.HTM

Re:A Real Keyboard for Programmers? by bhauer on Thursday August 29, 2013 @04:28PM (#6298415)
True. Still, I find it odd that they are not beside one another. Honestly, I don't really know why we have a \ key at all (and I'm a Windows user!). But there it is.