5 ms·
I always wonder why so many languages are sooo bad to use on a non-us keyboard.. I'd love if language designers would consider other keyboard layouts more often
by buster 14y ago
I always wonder why so many languages are sooo bad to use on a non-us keyboard.. I'd love if language designers would consider other keyboard layouts more often.. :(
- kd0amg 14y agoFWIW, braces (and brackets and parentheses) aren't all that pleasant to type on a US keyboard either.
- buster 14y agoThis: https://en.wikipedia.org/wiki/File:KB_US-International.svg https://en.wikipedia.org/wiki/File:KB_US-International.svg is much easier then this: https://en.wikipedia.org/wiki/File:German-Keyboard-Layout-T2-Version1-large.png https://en.wikipedia.org/wiki/File:German-Keyboard-Layout-T2... Of course that's probably the reason why the braces were chosen at all :P
- ginko 14y agoThere's dedicated keys for brackets and parentheses in relatively easy-to-reach positions. How could you make that more pleasant?
- dlitvakb 14y agoMost programmers often write their programs in english anyway, to be easy to share or to review by others (even in closed source software), so it makes sense for programming languages to mostly care about English keyboard layouts. Anyways, if the keyboard layout is a blocking problem for you, consider changing it to what it suits you the best, or use multiple layouts for different tasks. Every operating system has a keystroke to swap layouts.
- buster 14y agoIt's not about writing english per se. How often do you need to write {[]}<> in a letter? Those keys are really easy on US layout but horrible to type on a german keyboard layout. Holding alt-gr and press 7 or 8 or 9 or 0 is surely not impossible to type but compared to US layout it's much more worse, imo. Fortunately Python does away with the overabundance of curly braces at least.
- TylerE 14y agoWhy is Alt+9/0 so much worse than Shift+[/] slightly worse I'll grant, but MUCH worse?
- ygra 14y agoIt's AltGr, which is on the right side. And that makes it quite awkward to use. I either break half my hand or need both hands. Or resort to Ctrl+Alt on the left side which isn't optimal either ...
- buster 14y agoWow.. now i'm wondering how quickly (if ever) i can adopt to using ctrl+alt instead of that awkward (and hated) AltGr. You never stop learning...
- TylerE 14y agoCouldn't you remap your keys so normal (left) Alt is AltGr and right Alt is "normal" Alt? Alt key bindings are pretty rare.
- ygra 14y agoThey are? Every time I want to access a menu or a control in a dialog by keyboard I need Alt. Also in Far Alt+typing searches which I use frequently to get around the file system. Sure, one could get used to doing that with the other hand, but at least for me it's not that little muscle memory that has to be retrained.
- camus 14y agoit is one thing write programs in english , i have a french keyboard , typing english is fine , the problem is all the non word stuff that are not directly visible on my keyboard like {}[]|\] and so on. You kind of get used to it but frankly i dream of a language with non of these characters, just words. typing def/end doesnt bother me. By the way , that's kind of why i love coffee-script so much. myObject = param1 : foo param2 : bar param3 : baz foo bar,baz,boom my god it is a relief on a non english keyboard... on the mac i get the @attr without using alt-right , that is neat.
- jonascopenhagen 14y agoI write software in English, sure, but my keyboard layout needs to be Danish in order for me to write emails, etc. in Danish. Having to swap keyboard layouts would mean I'd be confused constantly. On a Danish Mac keyboard the curly braces are written by holding down Alt + Shift + 8. Not exactly an easy combination to hit. > Most programmers often write their programs in english anyway I'm not so sure about that. There are tons of places where English proficiency is really low, even among programmers.
- tbe 14y agoI write norwegian on a US MacBook just fine. All the weird characters are available by pressing the Option key. When I first got the laptop I switched layouts between coding and writing mails, but after a while I found that learning the key combos for a few letters was easier for me than switching between completely different layouts.
- rsaarelm 14y agoI realized I probably write more curly braces than accented characters during the day and switched to using an US-International style keyboard layout that puts the diacritic characters under the Alt Gr key.
- ygra 14y agoThe APL [1] designers heard you and created a language impossible to type on almost every keyboard layout [2] ;-) As for me, I've been using US International for a few years by now (because I use too many curly-braces languages and didn't want to give up being able to type ümläüts). But frankly, changing the keyboard layout just for a programming language is a bit evil. In that sense I liked BASIC and Pascal; I don't mind keywords instead of symbols that much either and I tend to be faster typing words anyway. ________ [1]: http://en.wikipedia.org/wiki/APL_(programming_language) http://en.wikipedia.org/wiki/APL_(programming_language) [2]: http://en.wikipedia.org/wiki/File:APL-keybd2.svg http://en.wikipedia.org/wiki/File:APL-keybd2.svg
- itcmcgrath 14y agoThis made me search to see if there was any 256 key keyboards so I could have a key for every byte, but I apparently no one has been that crazy yet.
- ygra 14y agoI like many parts of Unicode ∖ Latin-1. 256 keys might not be enough ;-)
- TheCoelacanth 14y agoYou'll just have to learn to do one of the encodings in your head.
- dexen 14y agoIn Poland, the most common layout is the `Polish (programmers)', virtually the same as US layout, with extra right Alt switching for polish accented characters. The alternative is `Polish (typewriter)' layout, with accented characters replacing most of punctuation, which doesn't seem to have caught on. Apparently entering accented characters with right Alt is comfy enough. Surprisingly all that happened in spite of MS Windows default settings -- IIRC up to and including Windows 98, MS Windows defaulted to the legacy `Polish (typewriter)' layout, and only since Win XP (or perhaps 7) it defaults to the common `Polish (programmers)'. At any rate, have a look at http://www.colemak.com/ http://www.colemak.com/ which is quite programmer-friendly. I am using a variation of it.
- ginko 14y agoI'd rather say that keyboard layout designers should consider programming languages more often
- nzonbi 14y agoThere is also the possibility of ditching entirely the approach of text based programming, for a more visual approach. This will not work for many people, but for those that it does work, it could improve productivity. Text is a good way to represent sequences of information. So it fits programs well, to some extent. But programs contains various kinds of information, that doesn't fit well with a textual representation: Hierarchical data, scope, branching flow, loops, dependencies, etc. These can be enhanced by a visual representational that goes beyond just text. Besides the Visual representation, there is also the UI. Things like Vim for example, can be awesomely productive, in the hands of someone that has mastered it. But I would claim, that there is still space for improvement. With a visual interface, there are lots of things that can be done. Touch interfaces have lots of possibilities. Special inputs devices, would also be a great opportunity. But that would be harder, for obvious reasons. Maybe 3D printing would open opportunities there soon. The key for a visual UI to succeed, is to allow to do more with less effort. Visual programming has not succeed so far. I would argue that it is because it has not been done right yet. I am currently working on these ideas, with one of my weekend's side projects. Since my time is limited, It is still going to take some time.
- kitsune_ 14y agoThere are a lot of visual programming environments that are used in the creative industries, environments such as MAX/MSP, Pure Data, Houdini (CGI / FX) or NI Reaktor... When I look at a complex Reaktor instrument (for instance Razor[1]), the entire paradigm seems to hit a wall at a certain point. The networks driving these instruments are an intricate mess and their visual representation can actually make it harder to grasp them in their entirety. [1] http://www.native-instruments.com/en/products/komplete/synths-samplers/razor/reaktor-5-player-faq/ http://www.native-instruments.com/en/products/komplete/synth...
- kps 14y agoI'm not convinced it can be done right, because alphabets are inherently superior to ideograms. Making a small set of symbols capable of representing language is one of humanity's greatest inventions. It's good to have an editor (like vi, following TECO) that takes advantage of the fact that this set of symbols is literally at the user's fingertips.
- kps 14y agoTreat keyboard layouts as a part of your software tool set. If the one the OS gave you doesn't work well (and they are universally pretty bad), find or build one that does.