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

I used to have a math teacher in high school who would say: "When a mathematician doesn't have what he wants, he re-arranges things so as to get it."

Basically he meant, if the problem isn't presented in a way that makes it convenient to solve, rearrange the problem fist, then solve it.

A classic example of this from high school math would be: https://en.wikipedia.org/wiki/Completing_the_square



"If I need to add a new function and the design does not suit the change, I find it’s quicker to refactor first and then add the function."

https://martinfowler.com/books/refactoring.html




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

Search: