4 ms·
Your last paragraph is pretty much where I stand. I'm not trying to fire a shot in a language war. I'm not trying to build a perfectly-architected Gang of Fou
by AnimalMuppet 9y ago
Your last paragraph is pretty much where I stand. I'm not trying to fire a shot in a language war. I'm not trying to build a perfectly-architected Gang of Four masterpiece. I'm not trying to produce a mathematically beautiful perfectly-stateless category-theoretic treatise. I'm just trying to write a program that does something.
So I don't really care about FP ideology or OO ideology. I'll pick the tools that best let me get my work done. If that offends purists, that's their problem.
As to your actual question, a reasonable, unbiased discussion of tradeoffs... sorry, no, I don't have one.
- westoncb 9y agoYeah, I think our thinking is pretty similar. I think OOP is very natural fit for thinking about lots of things, and I think there are some great ideas that have come out of the functional paradigm. I still prefer to use a language that has OO organizational structures, but I definitely feel some pain if I can't have first class functions. I also value the idea of functional purity and whenever possible I'll write my functions so they're pure—but I don't adhere super strictly unless in a part of the program that critically needs it. Same with immutability.