News for hackers. Stuff that matters.
Re:Such a Little Thing: The Semicolon in Rust by glennsl on Thursday October 18, 2012 @06:14PM (#4671363)
Hello American. I'm from one of those other pesky countries that make up most of the human population of earth, and which usually have other keyboard layouts. I have to type shift+, to get the semicolon.
Re:Such a Little Thing: The Semicolon in Rust by lucian1900 on Thursday October 18, 2012 @07:23PM (#4671563)
A potential workaround is to always use an American keyboard. It's what I do.
Re:Such a Little Thing: The Semicolon in Rust by symmetricsaurus on Friday October 19, 2012 @03:11AM (#4672595)
Indeed. On a Swedish keyboard the semicolon is not the biggest problem though. {}[] are since you need to press right-alt+number keys to get them. Really awful. It takes a very short time using an American keyboard for coding to realize its benefits.

Still, even on an American keyboard () are not terribly well placed.

I've been thinking about adopting the NEO2 layout(with some modification so that I get all of åäö) but haven't gotten around to it yet. Has anyone tried that for programming?

Re:Such a Little Thing: The Semicolon in Rust by tomlu on Friday October 19, 2012 @03:34AM (#4672626)
Hej!

I have all my symbol characters easily accessible from the normal A-Z keys using a third shift state. It's awesome, and works with any keyboard layout (QWERTY, or even Swedish QWERTY are all fine, as is Dvorak, Colemak etc). Typing a previously uncomfortable sequence like "for (int i = 0; i < count; ++i)" is even pleasant now.

It takes about two weeks to get used to. If you try it, make sure the third shift state can be accessed from either hand (i.e. you have to have left and right keys, just like with shift or control).

I wasn't aware of NEO2 so I developed my own symbol layout using a genetic algorithm running over my code corpus, then adjusting to taste.

Re:Such a Little Thing: The Semicolon in Rust by bitcracker on Friday October 19, 2012 @08:34AM (#4673211)
Another solution is xmodmap in Unix or some similar tool in Windows to change the keyboard layout. With that solution you don't have to miss the default national keyboard layout.
Re:Such a Little Thing: The Semicolon in Rust by MartinCron on Thursday October 18, 2012 @08:18PM (#4671714)
I feel your pain, I have to jump through all kinds of høøps to get some characters on my keyboård.
Re:Such a Little Thing: The Semicolon in Rust by bla2 on Thursday October 18, 2012 @09:25PM (#4671882)
I switch from my native layout to the US layout for coding.
Re:Such a Little Thing: The Semicolon in Rust by jlmendezbonini on Thursday October 18, 2012 @06:19PM (#4671377)
Which keyboard layout is that?
Re:Such a Little Thing: The Semicolon in Rust by DanBC on Thursday October 18, 2012 @06:27PM (#4671403)
Czech; German; Polish; French; Spanish; Italian; Portuguese; etc etc etc.
Re:Such a Little Thing: The Semicolon in Rust by adamnemecek on Thursday October 18, 2012 @07:21PM (#4671554)
That being said, there are also programmer's layouts specific to single languages which among others have a semi-colon on the home row.
Re:Such a Little Thing: The Semicolon in Rust by naitbit on Friday October 19, 2012 @05:25AM (#4672825)
I've never seen QWERTZ keyboard in Poland and I live there. Typewriters indeed were using this layout, but not many people use them to program.

"practically all computers (except custom-made, e.g., in public sector and some Apple computers) use standard US layout (commonly called Polish programmers layout, in Polish: polski programisty) with Polish letters accessed through AltGr (AltGr-Z giving “Ż” and AltGr-X giving “Ź”)." http://keyboard-layout.info/#Polish

Re:Such a Little Thing: The Semicolon in Rust by emillon on Friday October 19, 2012 @05:01AM (#4672781)
There's no need to use shift to get a semicolon on a french keyboard.
Re:Such a Little Thing: The Semicolon in Rust by glennsl on Thursday October 18, 2012 @06:29PM (#4671413)
Norwegian. Many european countries use the same placement for semicolon. All the Scandinavian and Baltic countries, Germany and Netherlands to name a few.

Russia uses shift+4. Can't imagine how annoying that is.

Re:Such a Little Thing: The Semicolon in Rust by pandaman on Friday October 19, 2012 @12:18AM (#4672235)
Russian keyboard layout does not have any Roman letters so apart from obscure even in their time, Soviet-devloped languages like http://en.wikipedia.org/wiki/Rapira, reaching for shift+4 for ';' is going to be the least of your concerns if you try to write code using Russian layout.
Re:Such a Little Thing: The Semicolon in Rust by skrebbel on Saturday October 20, 2012 @03:53AM (#4676593)
Nitpick: Almost. There is a Dutch keyboard layout, but nobody uses it. Nobody, as in, there's more people in the Netherlands that use Dvorak than people that use the Dutch keyboard layout.

The Dutch commonly use the US keyboard layout, which makes sense because Dutch and English have the same alphabet.

Re:Such a Little Thing: The Semicolon in Rust by bane on Thursday October 18, 2012 @08:10PM (#4671695)
here's a bunch (scroll down)

http://keyboard-layout.info/

Re:Such a Little Thing: The Semicolon in Rust by dbaupp on Thursday October 18, 2012 @06:21PM (#4671383)
Swedish is one such keyboard.
Re:Such a Little Thing: The Semicolon in Rust by akkartik on Thursday October 18, 2012 @06:41PM (#4671446)
I am going to pay more attention to http://en.wikipedia.org/wiki/Keyboard_layout after this thread!
Re:Such a Little Thing: The Semicolon in Rust by ianstallings on Thursday October 18, 2012 @07:10PM (#4671525)
That sounds really tough. An extra key press. I bet that wastes like, 10 seconds a day.