37
lorentz
3y

I ’m kinda jealous of English programmers. How cool must it be to have all the common characters for programming fit onto a single modifier, and to have all special characters for default vim keybindings available with shift. On a hungarian keyboard, braces and square brackets are both AltGr-bound, but parentheses are shift-bound. Oh, and the semicolon is AltGr + the key right above it, so it breaks touch typing.

Comments
  • 14
    Can't you just change your keyboard layout?
  • 4
    @alexbrooklyn Yes, but I can't memorise two layouts.
  • 0
    @Monk Some diacritics aren't even present on English keyboards, like ű.
  • 4
    Always wondered how difficult non-english speakers find programming.

    Which makes me feel extra bad for being so shitty at it.
  • 1
    @alexbrooklyn As OP mentioned, not only is it painful to memorise different layouts, it's also a pain whenever you have to use a different computers.
  • 1
    You could write a transplier https://en.m.wikipedia.org/wiki/... that takes characters on your keyboard and translates the source to the official version which is then compiled.
  • 2
  • 8
    These are the moments when I'm grateful to the person who thought that the Polish keyboard layout should be simply US English + accented characters with AltGr.
  • 1
    I switch between English and two types of Spanish layouts (sometimes in Dvorak) all the time and have no issues coding. Just select best layout for given language and learn it. Also, there are alternative layouts that move the keys around so that special characters lie where they would be on a US keyboard, e.g. https://github.com/zaki/... and if that's not enough you can always switch places between Alt and AltGr on driver level.
  • 2
    @gronostaj That's actually not the case. Default "Polish layout" is the one used on typewriters in the 80's and it's as fucked as the Hungarian one. What you refer to is "Programmer's Polish layout", and yes, it follows good practices when it comes to keyboard layout design, fortunately. Similar Hungarian layouts exist, though.
  • 1
    @cprn I have yet to meet a person who prefers the typewriter layout. Let's just forget about that abomination and appreciate our sane defaults.
  • 0
    Polyglot issue... Have to remember multiple keyboard layouts anyway...
  • 0
    @cprn I've never heard of this, though it isn't surprising at all. I'll look into it.
  • 0
    I have a very similar problem with my Swedish layout and Vim. And have been too lazy to learn the US one properly. I should though and maybe this thread can inspire me to get into it. It is easy enough to switch layout to suit each task, aside from the learning then.
  • 0
    Due to our proximity to the US (Where we import electronics), we use qwerty. But we have to memorize the alt+numpad keyboard shortcuts for the french diacritics (Windows) or use the compose key (Linux).
  • 0
    Buddy you are stuck in a wrong language 😂😂
  • 0
    I don't really know Hungarian but I can tell you that as a French, I use the English international with altgr dead keys keyboard layout and it's amazing.
    Then if I want to type in Russian I just use my phone 😅
  • 1
    @programmerbugx Apparently, almost ten million other people are too, and those whom I have business with are usually of them.
  • 0
    why not just set up some macros?
  • 0
    buy a keyboard and shut up
  • 0
    @gronostaj OP did not specify a language, but yes, trigraphs would work in this case.
  • 1
    Damn. Now it feels petty of me to complain about CSS using American spellings.
  • 0
    @matthewbdaly No programming language apart from imagine logo and a buggy old Delphi preprocessor uses hungarian, idk why 😞.

    @highlight
    eljárás add(a:egész, b:egész) {
    vissza a+b
    }
  • 0
    @Lor-inc
Add Comment