this post was submitted on 05 Sep 2023
50 points (100.0% liked)

Programmer Humor

19197 readers
1264 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
[–] ipha@lemm.ee 0 points 1 year ago (4 children)

Better than counting curly braces.

[–] sentient_loom@sh.itjust.works 7 points 1 year ago (2 children)
[–] TheGreenGolem@lemm.ee 6 points 1 year ago (1 children)

Me too, any day. I hate everything where indentation matters. Let me just throw my garbage there and YOU sort it out, you are the fucking computer, not me. You do the work.

So fuck you, YAML! All my homies love JSON!

[–] KIM_JONG@lemmy.world 1 points 1 year ago (1 children)

All your homies hate comments.

[–] TheGreenGolem@lemm.ee 1 points 1 year ago

My code also documents itself, of course.

[–] wols@lemm.ee 1 points 1 year ago

Yup.

Spaces? Tabs? Don't care, works regardless.
Copied some code from somewhere else? No problem, 9/10 times it just works. Bonus: a smart IDE will let you quick-format the entire code to whatever style you configured at the click of a button even if it was a complete mess to begin with, as long as all the curly braces are correct.

Also, in any decent IDE you will very rarely need to actually count curly braces, it finds the pair for you, and even lets you easily navigate between them.

The inconsistent way that whitespace is handled across applications makes interacting with code outside your own code files incredibly finicky when your language cares so much about the layout.

There's an argument to be made for the simplicity of python-style indentation and for its aesthetic merits, but IMO that's outweighed by the practical inconvenience it brings.

[–] Knusper@feddit.de 2 points 1 year ago

You don't usually count them. They just have to form a neat diagonal.

[–] kameecoding@lemmy.world 1 points 1 year ago

if you have to count the curly braces I understand why you are a python developer

[–] 30p87@feddit.de 0 points 1 year ago (1 children)

Even vim can show you that
^(fucking nano user)

[–] UndefinedIsNotAFunction@programming.dev 0 points 1 year ago (1 children)

There's a joke here about using echo "some python code" > main.py in here somewhere but I can't find it. Imagine I did instead.

[–] grozzle@lemm.ee -1 points 1 year ago

"the punchline is clearly trivial, the set-up is left as an exercise for the reader"