Hacker News new | ask | show | jobs
by arambhashura 2748 days ago
Genuine question: what are some accessible examples of real-world programs that use multiple paradigms "well"?
4 comments

Scala maybe? It does both OO and functional.
Thats some what subjective. If you look to python pandas or Gnu R programs; that would be paradigme hybrids (good ones mostly). I personally enjoy coding so much more if I can use the right tool for the job.
I like Elixir/Erlang's 'weird' approach to this, where it primarily uses an FP approach for the code, but an OO-like approach for the runtime (keeping state in processes). The OO being perhaps closer to Alan Kay's original ideas (as I understand it) is nice too.

I'm not experienced enough to judge how well it does all this though.

many C# programs now leverage a lot of functional capabilities through Linq. More so in F#.

C# is more imperative with functional mixed in and does little to stop you doing functional "evils"

F# is more functional with ability to mix in imperative and mutations and stops you from doing functional "evils" unless you say you want to be evil