this post was submitted on 29 Jan 2024
132 points (88.4% liked)

Programming

17270 readers
39 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

I've used a US-QWERTY keyboard layout my entire life. I've seen other layouts that do things like reduce the size of the enter/backspace keys, move the pipe operator (|) and can't wrap my head around how I would code on those.

What are your experiences? Are there any layouts that you prefer for coding over US English? Are there any symbols that you have a hard time reaching ($ for example)?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 48 points 10 months ago (2 children)

I use the UK layout, because I am British. Why would I use the US layout?

[–] [email protected] 45 points 10 months ago (1 children)

Average American trying to comprehend that people from other countries exist

[–] [email protected] 0 points 10 months ago (1 children)

... or just didn't know UK keyboards were different

[–] [email protected] 17 points 10 months ago (1 children)

I mean the layout they mentioned is called "US" layout I'm sure they could deduct that there are other country specific ones

[–] [email protected] 1 points 10 months ago (1 children)

I've seen Tomorrow Never Dies, so I know there are Chinese keyboards.

The UK speaks English though, so I would have figured a UK keyboard would be at least very similar to a US keyboard, enough so that switching from one to the other wouldn't be too hard.

[–] [email protected] 1 points 10 months ago

Every language has a different lay out because they are all based upon the typing machine.

Which needed a specific layout so the hammers didn't hit each other during commonly typed letters.

And yes, British English is a different language than American English. That is why you have things like colour and color.

[–] [email protected] 4 points 10 months ago* (last edited 10 months ago) (1 children)

US-defaultism has a catch: it sometimes accidentally extends to the Commonwealth. You won't run into most of the internationalization quirks if all you're comparing is "British English vs American English".
[Sidebar: I notice this also when English speakers online assume that their audience at least has a vague idea of what Imperial units are, but while that is true of most native English speakers in the northern hemisphere who use feet and miles colloquially, for ESL audiences it's almost always incorrect]

I switched from AZERTY to US QWERTY permanently specifically to avoid all the issues of badly internationalized software. Bad default bindings (e.g. common vim operations like { requiring the use of AltGr), but also things like games not working at all or only partially (e.g. the number row being either unbindable, or key hints naively showing as "&" and "é" instead of "1" and "2"). Surprisingly few devs understand the difference between key codes and characters, and lots of indie games straight up don't even internationalize and require switching layouts (good luck if there is an in-game chat).
After getting into mechanical keyboards, the ANSI US keyboard layout has been useful as well because these are quite common. ISO mechanical keyboards are rarer, and Belgian AZERTY keycaps are borderline nonexistent.

Also in practice I use the qwerty-fr layout which is the US layout with a French layer on AltGr. The kicker? It's better at writing French than the French AZERTY which is missing a lot of letters (Ç, æ, œ, À, ...). AZERTY is a terrible layout but that's a separate discussion.

Of course the Americans should develop properly internationalized software, but I personally know several fellow Belgians who switched to QWERTY for (some of) the reasons outlined above.

[–] [email protected] 2 points 10 months ago

Fellow Belgian here. I also switched to QWERTY.