r/Clojure • • May 29 '25
Data Oriented Programming book, comments
The book in the title is a very interesting read, in particular for people with no familiarity of the concepts because they don't come from clojure (like me when I bought it). However, I wonder if the principles in it are really shared in the community. For instance, in Rich Hickey's talks, one point that he likes to highlight is that maps are much better than what he dubs "positional programming". Yet, I didn't see this mentioned in the book, out maybe only indirectly.
Also, Appendix B shows how to do generic maps in statically typed languages with examples in Java and C#. But in the examples everything is so awkward and verbose that I would be amazed if anybody would actually use that as a general way of writing programs. Maybe this style can be used in OOP languages, but only as long as they are dynamically typed like ruby, python, js?
Somebody previously suggested this book in this subreddit so I'm interested about opinions about it, not only my points
View all comments
Show parent comment
1
u/wademealing May 29 '25
I went through and wrote clojure while i was reading the book. It is a bit of a shame but the same logic applies. I think the clojure I wrote was more readable than the javascript examples provided. YMMV, but this pushed me over the edge to use clojure.