News for hackers. Stuff that matters.
Re:Push ifs up and fors down by anyonecancode on Wednesday November 15, 2023 @08:45PM (#38284960)
A good example of this I see a lot in a code base I'm currently working in is React components that conditionally render or not. I really can't stand this pattern, and whenever I can I refactor that into having the component ALWAYS render, but have the caller decide whether or not to call the component.

There are no comments on this comment yet.