News for hackers. Stuff that matters.
Re:The self-fulfilling prophecy of React by the_other on Friday September 09, 2022 @04:38AM (#32776854)
Sure, that's hard to read. So don't write it like that. Early returns; decompose it further; pull the `size` out of the todo data model and into a view configuration; etc.
Re:The self-fulfilling prophecy of React by strken on Friday September 09, 2022 @05:19AM (#32777158)
I don't write it like that, but I wish I had better alternatives that weren't hard to read, one of which I described in considerable detail.