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

The analogy would be that those functions are mutually recursive and while mutual recursive functions can be an elegant solution to several problems (state machine, some algorithms)overuse is not a mistake i have seen very often. FP does coerce, or at least very strongly suggests, a very simple program structure. This makes it hard to model some more complex relationships that are easy in OO. Anyway, my point is that FP is indeed different in this regard compared to OO.


My main point was that bad code exists in all paradigms. If there were a perfect language or paradigm, everybody would be using it and there would be no such debate. Immutability is not necessarily good or bad, same for mutability. We should all do a better job at explaining to beginning programmers how to use all paradigms appropriately, and how to choose among them. And of course, to use vi.


Why should I use vi? Why wouldn't this decision be similar to what paradigm I choose?


It was a joke. Emacs vs. Vi, FP vs OOP, etc. All members of the set of useless debate topics.




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

Search: