Edit: Really enjoy threads like this, because you learn and see so many Pov.
My favourite answer (not in this thread unfortunately) was:
*”If you write a story, the number of words you use can affect the reader’s experience.*
*Use too many words, and the reader takes a long time to get through the book, has difficulty remembering everything, and can’t separate what’s important and what’s not.*
*But use too few words and the reader will get an incomplete picture, make mistakes in understanding the story, and eventually become disinvested in the book.*
*A poorly optimized game is like one of these examples. Either too much goes in, making it difficult for the hardware to cope, or not enough goes in, making the game buggy and broken. (Sometimes both, but that’s beyond ELI5).*
*When it comes to optimising a reader’s experience, it is not about putting more or less words in but choosing the right combination of the right words at the correct time in the plot. Optimising a game is similar concept.*
*Most importantly, no matter how well you write a book, there are always people who will think it could’ve been written better, especially by them. “*
In: 404
Optimizing code means to make it use as little computing power as possible.
Say you have a code that’s supposed to add two numbers together X and Y.
Answer=[(2X)+(2Y)]/2+1453-256-1197 would be an example of non-optimized code. Maybe you ended up with that because those other numbers used to be important with a different part of the code or you thought about it the wrong way before the structure of the code was clear to you and you forgot to polish it.
So optimizing that code would be taking out all the unnecessary computational steps and changing it to
Answer=X+Y
Latest Answers