226
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 20 Oct 2025
226 points (100.0% liked)
Showerthoughts
37958 readers
617 users here now
A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The most popular seem to be lighthearted clever little truths, hidden in daily life.
Here are some examples to inspire your own showerthoughts:
- Both “200” and “160” are 2 minutes in microwave math
- When you’re a kid, you don’t realize you’re also watching your mom and dad grow up.
- More dreams have been destroyed by alarm clocks than anything else
Rules
- All posts must be showerthoughts
- The entire showerthought must be in the title
- No politics
- If your topic is in a grey area, please phrase it to emphasize the fascinating aspects, not the dramatic aspects. You can do this by avoiding overly politicized terms such as "capitalism" and "communism". If you must make comparisons, you can say something is different without saying something is better/worse.
- A good place for politics is c/politicaldiscussion
- Posts must be original/unique
- Adhere to Lemmy's Code of Conduct and the TOS
If you made it this far, showerthoughts is accepting new mods. This community is generally tame so its not a lot of work, but having a few more mods would help reports get addressed a little sooner.
Whats it like to be a mod? Reports just show up as messages in your Lemmy inbox, and if a different mod has already addressed the report, the message goes away and you never worry about it.
founded 2 years ago
MODERATORS
Perfect C is faster than perfect Python, same as perfect assembly is faster than perfect C.
But in the real world we don't write perfect code. We have deadlines, we have constantly shifting priorities, we have non-technical managers dictating technical implementations. We have temporary prototype code that ended up being the backbone of a 20 year project because management overpromised and some overworked developer had to deliver real fast. We have managers still believing in the mythical man month ("If one woman can make a baby in 9 months, 9 women only need a single month to make one") and we have constant cycles of outsourcing and then insourcing again.
With all that garbage going on we end up with a lot of "good enough for now", completely independent of "laziness" or "low-skill" of developers. In fact, burnout is incredibly common among software developers, because they aren't lazy and they want to write good software, but they get caught in the gears of the grind until they get to a mental breakdown.
And since nobody has the time to write perfect code, we end up with flawed and suboptimal code. And suboptimal assembly is much worse than suboptimal C, which is again much worse than suboptimal Python.
If your Python code is suboptimal it might consume 10x as much RAM as it needs. If your C code is suboptimal, it memory-leaks and uses up all RAM your PC has.
If your Python code is buggy, something in the app won't work, or worst case the app crashes. If your C code is buggy, some hacker just took over your PC because they exploited a buffer overflow to execute any code they want.
The main issues with software performance are:
Perfect assembly is marginally faster than perfect C, but perfect C is way faster than perfect python. You have many valid points though. Also C can be very safe if you don't use the standard string libraries and stuff. It depends on what you are trying to do. Sometimes it's worth giving up safety to have a better program.
Also as a side note, when God instructed Terry Davis to build his third temple do you know what language God told him to use? C... That's right. God himself endorses C as the greatest language mankind has ever developed.
I'm talking mostly about corporate software development. You know, the kind of projects that run for 20 years with multiple teams and half a dozen cycles of "let's outsource everything" - "oh, it sucks, let's insource everything" - "oh, it's expensive, let's outsource everything again". Doing that in C without major issues is rare.
In that kind of context, safety is everything and performance doesn't matter.
This is why I don't run corporate software if I can help it. Ain't nobody got time nor the battery capacity for that.