data-oriented-programming

Alejandro 2022-08-14T15:26:50.027499Z

Does anyone do data-oriented programming in js and python? I'd like to actually try. I know I'll probably lose the repl and spec completely, and a lot of other things, but I want to know how much I'd gain with this approach in these mainstream languages, and how hard it would be to teach others to write this way.

Yehonathan Sharvit 2022-08-14T15:29:59.746339Z

That’s exactly the purpose of my book @alexander.scherbanov_ To teach DOP to non-Clojure developers. In the book, most examples are in JavaScript

Alejandro 2022-08-14T15:35:08.581299Z

@viebel, it's awesome, I'm still reading it and learning a lot about clojure actually. It answers questions I had, but never looked up.

Yehonathan Sharvit 2022-08-14T15:51:57.868489Z

What kind of questions?

Yehonathan Sharvit 2022-08-14T16:27:15.759609Z

@alexander.scherbanov_

Alejandro 2022-08-14T16:45:55.272249Z

For example, how immutability and persistence work. And the general idea that's in the title. It's not easy to get it from just reading online discussions.

Alejandro 2022-08-14T16:48:44.299289Z

And I haven't finished it yet, looking forward to learn more.

2022-08-14T16:52:43.595889Z

There is a heavily inspired by clojure library in python called toolz https://toolz.readthedocs.io/en/latest/index.html

Alejandro 2022-08-14T16:58:26.136649Z

@dev964, cool, I'll look into this. But as far as I uderstand, it doesn't offer immutability