this post was submitted on 16 Sep 2024
720 points (97.4% liked)

Programmer Humor

32561 readers
361 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@programming.dev 5 points 2 months ago

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

[–] lowleveldata@programming.dev 4 points 2 months ago (4 children)

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

load more comments (4 replies)
[–] ryannathans@aussie.zone 1 points 2 months ago (2 children)
[–] xavier666@lemm.ee 2 points 2 months ago

I call it a layer 8 issue

load more comments (1 replies)
[–] Andrew15_5@mander.xyz 0 points 2 months ago

I would recommend pdm and micromamba.

[–] Smoogs@lemmy.world -1 points 2 months 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.

[–] janAkali@lemmy.one 1 points 1 month ago* (last edited 1 month 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)
[–] pete_the_cat@lemmy.world -2 points 2 months ago* (last edited 2 months 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. 🤬

[–] ryannathans@aussie.zone 3 points 2 months ago

The syntax wouldn't work without consistent spacing

load more comments
view more: ‹ prev next ›