Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preferred keyboard layout for programming [closed]

I started out with programming about two months ago I think now, and I'm fooling around in either C# or Clojure (I have serious decision-problems). Anyways; I'm from Norway, and we use a different kind of keyboard layout than the English-speaking countries. I don't know how for example Germany or Frances' keyboard-layouts are compared to ours, but it really is a pain to code in (Norwegian QWERTY-layout for those interested).

Anyways; reaching for the (), [] and {} really makes my fingers hurt because I have to stretch my fingers really. Also, although this is minor it still makes me quirk, the <> is also painful to reach for.

So, I was wondering if anyone have any tips on the layout to use? Is reaching for (), [] and {} much better on the English QWERTY-layout or is it nearly the same? And lastly; is DVORAK actually a good layout for programming?

Thanks in advance :)

like image 872
Sondre Nilsen Avatar asked Nov 09 '10 23:11

Sondre Nilsen


People also ask

What keyboard layout is best for coding?

The Programmer Dvorak keyboard layout is the most comfortable and efficient layout for programmers. While the traditional Dvorak layout inherits awkward symbol locations from QWERTY, Programmer Dvorak makes the symbol row more intuitive.

Is 75% keyboard good for programming?

A full-size keyboard is better for programming because it provides access to a full number pad and usually contains a few presets or macros. Of course, you can program with a 75 percent, tenkeyless, or other size keyboard, but you'll get the best efficiency and customization with a full-size.

Is Dvorak better than QWERTY?

Whereas QWERTY was designed so keyboards didn't jam, Dvorak was designed by taking a look at QWERTY and trying to come up with a faster and more efficient layout. People who prefer the Dvorak keyboard argue that it's more efficient, can increase typing speed, and even offers better ergonomics.

Is Colemak good for programming?

Programmer Colemak is a keyboard layout to make typing – especially coding – ergonomic and enjoyable. It allows you to type the most common programming symbols from the home row (where your fingers naturally rest).


2 Answers

C-like programming languages show their US-American heritage proudly by using symbols that are awkward to reach on most other keyboard layouts. I've resorted to US International which allows me to type {}[]\ without breaking my fingers but at the same time still being able to type characters like ä, ö, ü and ß which I don't want to give up in my native tongue (some others using a US layout do and I feel physical pain every time spelling is sacrificed for convenience on their part).

Dvorak at least looks good enough for that. However, the costs for changing the layout there are likely much higher than to another QWERT[YZ] layout.

like image 75
Joey Avatar answered Sep 22 '22 11:09

Joey


Disclosure: I am biased. :-)

Incidentally, I'm from Norway too! US Qwerty is better for programming than Norwegian Qwerty. Still, it strains the right pinky and has bad hand and finger alternation.

Fifteen years ago I said to myself: There has to be a better way to place the symbols that are used for programming on the keyboard than this. And thus I created the Programmer Dvorak layout, which is specifically designed to make it easier to type the parenthetical symbols commonly used in programmming languages such as Clojure and C#.

As a base for the alphabetical keys I chose the (classic) Dvorak layout, which I consider the best, scientifically documented layout for English. Even when programming, most of what you type is prose (keywords, function names, comments, documentation).

For me, I consider it a great success: I have no longer any finger muscle fatigue, and I type as quickly if not faster than before.

But, a keyboard having a fixed number of positions, there are some tradeoffs to be made: If one key is given a new place, then the one that previously occupied that location must also be moved. The trick is in making the advantages gained greater than the disadvantages.

The main one I did was to demote the number keys to shift status, and the nordic characters to composed ones. If you predominantly write your mother tongue, then this may not suit you.

If you want to teach yourself Dvorak, then be prepared for a transition period of three to six months of really slow typing. I did it when writing my thesis.

like image 39
RolKau Avatar answered Sep 20 '22 11:09

RolKau