133
submitted 9 months ago* (last edited 9 months ago) by namingthingsiseasy@programming.dev to c/programming@programming.dev

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
[-] Ferk@kbin.social 5 points 9 months ago* (last edited 9 months ago)

it’s even ISO standardized

Not only are there other ones that are also ISO standards when it comes to software layouts, but funny enough, when it comes to physical layouts, US keyboards normally follow an ANSI standard (not an ISO one), whereas many non-US keyboards typically follow a physical key layout known as "ISO Keyboard", so one could argue those are more of an "ISO" standard.

https://upload.wikimedia.org/wikipedia/commons/b/b2/Physical_keyboard_layouts_comparison_ANSI_ISO_KS_ABNT_JIS.png

right ctrl + left shift + 9 will do?

No keyboard layout uses ctrl like that..... in fact, I don't think you ever really need to press more than one modifier in any standard non-US keyboard. Unless you have a very advanced custom layout with fancy extra glyphs... but definitelly not for the typical programming symbols.

ISO keyboards actually have one more key and one more modifier ("AltGr", which is different from "Alt") than the ANSI keyboards.

In fact, depending on the symbol it might be easier in some cases. No need to press "shift" or anything for a # or a + in a German QWERTZ keyboard, unlike in the US one. Though of course for some other ones (like = or \) you might need to press 1 modifier.. but never more than 1, so it isn't any harder than doing a ) or a _ in the US layout.

[-] where_am_i@sh.itjust.works -1 points 9 months ago

Remind me again, how do you get {} or [] on that layout?

[-] Ferk@kbin.social 2 points 9 months ago* (last edited 9 months ago)

Same effort as getting &* and () on a US layout (so, modifier key + 7 8 9 0, respectively), the difference is you press AltGr instead of Shift as the modifier. And i'd argue its actually easier to press AltGr with the thumb than shift with the pinky.

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

Programming

17314 readers
347 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 !webdev@programming.dev



founded 1 year ago
MODERATORS