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

That’s because the ideologists operate based on intuition rather then identifying the exact reason why one paradigm is better. OO is bad because it promotes writing logic with free variables and context. Logic that relies on free variables and context is inherently less modular. Lack of modularity is the root of all structural technical debt.

While FP doesn’t force someone to eliminate context or free variables it certainly does not promote writing logic that includes it by default. This generally leads to more modular code. Hence the reason why FP just "feels" better to practitioners and leads to people promoting it without clear reasoning. This in turn makes the promotion of FP seem "ideological."

Maximizing modularity in code requires greater restrictions then the ones FP provides, but FP in general is heading in the right direction.



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

Search: