You are viewing a single thread.
View all comments
-5 points

Ligatures 🤢🤮🤮

permalink
report
reply
11 points

What’s wrong with Ligatures? It makes reading code a bit more tolerable.

permalink
report
parent
reply
11 points

I mean, I certainly wouldn’t give someone else shit for using ligatures, but personally, I don’t like them, because:

  • they break with monospacedness. Everything is in a nice grid and you’ve randomly got these character combinations that needlessly stick out.
  • they sometimes happen in places where they really shouldn’t.
  • they hide what the actual characters are. Especially, if go to edit that code, my brain will really struggle for a split-second when there’s a ‘≠’, then I delete one character and rather than the whole thing disappearing, I’m left with a ‘!’.
permalink
report
parent
reply
2 points

they break with monospacedness

The IDEs I’ve used had the ligatures be of the same character width as the original operator.

permalink
report
parent
reply
1 point

Do you also get surprised when you backspace a tab and suddenly it removes more whitespace than 1 characters worth?

Or did you learn it fast and really never think about it?

I think it’s more a “getting used to” thing, that once learned, you don’t think about, but it makes things more readable.

permalink
report
parent
reply
Deleted by creator
permalink
report
parent
reply
6 points

I mean, we read code more than we write it. You just vomitted over something that increases readability. Maybe a time for a rethink?

permalink
report
parent
reply
5 points

You’re brave (I don’t agree)

permalink
report
parent
reply
3 points

I fucking hate that If style.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5K

    Monthly active users

  • 1.4K

    Posts

  • 33K

    Comments