News for hackers. Stuff that matters.
Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @05:30AM (#23842970)
QWERTZ here. I need to use the following key combinations:

shift + 8 -> (

shift + 9 -> )

alt + ctrl + 8 -> [

alt + ctrl + 9 -> ]

alt + ctrl + 7 -> {

alt + ctrl + 0 -> }

Alternatively alt + ctrl can be replaced by altgr.

And for further fun:

alt + ctrl + ß -> \

shift + 0 -> =

shift + 7 -> /

Actually, it is probably easier to link the whole layout: https://de.wikipedia.org/wiki/DIN_2137#/media/Datei:Deutsche...

It is pretty bad for programming in languages that make heavy usage of braces/brackets/parenthesis.

Re:Go generics may use square brackets [] not parenthesis () by pantalaimon on Wednesday July 15, 2020 @09:25AM (#23844854)
> Alternatively alt + ctrl can be replaced by altgr.

What operating system are you on? I can only create those with AltGr, anything shift-alt will be interpreted as a keyboard shortcut.

Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @09:42AM (#23845073)
Win 10.

Are you maybe confusing alt ctrl with alt shift? Your comment seems to indicate it as that being the case.

Re:Go generics may use square brackets [] not parenthesis () by himinlomax on Wednesday July 15, 2020 @09:37AM (#23845019)
That's why I switched to Qwerty 20 years ago (from Azerty); I used caps lock as a compose key for diacritics. Makes it easier to type common signs such as ≤ → ≠ Ø
Re:Go generics may use square brackets [] not parenthesis () by 9HZZRfNlpR on Wednesday July 15, 2020 @02:23PM (#23849424)
Same here, I only use US layout, but caps lock mapped to compose the keys my native language needs. They are mapped to the same place I left them 10 yrs ago, it was easier the beginning.
Re:Go generics may use square brackets [] not parenthesis () by rk06 on Wednesday July 15, 2020 @06:24AM (#23843312)
at that point, you might as well buy a QWERTY keyboard
Re:Go generics may use square brackets [] not parenthesis () by riffraff on Wednesday July 15, 2020 @08:07AM (#23844018)
I have a QWERTY keyboard but with italian layout, and the special characters are also in different places[0].

I have

* <shift>+<8,9> for (,)

* <altgr>+<è> for [

* <altgr>+<+> for ]

* <altgr>+<shift>+<è> for }

* <altgr>+<shift>+<+> for }

yes, it's a pain to use some languages.

[0] https://en.wikipedia.org/wiki/QWERTY#Italian

Re:Go generics may use square brackets [] not parenthesis () by qalmakka on Wednesday July 15, 2020 @09:40AM (#23845047)
Add to that the fact that typing ~ and ` is impossible with the standard it layout (on X11 you can using platform-specific extra key combinations, such as `AltGr` + `+` if I recall correctly, while on Windows you must use ALT codes). So pleasant...

Also, random rant, the IT keyboard layout is moronic because on most platforms inputting accented uppercase letters is not possible in any way. Ironically, 'c with cedilla', section sign `§`, degree sign and the now unused pound sign are present on every key and easily typed using shift.

I've been arguing since the dawn of time that "US with dead keys" is a vastly better keyboard layout for Italian than the Italian one, and that's the one I use (more correctly, I use US International with AltGr keys due to the fact I type accented letters less frequently than I type single quotes or backticks).

Re:Go generics may use square brackets [] not parenthesis () by hocuspocus on Wednesday July 15, 2020 @06:34AM (#23843373)
Everyone in our field should do themselves a favor and learn to touch-type regardless of the physical keyboard.
Re:Go generics may use square brackets [] not parenthesis () by rmetzler on Wednesday July 15, 2020 @06:55AM (#23843516)
I agree, but this doesn’t has anything to do with the keyboard layout, except that if you need to switch layouts regularly, touch-typing doesn’t get easier.

The thread is about the accessibility of some brackets on German QWERTZ keyboard layouts. These curly brackets aren’t even printed on some external Apple keyboards. And if you try to type them with one hand, you would need to turn your wrist in some unnatural position. That’s the main reason why I use an US QWERTY keyboard for the last 15 years.

Re:Go generics may use square brackets [] not parenthesis () by qalmakka on Wednesday July 15, 2020 @09:44AM (#23845093)
Umlaut vowels and ß are easy to input using the US international keyboard layout (with dead keys/AltGr combinations). I'm Italian, I study German and I find extremely convenient being able to easily input both àèéìòóù and äëöü without having to learn a second layout and switching.
Re:Go generics may use square brackets [] not parenthesis () by _ph_ on Wednesday July 15, 2020 @10:07AM (#23845401)
I am quite a good touch typists and that makes it so difficult for me, to switch layouts. Once your muscle memory is hard wired, you cannot arbitrarily change things. Last time I had to type on English layouts, it reduced my ability to touch-type greatly.
Re:Go generics may use square brackets [] not parenthesis () by hocuspocus on Wednesday July 15, 2020 @11:52AM (#23847018)
Well that's exactly my point. Pick a layout and stick to it. Regardless of what's printed on the keys.
Re:Go generics may use square brackets [] not parenthesis () by _ph_ on Wednesday July 15, 2020 @12:01PM (#23847142)
Right, that's what I did. I stuck with the German layout, as this allows me to use my native language too. But his means, certain characters, like brackets, are more difficult to type and thus the assumption, that everyone is using an (US) English keyboard is a wrong one.

But in a general sense, I fully agree to your statement. Learning to touch type was an extremely valuable skill to acquire and I can only recommend it to everyone.

Re:Go generics may use square brackets [] not parenthesis () by Lev1a on Wednesday July 15, 2020 @06:48AM (#23843462)
I did a few years back during uni[1] and I'm pretty sure that's still my most used skill I learned there.

[1]: Decided one day to get myself one of those little booklets with training software on CD. I then slowly stepped through the training steps (each step more letters and more repitition of already learned ones) and got decent at touch-typing by forcing myself to use it more and more in everyday uni life. Took about one or two months to get up to a level usable in general typing (writing for reports/homework AND programming) with little to no pauses or errors.

Re:Go generics may use square brackets [] not parenthesis () by divingdragon on Wednesday July 15, 2020 @07:13AM (#23843627)
This doesn't help with some of the difference between ANSI and ISO layouts. For example ANSI uses a long Enter key while ISO uses one that looks like the shape of a "7".
Re:Go generics may use square brackets [] not parenthesis () by hocuspocus on Wednesday July 15, 2020 @07:19AM (#23843671)
ISO has one extra key, that's it.

I only buy ANSI keyboards and like the layout better (both Enter and left Shift are easier to reach) but I occasionally get to type on ISO keyboards, it's not too bad.

Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @06:50AM (#23843482)
I tried to learn the qwerty layout before, but my muscle memory is so ingrained that it was impossible for me at the time.

And without correct keycaps it is even harder.

Re:Go generics may use square brackets [] not parenthesis () by Lio on Wednesday July 15, 2020 @07:45AM (#23843843)
About 11 years ago (I think) I switched to the Colemak layout. It's a pain to switch at first but you do quickly get used to it.

That forced me to always touch type, a good thing. It also has the advantage that the layout is pretty consistent across physical keyboard layout.

That's not the case for UK Qwerty; UK Apple is different to UK ISO is different (obviously) to ANSI. Where as Colemak is pretty consistent. So it's been helpful when moving between machines and OSs.

...it's also been the generator of hilarious memories, such as when someone changes their layout to Colemak for me to type something and then we logout their machine and discover they can't type their password or change layout back to Qwerty. Ah, good times...

Re:Go generics may use square brackets [] not parenthesis () by hocuspocus on Wednesday July 15, 2020 @06:59AM (#23843545)
Not being able to look at the keyboard is actually a good way to learn.

Of course you'll have to fight your muscle memory and type at 20 wpm for a couple weeks. There's no shortcut.

Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @07:03AM (#23843570)
My problem is that I need to be able to check where the keys are to be able to learn it in the first place. I can touch type quite well, just not type at all in a layout I never used before, without being able to look at the keys.
Re:Go generics may use square brackets [] not parenthesis () by hocuspocus on Wednesday July 15, 2020 @07:17AM (#23843655)
Print out the layout and put it under your monitor while you learn.
Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @08:40AM (#23844312)
That is such a good idea that I missed it for being so simple.
Re:Go generics may use square brackets [] not parenthesis () by Akronymus on Wednesday July 15, 2020 @06:55AM (#23843521)
I seem to be unable to find qwerty keycaps for a g513 without having to buy a completely new keyboard. So, for me it is not really an option.
Re:Go generics may use square brackets [] not parenthesis () by 1-more on Wednesday July 15, 2020 @11:16AM (#23846391)
Inspired by the space cadet keyboard, I have (){}<> as hold/tap on my modifiers. It vastly improves my coding experience.
Re:Go generics may use square brackets [] not parenthesis () by tgb on Wednesday July 15, 2020 @07:52AM (#23843896)
Are parentheses not used in daily writing in your language?
Re:Go generics may use square brackets [] not parenthesis () by ynik on Wednesday July 15, 2020 @09:20AM (#23844791)
DE shift+8/9 is only slightly worse than US shift+9/0 for parens. Brackets+Braces are the real problem on DE layout. I switched between US (programming) and DE (writing German) for a couple years; but then ended up using US-intl-no-dead-keys everywhere because the constant switching of input methods was annoying (especially due to Y/Z being swapped on DE, which causes confusion between undo/redo).
Re:Go generics may use square brackets [] not parenthesis () by brazzy on Wednesday July 15, 2020 @09:22AM (#23844812)
They are, but so are ä, ö, ü, Ä, Ö, Ü, and ß.