News for hackers. Stuff that matters.
Re:Why I prefer objects over switch statements by gameswithgo on Friday February 22, 2019 @12:43PM (#19227275)
moderately sized database, pixels on a screen
Re:Why I prefer objects over switch statements by Scooty on Friday March 01, 2019 @05:51PM (#19286095)
Both of these seem like cases where you would know you're in a hot loop. I wasn't really clear in my comment that of course you should optimize loops that you know get run millions of times. I was saying: pick your tools based on the context of the code you're writing. Most simple applications involve tens or hundreds of loops that rarely iterate over more than a few values and don't get run more than once every few seconds.
Re:Why I prefer objects over switch statements by zachrose on Friday February 22, 2019 @12:48PM (#19227337)
single-page web app doing n times the amount of work it should be doing because components are synced over an event bus with bindings set up wrong in a way that nobody has bothered to debug