Principles of Data Oriented Programming
source link: https://blog.klipse.tech/databook/2020/09/29/do-principles.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Principles of Data Oriented Programming
Sep 29, 2020 ā¢ Yehonathan Sharvit
This article is an excerpt from my upcoming book about Data Oriented Programming. The book will be published by Manning, once it is completed (hopefully in 2021).
More excerpts are available on my blog.
Enter your email address below to get notified when the book is published.
This chapter is an attempt to illustrate what are the core principles of Data Oriented Programming as I understand them. It is highly influenced by my programming experience in Clojure, but I believe that those principles are language agnostic.
One could adhere to them in an Object Oriented (OO) language like Java or C# and one could break them in a Functional Programming (FP) language like Ocaml, Haskell, JavaScript (or even in Clojure).
In fact, in this chapter, I am going to illustrate how those principles could be applied or broken in JavaScript, a programming language that supports both FP and OOP.
The principles of Data Oriented (DO) Programming are:
Each principle is explored in a separate article.
I encourage you to start your exploration from Principle #1: Separate code from data.
Enjoy!
This article is an excerpt from my upcoming book about Data Oriented Programming. The book will be published by Manning, once it is completed (hopefully in 2021).
More excerpts are available on my blog.
Enter your email address below to get notified when the book is published.
to stay up-to-date with the coolest interactive articles around the world.
Discover more cool interactive articles about javascript, clojure[script], python, ruby, scheme, c++ and even brainfuck!
Give Klipse a Github star to express how much you appreciate Code Interactivity.
Subscribe to the Klipse newsletter:Feel free to email me [email protected] for getting practical tips and tricks in writing your first interactive blog post.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK