News for hackers. Stuff that matters.
Re:Push ifs up and fors down by theK on Thursday November 16, 2023 @03:53AM (#38287140)
> If there’s an if condition inside a function, consider if it could be moved to the caller instead

Haha, it is important to have logic where it is relevant. If performance is more relevant than semantics or maintainability do that. In all other cases favor locality, filter early and fscking kiss. Why is this news?

There are no comments on this comment yet.