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

Functional decomposition != refactoring.

They are two completely different processes.

https://en.wikipedia.org/wiki/Functional_decomposition

https://en.wikipedia.org/wiki/Code_refactoring



Breaking up a large functions into smaller functions isn't even (strictly speaking) functional decomposition because not every sub-function might be dependent on the previous function. "Extract function" is a kind of refactoring, but not refactoring itself.




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

Search: