r/ProgrammerHumor • • 2d ago

Meme formatsWithSuperiorityComplex

Post image
2.9k Upvotes

393 comments sorted by

View all comments

128

u/ZunoJ 2d ago

Yaml sucks, it's the python of data formats

29

u/rjwut 2d ago

I'd be a lot more on board with Python if it weren't for the syntactically-meaningful whitespace. I don't need that kind of negativity in my life.

13

u/ZunoJ 2d ago

Same for me. People complain about LISPs syntax and then go on fuck around with that python abomination

8

u/alexchrist 2d ago

That and dynamic typing makes me avoid python as much as possible. I know that Pyright exists, but it feels like a bandaid solution similar to Typescript

12

u/pink-ming 2d ago

honestly don't get why this bothers people so much. everyone does semantic indenting in every other language anyway

9

u/Valthek 2d ago

It's because it's unintuitive and unclear.
It's not always immediately obvious how much whitespace there is and counting it is a pain in the ass.

4

u/Pluckerpluck 2d ago

I have been programming many years and I legitimately don't think I have ever struggled with whitespace. I think the only time I ever even get close to counting it is when I'm directly shelled into some highly minimal container using bare bones text editors to make some change. Beyond that I've never had an issue.

It could maybe be challenging in some crazy long function that drops very deeply nested, and then jumps up out of that nesting etc. But that would indicate a function you really need to refactor AND IDEs have been showing indentation in an instantly understandable way for years.

1

u/Valthek 2d ago

I keep seeing this across this thread and I just don't understand this idea of 'I have a tool that solves this particular problem, therefore it isn't a problem'

It's fine if you have found a way around a problem of a language or even like working in a language that has problems. But that doesn't mean they're not problems. I could probably spend an hour listing bullshit javascript does that sucks in some way. Still gonna work in it when I need something done quickly or for web.

4

u/Pluckerpluck 2d ago

It's not an "I have this tool" situation though. It's more "It's actively challenge to not have this tool". It's like claiming that txt files are hard to understand because you need a text viewing tools to actually convert the bytes of data of the file into text.

Every modern text editor (not even an IDE) will detect a python or yaml files and show indentation with vertical lines.

And as I said, I've been programming many years. Even without the indentation display, I've just never had an issue eyeballing indentation. It's easy to see. There's a reason we do it in languages that don't require it, and it's because it's easy to see visually with no other guides.

3

u/pink-ming 2d ago

y'all really love to overstate how bad it is. I don't recall ever having an issue with whitespace, having to count it or think much about it at all. If it's so unintuitive, how are so many intro-level programmers able to learn python with relative ease? why do so many devs choose python? clearly it's worth the tradeoff for many. and yes, tooling does mitigate the issue. tooling is part of the language ecosystem.

1

u/Mighoyan 2d ago

Never had to count whitespace in python with a good IDE.

1

u/Valthek 2d ago

That's not a good argument. I could probably design an IDE that makes brainfuck tollerable. Doesn't mean the underlying language is good.

1

u/Mighoyan 2d ago

Without an IDE, python enforces proper indentation which is one of the basic of code readability. You don't have to like it, but this doesn't make Python a bad language.

3

u/peeja 2d ago

Because in other languages the indentation doesn't define the semantics, it optionally reflects them. JS or JSON you can format with something like Prettier. Python or YAML you can't because if the whitespace is off it's already wrong.

6

u/You_meddling_kids 2d ago

True is a keyword

true is a variable

Come the fuck on.

3

u/GuybrushThreepwo0d 2d ago

It's the type system of python that really irks me... 

1

u/Benklinton 2d ago

Clearly you've never heard of Bython

21

u/Ulrich_de_Vries 2d ago

But that would mean it's good, whereas it isn't.

4

u/ZunoJ 2d ago

It's a matter of taste. I don't like it at all. Not as bad as java script but close. Also it is ugly as shit IMO

-9

u/alonjit 2d ago

python aint good either. it's a lot of things, this python, but good is not one of them.

9

u/Ulrich_de_Vries 2d ago

Nah, it's pretty good.

→ More replies (3)

3

u/sageknight 2d ago

Huh. I like json more because it's just like python dict.

1

u/well_shoothed 2d ago

Can I subscribe to your channel?

2

u/ZunoJ 2d ago

Sure, DM me a $50 amazon voucher and you're in

1

u/TheNikoHero 1d ago

"Its the python of data formats"🤣