Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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?



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: