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

85 points

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

permalink
report
reply

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

permalink
report
parent
reply
21 points

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?

permalink
report
parent
reply
31 points

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.

permalink
report
parent
reply
27 points

Do a search for ‘why yaml is bad’ and you’ll get a lot of stories.

Constant passing problems, especially when the yaml gets very large and complex. After I implemented a new feature I was pulled into a call with 12-15 people demanding to know why it didn’t work. The new feature worked fine, The guys yaml had the wrong amount of white space and so it didn’t parse.

permalink
report
parent
reply
19 points

White space in the wrong place? Fails Wrong amount of tabs? Fail

Working in a big configuration file that has a lot of nesting? Good luck.

Best part is that most of these things don’t throw errors or anything, it just doesn’t work and you are left scratching your head as to why your deploy only fails in the production environment.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
11 points

Since it’s a superset of JSON, couldn’t you just use the JSON notation if you hate the semantic whitespace?

permalink
report
parent
reply
45 points

I hate YAML so much

permalink
report
reply
41 points

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.

permalink
report
reply
17 points
*

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

permalink
report
parent
reply
26 points

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

permalink
report
parent
reply
11 points
*

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.

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
-3 points

No it’s how Python wants you to format. Many times I want to separate two logical sections in one function and can’t coz Python go crazy

permalink
report
parent
reply
-4 points

Yeah, it is a completely nonsensical thing to complain about. I hate to go around matching curly brackets like some braindead nematode. If you use more than two levels you should rewrite the code in most cases… just use advanced indexing and vectorization (by pythonic ;p). Or you can loop around like a freaking peasent in your inefficient garbage code that nobody can read because it is cluttered with comments explaining basic stuff. There is a reason Python is popular… and it is not because no one can read it. Same goes for dynamic typing - it is a blessing for most tasks. I do not want to explain to the machine what every temporary variables means…

permalink
report
parent
reply

I hate em cos regardless of language auto formatter takes care of everything. So now im typing extra characters and fucking shit up and confusing myself when moving code between scopes.

permalink
report
parent
reply
9 points

You take that back, python is my homie!

In all seriousness, I freely admit that I’m biased towards python because it was my first language and remains my favorite. I use an IDE for anything but the simplest scripts, so I’ve very rarely had any issues with spacing.

permalink
report
parent
reply
4 points

I agree but still you can oftentimes expect that the average person’s initial reaction to be somehow reluctant… until they understand it. it’s like those foods and drinks that you might need to try a couple times before you start enjoying them.

permalink
report
parent
reply
1 point

Oh, definitely, they can look bizarre and confusing before you understand them.

permalink
report
parent
reply
2 points

In 20 years of using Python, I never had one issue with the indentation. Use spaces all the time, use PyCharm, and that’s it.

Whitespace is statistically insignificant in Python.

permalink
report
parent
reply
34 points
*
I love python:
     Fight me IRL.
permalink
report
reply
39 points

fine i will take the bait: thats 5 spaces

permalink
report
parent
reply
33 points

As long as the next line also has 5 spaces, that’s fine. Python only complains about inconsistency, not the exact number of spaces/tabs.

permalink
report
parent
reply
4 points

Make, on the other hand… Ugh.

permalink
report
parent
reply
31 points

Go home OP, you’re drunk.

And give us your keys, you’ve had too much minimalism to drive.

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 9.5K

    Monthly active users

  • 861

    Posts

  • 33K

    Comments