this post was submitted on 21 Jan 2024
787 points (93.4% liked)

Programmer Humor

32745 readers
318 users here now

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

Rules:

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

I'm not suggesting replacing the small programs with one mega Python script, I meant that even C is not a good language for that either.

If you're chaining a bunch of stuff together through your shell environment anyway, you're not using the low level benefits of C, so you're just punishing yourself with having to implement everything by hand every time! Python is amazing because the syntax is clear and readable and the standard library has nearly everything you'd need if you're not building a large application.

However since most of these things are going to be one-liners then yeah you may want to just put them in one script!

[–] [email protected] 1 points 11 months ago (1 children)

I'm supporting embedded devices, and I like the performance of C. I've used python, it's meh. At least you don't have to compile it.

[–] [email protected] 1 points 11 months ago (1 children)

Aha on embedded not much choice there. It's what keeps C alive and relevant for sure

[–] [email protected] 1 points 11 months ago (1 children)

Rust is starting to show up in embedded. And micropython, though that obviously has some limitations.

[–] [email protected] 1 points 11 months ago

Totally, but I'm not aware of anyone using either properly in a truly production environment. Both are more on the hobbyist or tinkering side, or in the Linux space anyway where you can already just do anything.

(From what I've seen? Would be thrilled to see examples!)

I really like Micropython too. I made a "game" that communicates state between multiple boards over wifi in almost no time compared to how long it would take in C++.