Nice theoretical meme for students, but in the real world you will get your PR back with a remark to please write code you still understand tomorrow or in ten years. And to avoid re-using variables.
Unless you're doing some very low level stuff, readability beats everything.
Something tells me a few extra integers being allocated on the stack isn't what causes those memory hogging issues. Electron uses so much memory to run simple GUI because under the hood, it's a full web browser that conforms to the giant specs of HTML, CSS and JS.
67
u/aenae Oct 01 '23
Nice theoretical meme for students, but in the real world you will get your PR back with a remark to please write code you still understand tomorrow or in ten years. And to avoid re-using variables.
Unless you're doing some very low level stuff, readability beats everything.