Fork me on GitHub
Endre Bakken Stovner17:08:40

I am starting interviews with consultancies soon. Are there some good books about OOP for functional programmers? I guess I can reverse-engineer this book:

Endre Bakken Stovner17:08:48

I would also appreciate suggestions for books/articles about data modeling from a functional perspective. I know how to do it passably well (I think), but I dunno if I would be able to explain it well 🙂 Do you use UML much in FP? It seems like the kind of thinking there will lead you to create very OOP-inspired software.

Drew Verlee14:08:10

what OOP means varies greatly by programming language. For example comparing python to clojure. The OOP part of python is that their is no equivelent to multimethod. But the languages differ in a ton of other ways. The two that stood out to me are composability and immutability. Data modeling from a functional perspective is covered in the book clojure applied. But the TLDR is that it comes down to the constraints on your problem. Persistance, performance, etc. Being dynamic, clojure tends to just mirror how your database works and doesn't require futher business domain modeling. What you have to describe are the transformations over the data.

Drew Verlee14:08:01

UML is fine for what it is. Use it when you feel its worth while. Fp/clojure doesn't really impact its usefulness.