r/ProgrammerHumor • • Apr 08 '22

First time posting here wow

Post image
55.1k Upvotes

2.8k comments sorted by

View all comments

3.9k

u/PhantomTissue Apr 08 '22

I hate python because showing my code to anyone always gets the response “you know there’s a library for that right?”

1.5k

u/AndreEagleDollar Apr 08 '22

Yeah I mean this point I'm pretty sure there's a library for all the libraries and you don't even write code outside of your imports

1.2k

u/Any-Limit-7282 Apr 08 '22

You just invented JavaScript…

322

u/sselesUssecnirP Apr 08 '22

Wait im not supposed to write my own code for electron apps?

264

u/ramdesh Apr 08 '22

Wait I'm not supposed to write my own code to add a zero on the left of a single digit?

108

u/MrRainbow07 Apr 08 '22

Wailt I'm not supposed to write my own code.

→ More replies (8)
→ More replies (12)

81

u/mkbilli Apr 08 '22

I have a few choice words for backend JavaScript

89

u/LetterBoxSnatch Apr 08 '22

"Elegant, lightweight, and dependable. With a best-in-class standard library." Right? /s

→ More replies (19)
→ More replies (1)
→ More replies (2)

28

u/[deleted] Apr 08 '22

New coding challenge inc.

39

u/Johanno1 Apr 08 '22

There's even a python script that installs all imports of an script

→ More replies (2)
→ More replies (16)

220

u/[deleted] Apr 08 '22

Lmao. The bulk of StackOverflow:

Hey, I need a way to iterate over X data structure, any tips?

Queue the crazy ass one-liner list comprehension answers.

36

u/algebra_sucks Apr 08 '22

I get off on List Comprehension and consuming JSON

58

u/StuckInBronze Apr 08 '22

Lol God I hated that time period where every answer was like that, it seems to have gotten a bit better recently. If I was a manager I would slap any dev that actually wrote code like that.

58

u/[deleted] Apr 08 '22

No point in writing as few characters as possible if nobody can understand what the hell is going on lol

→ More replies (6)

37

u/theCamelCaseDev Apr 08 '22

Why write many code when few code do trick?

→ More replies (1)
→ More replies (6)
→ More replies (8)

75

u/echaffey Apr 08 '22

I mean, why would I bother spending a few hours learning how to use the library when I can just write my own version of it in a few weeks?

→ More replies (1)

373

u/MattR0se Apr 08 '22

Or that it could be MoRe PyThOnIc

189

u/NeatNetwork Apr 08 '22

Fun when multiple people come in and while they agree the original code is not pythonic enough, they each have different ideas about whose suggestion is more pythonic than the others.... Totally ignoring the actual problem at hand because arguing about the philosophy of what is more pythonic is more important I guess..

Least favorite part of the community.

105

u/ChiaraStellata Apr 08 '22

In any language writing code in a way that's idiomatic for that language is important, because common patterns are easier to read and understand quickly for other developers. But at the same time, idioms and readability can be very subjective and vary from one company / development environment to another, and as long as it's clear enough to a general developer that should be sufficient.

A good analogy is learning to speak a spoken language: just knowing grammar and vocabulary is not enough, usage and common phrases are also important to sound natural and reduce comprehension effort. But that stuff varies by region and dialect, the most important thing is really just being understood clearly, one way or another.

→ More replies (12)
→ More replies (2)
→ More replies (49)

125

u/koczmen Apr 08 '22

I hate python because I look at someone's code and have no idea what the hell are the types of these method parameters

150

u/sneakiestOstrich Apr 08 '22

My types are secret and only for me and my duck to know.

80

u/MoffKalast Apr 08 '22

And after two weeks only the duck knows.

→ More replies (1)
→ More replies (1)

46

u/singeworthy Apr 08 '22

You could always use type hinting, but I feel like that is really unpopular in the community for reasons not fully understood by me.

29

u/by_wicker Apr 08 '22

Is it unpopular? I was happily oblivious if so. It's great, and I can't imagine doing serious Python dev without it.

→ More replies (8)
→ More replies (15)
→ More replies (53)