News for hackers. Stuff that matters.
Re:Drunk Post: Things I've Learned as a Sr Engineer by dehrmann on Sunday May 30, 2021 @02:42PM (#27335455)
Before I had written much assembly, I used to think ifs to avoid assignments was smart. Turns out avoiding branching is better for both testability and performance.
Re:Drunk Post: Things I've Learned as a Sr Engineer by mdtusz on Sunday May 30, 2021 @04:14PM (#27336318)
A similar thing I've noticed a trend of recently in frontend react codebases is overuse of memoization. It seems as though people don't realize how it works and that it is often _less_ performant than just doing some low cost computation on each render (like a comparison or basic math).