this post was submitted on 16 Sep 2024
716 points (97.2% liked)

Programmer Humor

32253 readers
116 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] JackbyDev 5 points 1 month ago

I think venv is the best because it's built in. But I'm also not a Python dev.

[–] lowleveldata 4 points 1 month ago (4 children)

Is it the language's fault that you want to solve complex problems?

load more comments (4 replies)
[–] [email protected] 1 points 1 month ago (2 children)
[–] [email protected] 2 points 1 month ago

I call it a layer 8 issue

load more comments (1 replies)
[–] [email protected] 0 points 1 month ago

I would recommend pdm and micromamba.

[–] [email protected] -1 points 1 month ago (6 children)

“Print needs ()”

Oh fuck off. years of code that cannot be easily redone in ANY editor. Whoever OCDd that into python 3 needs to have their asshole kicked up into their mouth.

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

Meanwhile Nim:

echo "I am still worthy"
let a = r"I hate the ugly '\' at the end of " &
         "multiline statements"
for x in 0..9:
  if x == 6: echo x

echo x # this is error in Nim, but not in python. Insane!
assert false + 1 # this is an error (python devs in shambles)
assert true - 1 # see above

Thanks for coming to my Ted-talk.
More here: Nim for Python Programmers

load more comments (5 replies)
[–] [email protected] -2 points 1 month ago* (last edited 1 month ago) (1 children)

The thing that annoys me the most is how it cares about whitespace/carriage returns. I remember back in college when I was taking a CS class, learning Python and writing the Code on a Windows PC, emailing it to myself, and then attempting to run the code on Linux. Before I learned about the carriage return conversions, I remember having to rewrite about 75 lines of code before I got it to run. 🤬

[–] [email protected] 3 points 1 month ago

The syntax wouldn't work without consistent spacing

load more comments
view more: ‹ prev next ›