Lurker News
https://www.manning.com/books/data-oriented-programming-in-j...

This book is a distillation of everything I’ve learned about what effective development looks like in Java (so far!). It's about how to organize programs around data "as plain data" and the surprisingly benefits that emerge when we do. Programs that are built around the data they manage tend to be simpler, smaller, and significantly easier understand.
Java has changed radically over the last several years. It has picked up all kinds of new language features which support data oriented programming (records, pattern matching, `with` expressions, sum and product types). However, this is not a book about tools. No amount of studying a screw-driver will teach you how to build a house. This book focuses on house building. We'll pick out a plot of land, lay a foundation, and build upon it house that can weather any storm.
DoP is based around a very simple idea, and one people have been rediscovering since the dawn of computing, "representation is the essence of programming." When we do a really good job of capturing the data in our domain, the rest of the system tends to fall into place in a way which can feel like it’s writing itself.
That's my elevator pitch! The book is currently in early access. I hope you check it out. I'd love to hear your feedback.
You can get 50% off (thru October 9th) with code `mlkiehl` https://www.manning.com/books/data-oriented-programming-in-j...

Comments (168) 39 threads

Earlier comments
greyskull1 reply#
Congratulations!

I see that the book is incomplete. I didn't know that early access for books was a thing, very neat. It might be pertinent to note in your post that it's still being written, with an estimated release window of Spring 2025.
I'm very much a "consume it when it's ready" person, so I'll keep this on my watch list.

speerer1 reply#
I wonder whether it's the editing which is still in progress, or also the writing? The publication date seems very close if it's still being written.

(edit-clarity)

goostavos#
Writing is still in progress :)

No firm date for the final publication yet.

xtreme#
As someone who loves Typescript, the first chapter of your book deeply resonated with me. Good data representations and data types that encode meaning can eliminate entire classes of bugs by making invalid states unrepresentable, and I wish more languages emphasized and supported these principles.
jhck1 reply#
Congrats on launching the early access! I'm familiar with data-oriented programming from Clojure and F#, and I'm interested in seeing how you approach it in Java, so I just picked up a copy (ebook). Wish you all the best on completing the book!
lloydatkinson1 reply#
Do you have some F# examples of data orientated programming>? It seems to mean a lot of different things to different people.
goostavos#
I can highly recommend excellent Domain Modeling Made Functional by Scott Wlaschin for an F# book that touches on a lot of the ideas which back data-oriented programming (namely, representing your domain as strongly typed data).
goostavos2 replies#
Sure! The core dividing line between the two books boils down to how they approach representing data in a program. Yehonathan's book advocates for immutable data stored in untyped data structures (for instance, Map
victor106#
Thank you. That helps a lot
smrtinsert#
Very much excited to read your book. I'd remember conversations on old Scala forums that often talked about how their code bases made it impossible to enter invalid states through strong typing. Excited to see those ideas become mainstream Java concepts.

Load more comments