Re:OOP Is Dead, Long Live OOP
by fooyc on Thursday October 18, 2018 @04:26PM
(#18251807)
It looks like that you are working on stuff that may not benefit from OOP. You seem to be doing heavy « computations », you care more about the data than the logic around it. Probably Haskell suits your usecases more.
[ Parent
| on HN ]
Re:OOP Is Dead, Long Live OOP
by ilovecaching on Thursday October 18, 2018 @04:53PM
(#18252011)
Actually I work primarily on web services. We benefit from Haskell in that HKTs allow us to model our service completely in the type system. Our Rest and GraphQL API are completely modeled in a type level DSL. Once we've ingested data, which can then be validated automatically using types, we can then express our data transformation in a way that makes the transitions extremely transparent in our code.
Our backend services are written in Rust for things that need efficient computation.
Re:OOP Is Dead, Long Live OOP
by codetrotter on Thursday October 18, 2018 @06:59PM
(#18252983)
That sounds very interesting. Did you open source any parts of your code, write any blog posts about it or give any public talks about it? I would love to read/watch whatever you have available to the public :)
Sounds like the service in your case is a sessionless gateway that does data transformation and dispatching. It fits the functional style.
I do think this echoes fooyc's point though: this does not sound like an area that would benefit from OOP. Sounds like an ideal use-case for functional.