this post was submitted on 20 Jun 2024
24 points (96.2% liked)

Programmer Humor

19176 readers
958 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Mikelius@lemmy.ml 0 points 3 months ago (2 children)

What is that weird >>=== symbol? Looks like a cross breed between C and JavaScript here.

[–] underscore_@sopuli.xyz 2 points 3 months ago* (last edited 3 months ago) (2 children)

It’s a the right shift assignment operator so x >>= 4 right shifts x by 4 and assigns the result back to x. The code editor is displaying single double wide symbol (ligature) instead of the three character long operator >>=, I discovered today these are in fact well loved by some coders.

[–] Mikelius@lemmy.ml 2 points 2 months ago

I totally thought because of how long the equals looked, it was multiple equals characters, not just >>= lol. That's what got me confused. Don't think these are things I'd personally use but each to their own preferences right xD

[–] IsoSpandy@lemm.ee 1 points 3 months ago

Yeah.. I love them. Makes my != look like ≠

[–] EmptySlime@lemmy.blahaj.zone 2 points 3 months ago* (last edited 2 months ago) (1 children)

I guess it's a special kind of character called a ligature. They apparently are characters for combined operators. So in this case it seems to just be >>= all as one character?

[–] zod000@lemmy.ml 1 points 2 months ago

It is exactly that. Some people really like them, others do not (me included). You usually need to go a little out of your way to get a font that supports ligatures for your editor.