37 points

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.

permalink
report
reply
33 points

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

permalink
report
parent
reply
4 points
*

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.

permalink
report
parent
reply
4 points

“Metastasized” is a fantastic verb for JavaScript

permalink
report
parent
reply
8 points

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.

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
1 point
*

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. For 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.

permalink
report
parent
reply
1 point
*

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
5 points
*

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 lower-level 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.

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
1 point

Python is secretly a functional-paradigm language. If you’re not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you’re doing it wrong.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
3 points

holy shit you’re right

permalink
report
parent
reply
35 points

Friends don’t let friends do string manipulation in bash.

permalink
report
reply

youre right

thats what sed is for

permalink
report
parent
reply
22 points

Well this is awk-ward

permalink
report
parent
reply
6 points

That’s what she sed

permalink
report
parent
reply
30 points
*

Anything I can do in Shell I will do in Shell and yes I am a devops engineer thanks for asking.

permalink
report
reply
15 points

Shellcheck really helps

permalink
report
parent
reply
17 points

Obligatory relevant xkcd https://xkcd.com/1205/

permalink
report
reply
11 points

Both are < HTML:

permalink
report
reply
4 points

How to meet ladies?

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.1K

    Monthly active users

  • 953

    Posts

  • 36K

    Comments