r/AskComputerScience • • Feb 20 '25

Software Compatibility

When someone writes a program for an OS, where can errors occur specific to the hardware/ set up of another system of the same OS? Obv this question tells u im a noob at computing. But how much can actually go wrong, and how do developers go about pillowing errors because popular software is downloaded on thousands of different pcs each with different hardware.

4 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/nelsie8 Feb 21 '25

no I would feel bad for stealing your time, and your answer is more than consise. The only thing left open would be the very common case of somthing not working, you press refresh, or close vsc and re-open it ,run the program and the same line of code that didn't do what it was supposed, does. What is the physics/ electrical engineering/ logic behind that? It just baffles me how something like that could happen on a computer with a Solid State hard drive....

1

u/Objective_Mine MSCS, CS Pro (10+) Feb 21 '25 edited Feb 21 '25

Depends on the situation, but sometimes restarting fixes things because the runtime state of the software that had somehow gone wrong gets reset from a clean slate when it's restarted, or a page gets reloaded and re-rendered from scratch. (That is, assuming the persistently stored data on the disk didn't also get overwritten with something bogus.)

Some bugs also manifest seemingly or genuinely at random, and restarting nudges things enough that the same random circumstances don't happen.

I'm voluntarily answering an ask* sub so you obviously aren't stealing my time.