Hacker News new | past | comments | ask | show | jobs | submit login

I agree with the other comments about it often being a hint to break apart a method, but there's still valid reasons to reassign.

I'd rather focus my energy on adding unit testing, and refactoring to be testable. If you have easy-to-read unit tests that cover all possible edge cases, I stop caring (as much) about how the actual method is written. Be as optimized/clever/concise as you want. I don't care if you reassign your local variables.




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

Search: