News for hackers. Stuff that matters.

Ask HN: Best keyboard layout for programming?

I'm interested in knowing your opinions and also what keys you modify in case you do (a lot of Vim users change things). I personally use the Spanish Standard and I can assure the position of some important keys is so bad, so I'm thinking of moving to the US standard. Thoughts?
( 12 comments | 5 points | on HN )
Re:Ask HN: Best keyboard layout for programming? by informatimago on Thursday May 11, 2017 @06:20AM (#14315009)
Definitely.

You see, the problem is that programming languages are designed on US-QWERTY keyboard, therefore the choice of syntactic special characters is made according to the characters easily available on a US-QWERTY keyboard.

Indeed, you will never see a programming language where §, ¡ or ¿, are meaningful characters. (Actually, and this is a confirmation, there is one language where you had characters such as ∂§¶⨍, it was MPW scripts, (Macintosh Programmer's Workshop scripting language), because those characters were easily available (using the option modifier) on a Macintosh keyboard).

Therefore, until you invent a Spanish programming language using characters easily accessible on a Spanish keyboard layout, it will be easier as a programmer, to use a US-QWERTY keyboard layout.

Re:Ask HN: Best keyboard layout for programming? by Philomath on Friday May 12, 2017 @08:27AM (#14323358)
You are totally right. Thank you for the feedback!
Re:Ask HN: Best keyboard layout for programming? by hacalox on Thursday May 11, 2017 @05:30AM (#14314817)
IMO US standard. Also UK standard as it's the same US layout but with one more key that it might help you in case you want to modify or duplicate one key like "esc". If you don't want to modify any key it might be better getting a US keyboard as its left shift is bigger and easier to press than the english one.
Re:Ask HN: Best keyboard layout for programming? by tmaly on Thursday May 11, 2017 @11:14AM (#14316614)
I have stuck with the US-Qwerty because you are most likely to encounter it where ever you have to work on a computer.

As to the type of keyboard, I have an ergonomic one that lets me work for longer periods of time.

Re:Ask HN: Best keyboard layout for programming? by madamelic on Thursday May 11, 2017 @11:53AM (#14316990)
You should use whichever lets you work easiest.

I have a few keybindings on my keyboard because it makes my life easier but others have different keybindings.

I use a Poker2 or Poker3 and I make the Win key Fn and I switch Capslock and F12 and my terminal is pulled up with F12 (meaning I can hit Capslock to get my terminal)

Re:Ask HN: Best keyboard layout for programming? by hnjake on Saturday May 13, 2017 @03:14AM (#14329883)
How do you find the Poker2? I have one and tried it for 6 months. But I always felt cramped, hard to explain. Might be because it is brown switches, where I use blues for all my other keyboards.
Re:Ask HN: Best keyboard layout for programming? by madamelic on Tuesday May 16, 2017 @05:24PM (#14353424)
Hah, mine is Cherry Browns as well.

I enjoy it. I used a $10 Wal-mart one before this one and I haven't tried any others.

I enjoy it because it is small and light. I used to take mine to work until my work bought one for me.

I bought it mostly for the size. I never really used the number bad, dedicated arrows were pointless to me. Basically the only thing I ever really use is numbers, symbols and letters so a small keyboard works for me.

Re:Ask HN: Best keyboard layout for programming? by anotheryou on Friday May 12, 2017 @03:45PM (#14327251)
I really really like neo, but it's mainly for the german language.

https://neo-layout.org/

Pressing caps-lock reveals the goodies

Re:Ask HN: Best keyboard layout for programming? by cprogrammer1994 on Thursday May 11, 2017 @12:03PM (#14317097)
Disabling capslock is the best I've done to my keyboard.
Re:Ask HN: Best keyboard layout for programming? by akulbe on Thursday May 11, 2017 @12:29PM (#14317300)
I disable CapsLock by remapping it to Ctrl. Makes for a better workflow when working with tmux.
Re:Ask HN: Best keyboard layout for programming? by mod on Thursday May 11, 2017 @10:06PM (#14320941)
I've remapped CL as well but I can't remember to use it. It's been a couple of years now.
Re:Ask HN: Best keyboard layout for programming? by probinso on Sunday May 14, 2017 @11:29PM (#14338956)
ApL keyboard makes it easier to apl