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

Programming

17443 readers
172 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 1 year 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] 5 points 9 months ago* (last edited 9 months ago) (1 children)

I've used various layouts of non-US keyboards over time since I've lived and worked in various countries in Europe and whilst you do start by looking down to find stuff and for a while will at times unthinkingly choose the "old" position for a symbol when touch typing, you just get used to the new layout in a month or two, even if touch typing - your brain just starts directing your fingers to the new positions.

That said, for seldom used symbols you still have to look down and check on which key that symbol is (it's generally printed on the key), I suppose because you don't really exercise those enough for your brain to reliably start sending your fingers to the new position without looking.

(So given the languages I usually program with, for stuff like semicollon and open and close brackets and parentesis the brain quickly adjusts but stuff like the dollar sign I still have to look down and check, which is really noticeable if for some reason I have to do some shell scripting or similar)

Things like letters and numbers don't change position so that's not a problem.

Once you've become accustomed to a new layout, switching keyboards between those layouts is a bit like switching the side of the road you're driving (say, between the UK and Continental Europe) - you get a couple of hours of extra memntal tension and having to think things a bit more at first and after that you've fully readjusted.

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

Is there any reason why you didn't just switch the keyboard layout to US if that's what you're used to?

I switched to US at some point because many if the keys for programming were just so much easier to access. If I have to use a pc for any decent amount of time, I just switch the OS layout to US now regardless of the layout that's printed on the keyboard.

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago)

I'm not used to the US Keyboard layout.

I think I only used it when I got a cheap second hand notebook in Canada during my vacations there.

The reason not to change the keyboard layout to something different from the physical layout is that once in a while you have to use a seldom used symbol for which you don't really have the touch-typing muscle memory, and looking at a physical keyboard with a different layour from the one you're using at the software level won't tell you were that symbol is, turning the whole thing into an unnecessary PITA of trying to find it by trial and error (I usually get this the other way around: when the software defaults to US Layout but my actual keyboard doesn't have that layout).

I do more than just programming on keyboards and some of the languages (spoken, not programming) I write in have accents and funny characters which don't even appear in a US Layout keyboard.

Also sometimes you really don't have much of a choice if you're in some country and the local employer/hotel/internet-caffee provides some local keyboard and you don't have the permissions to change the layout in the OS.

Yeah, yeah, you do have to climb and overcome the small learning-curve of learning to adjust to new keyboards, but once you have it's not at all a big deal to adjust to whatever you happen to get your hands on.