this post was submitted on 06 Aug 2023
572 points (97.4% liked)

Programmer Humor

19907 readers
1806 users here now

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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 29 points 1 year ago (4 children)

Python is the second best language for everything. Having one language that does it all is better than learning several that might do it a little bit better.

[–] [email protected] 29 points 1 year ago (1 children)

Careful, that attitude is how we ended up with this infestation of JavaScript!

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

JavaScript is very much not the second best language for anything.

JavaScript came about because it was the only choice in the context for which it was designed, and then it metasticized into other contexts because devs that used it got Stockholm syndrome.

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

"Metastasized" is a fantastic verb for JavaScript

[–] [email protected] 8 points 1 year ago (4 children)

Speed is a serious problem in Python though. Python has its use cases, and so do other languages. Things would not end well if we started using Python for everything.

[–] Chunk 1 points 1 year ago

I have worked on a lot of real time simulation with python glue. It is.. not fun. I'm a better programmer for it though.

[–] [email protected] 1 points 1 year ago

If I wanted to write a 3D game engine, I wouldn't use Python either. But there's zero chance of me ever doing that. Die 90% of Things 90% of people do, Python works just fine. And the performance thing is actively being worked on and getting better all the time.

[–] [email protected] 1 points 1 year ago

This might be an unpopular opinion but python's speed wouldn't even be an issue if it was 5x slower than it is now.

Python is a language designed for write-time performance, not runtime performance.

[–] Vulwsztyn 1 points 1 year ago* (last edited 1 year ago) (1 children)

Not since 3.11, python is now one of the fastest languages

[–] [email protected] 1 points 1 year ago

Definitely not even close to being one of the fastest languages, but still faster nonetheless.

[–] sigh 3 points 1 year ago

holy shit you're right

[–] [email protected] 3 points 1 year ago (2 children)

Python is the best "glue" language I've ever used. When you want to chain together your program's high-level logic and all of the loops happen inside other languages like Rust, Go, Zig, D or C, Python's performance is perfectly adequate and it's so clear and concise it reads like pseudocode.

[–] [email protected] 1 points 1 year ago

Even worse when you look at a class that’s over 1k long.

[–] [email protected] 1 points 1 year ago

As long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.