6 ms·
My current understanding (sure to change!) is this: Objects and messaging are best at the boundaries of system components. The internals end up being far simpl
by Fellshard 8y ago
My current understanding (sure to change!) is this:
Objects and messaging are best at the boundaries of system components. The internals end up being far simpler to state in functional terms, where the side effects can be pushed to the edges with far less inherent complexity.
By assuming that objects are successful everywhere and always, it's really ignoring the regions where objects are more or less useful, painting over the picture with broad strokes.
By learning multiple paradigms, you're learning broad principles that map well across all languages, as well as principles that are stronger or weaker in some paradigms than others. This enables you to be much more versatile when creating systems than devoting yourself to the 'One Way To Code' mentality.
- bklaasen 8y agoCredit where it's due; that sounds like Gary Bernhardt's "functional core, imperative shell": https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell https://www.destroyallsoftware.com/screencasts/catalog/funct... Previous HN discussion: https://news.ycombinator.com/item?id=18043058 https://news.ycombinator.com/item?id=18043058