125

he

all 30 comments
sorted by: hot top controversial new old
[-] DmMacniel@feddit.de 51 points 1 year ago

Agreed. The generic currency symbol (¤) would have been nice :)

[-] superduperenigma@lemmy.world 59 points 11 months ago

TIL there's a generic currency symbol

[-] xmunk@sh.itjust.works 24 points 11 months ago

Assuming it was standard on keyboards, sure. The dollar sign isn't universal but it is pretty widespread.

[-] Moc@lemmy.world 26 points 11 months ago

The $ symbol in PHP is accurate because every PHP developer I’ve met drives a lambo.

[-] xmunk@sh.itjust.works 30 points 11 months ago

I'll need to talk to my manager I guess.

[-] Moc@lemmy.world 22 points 11 months ago

Tbf I haven’t met you, so the rule doesn’t apply

[-] xmunk@sh.itjust.works 19 points 11 months ago

I'm down to grab a coffee with you if I'll get a lambo out of it. We're all of course aware that correlation is causation.

[-] Moc@lemmy.world 7 points 11 months ago

I can’t guarantee that you won’t be the exception, but I’m always up for coffee!

[-] stephaaaaan@feddit.de 22 points 11 months ago* (last edited 11 months ago)
[-] dandroid@dandroid.app 8 points 11 months ago

Lmao, I actually laughed out loud at this.

...gonna send this to my dad who is a php developer....

[-] stephaaaaan@feddit.de 1 points 11 months ago

😄 hope he gets a good laugh out of it as well

[-] kjo@discuss.tchncs.de 5 points 11 months ago

Lol: Hello World! → Good morrow, fellow subjects of the Crown.

[-] darcy@sh.itjust.works 3 points 11 months ago

function main()the royal procedure()

[-] grayman@lemmy.world 4 points 11 months ago

I lost it at the perchance otherwise statement!

[-] noproblemmy@programming.dev 3 points 11 months ago

The worst part is that I kind of like a lot of the alternatives.

[-] 601error@lemmy.ca 20 points 1 year ago

Exchange rates are a bitch

[-] palordrolap@kbin.social 11 points 11 months ago* (last edited 11 months ago)

If you want the historical reason, you need to look at ASCII and its teletype forerunners. America, for better or worse, were the ones who laid down the bases for a lot of the standards we still use today. UTF-8 covers the gamut of Unicode, but its first 95 printable characters from 32 (space) onwards? Identical to 1967 ASCII.

And since ASCII ended up as the default, most programming languages only allowed symbols from those original 95.

In some really bad cases, in order to support keyboards with even fewer symbols, things like digraphs and trigraphs were kludged into some languages. (C, for example, is only just planning on getting rid of support for them this year.)

Those systems tended to be completely alien to ASCII or descended from the 6-bit teletype code where there are only 60-some usable characters. (Two character cases at the same time? Luxury! And what the heck is a curly brace?)

Now that UTF-8 is gaining a foothold, some languages are daring to use Unicode, so we might soon see more and more interesting characters being allowed in the base syntax of languages. (See Raku, for example. Or don't. You may go blind.)

On the other hand, there's APL, which has been doing its own thing with weird symbols since 1966 and giving not a bit of interest to ASCII or anything else.

[-] wieson@lemmy.world 2 points 11 months ago* (last edited 11 months ago)

What's the programming language that allows emojis as variable names?

Looked it up a little: it's all languages that support extended characters and not only ASCII. But it looks pretty unreadable.

[-] mifan@feddit.dk 8 points 1 year ago

For some reason the dollar symbol annoys me so much - I’m fine with underscore and asterisk, but I’ve never found a good flow with the dollar sign.

[-] Bldck@beehaw.org 1 points 11 months ago
[-] Malix@sopuli.xyz 3 points 11 months ago

probably true for ansi/english keyboards

for all/most (?) euro/iso keyboards altgr+4 for $. Shift+4 for ¤

[-] space@lemmy.dbzer0.com 0 points 11 months ago

Do people actually use non - english keyboards? All my computers that I ever owned used the standard US layout. If I want to type in my language, I switch layout and I've simply learned where the characters are. But 99% of the time, I'm using the US layout.

[-] Malix@sopuli.xyz 6 points 11 months ago

Fairly common to use en/us-layouts with highend mechanical keybards, as parts for those are more readily available.

But outside of the mech keebs or other niches, yea, people use the regional keyboard variants. Because it's just easier if you can see the weirdo ümlâuts/etc regional characters on the keycaps when you're not a touch typist. Over here (finland) it's actually pretty hard to even get ansi/us layout keyboard unless you really go about your way and seek one out, basically all keyboards in stores are fin/swe iso layout. I'd assume the same is true to most euro countries.

[-] poinck@lemm.ee 2 points 11 months ago

I am using a Planck 40% mech keyboard I consider high-end (as in personal endgame) and my base layout is euro/iso, but I have a custom layer for programming related signs like the $-sign. This way I have a better experience than I would have with a US-layout.

Programmers using mainly US-layout is a false assumption. I have only 2 out of 10 colleagues using it.

[-] Malix@sopuli.xyz 2 points 11 months ago

oh wow. I have preonic, but I've more or less given up on learning to type with it. It's way too narrow. I like the concept but a split ortho would be better, as I wouldn't have to "hunch down" on it so much.

[-] poinck@lemm.ee 2 points 11 months ago

I could only make the switch to my custom layout on the Planck, because the small size of the keyboard makes it possible to use it everywhere.

I have 4 of them with identical layout. (: I cannot type on regular keyboards anymore. ^^

Maybe the Ergodox is for you: https://ergodox-ez.com/

[-] Malix@sopuli.xyz 2 points 11 months ago

Its pretty close, but ideally I'd want to have it fit fin/swe layout without using modifiers to type ö and ä, and have them more or less where they'd be on normie layout. (I can live without å, so that already gives 1 key more leeway).

So far pretty much no ortho split allows this, I think. Unless I move enter key to the thumb keys or so. But then again that might be the default for eego/split keebs anyway, I dunno.

Going to have to read up on these a bit more.

[-] CapeWearingAeroplane@sopuli.xyz 2 points 11 months ago

I've grown up learning to type on my regional layout. Why would I go through the hassle of re-learning key placements when most laptops/keyboards sold in my country use the regional layout? I don't think I've ever been in a situation where I've had to work on any other layout for more than a few minutes.

[-] dot20@lemmy.world 6 points 1 year ago* (last edited 1 year ago)
this post was submitted on 05 Oct 2023
125 points (91.4% liked)

Programmer Humor

32131 readers
1002 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS