this post was submitted on 23 May 2024
5 points (100.0% liked)

Programmer Humor

19423 readers
91 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
 

...from people who seem to refuse to install paredit or coloring plugins for either? ps lisp syntax ftw, it's a feature!

top 13 comments
sorted by: hot top controversial new old
[–] lorty@lemmy.ml 3 points 5 months ago (1 children)

No, YAML can fuck right off. I hate that this shit format is used for cloud stuff.

[–] 0x0@lemmy.dbzer0.com 2 points 5 months ago (2 children)

YAML is the Excel of data formats due to the Norway Problem

[–] RecluseRamble@lemmy.dbzer0.com 1 points 5 months ago (1 children)

OK, that's excessively "convenient" for booleans. But I don't get the passionate YAML hate, seems like a simple enough language for config. Didn't have the pleasure ("pleasure"?) to work with it though, so what's why else is it shitty?

[–] magic_lobster_party@kbin.run 2 points 5 months ago

A property can have the wrong indentation and it would still be a syntactically correct yaml. It’s hard to distinguish whether a line is wrongly indented or not. Copy and paste a line and mistakenly use the wrong indentation, and the entire production breaks.

In json it’s much harder to do similar mistakes.

[–] quantenzitrone@feddit.de 0 points 5 months ago

since yaml is just a superset of json, you can easily avoid all problems like this

yaml is like a less strict json for me

[–] xmunk@sh.itjust.works 3 points 5 months ago (1 children)

Who hates s-expressions? They're elegant as fuck...

Python, on the other hand, deserves all the hate it gets for making whitespace syntactically significant - I even prefer Go's hamfisted go fmt approach to a forced syntax to python's bullshit.

[–] eestileib@sh.itjust.works 0 points 5 months ago* (last edited 5 months ago) (1 children)

I dgaf about indices starting at 0 or 1, I can deal with case-insensitivity, but syntactically significant whitespace drives me up the wall.

[–] Diplomjodler3@lemmy.world 0 points 5 months ago (2 children)

What's so hard to understand about it? It's how you should format your code anyway. Only it's enforced.

[–] magic_lobster_party@kbin.run 1 points 5 months ago

It’s quite often I have to second guess whether the code is correctly intended or not. Is this line supposed to be part of this if block or should I remove that extra indentation? It’s not always entirely obvious. Extra troublesome during refactors.

In other languages it’s always obvious when a line is incorrectly indented.

[–] vrighter@discuss.tchncs.de 1 points 5 months ago

sometimes, a script needs to be edited in a plain text editor, without having access to an lsp or any other dev tools.

[–] RedSeries@lemmy.world 1 points 5 months ago (1 children)

ITT: Developers who think their code is readable complaining about Python and YAML.

[–] IronKrill@lemmy.ca 1 points 5 months ago

Might just be me but YAML is some of the least readable shit I've ever used.

[–] flappy@lemm.ee 1 points 5 months ago

I hate YAML so much