For the record I did not downvote.
But I capitulate on your point. It would be great if every piece of software was written with resilience and uptime in mind.
As a former sysadmin that sounds like a dream. But I don’t think I have ever seen that with any mainstream program that I’ve had responsibility for. Does that mean all those programs were bad? I don’t think so. We wouldn’t need sysadmins if all programs were written the way you describe.
Programs can be written to auto rotate their logs, compact and reindex their db’s. Using browser updates as an example, they can even safely auto update and revert back on failure.
How many programs actually do these things? My experience is next to 0. But I wouldn’t call them all bad or poorly written programs.
California has one of these solar thermal towers. Quite a spectacle as you drive by on the way back from Vegas.
Interestingly this one does not store energy for 24/7 operations like the one in China. As they are both smolten salt based, not sure why
https://www.theneweconomy.com/energy/the-unexpected-environmental-drawbacks-of-concentrated-solar-power-plants
https://en.m.wikipedia.org/wiki/Ivanpah_Solar_Power_Facility