Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Data-Oriented Programming in Python

Sumit Rawal answered on May 13, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • object oriented method of matplotlib in python
  • matplotlib object oriented
  • is python object oriented language
  • oops concept in python
  • python oop examples
  • Python OOp
  • oop in python
  • python oops
  • types of methods in oop python
  • types of methods in oop python

  • Data-Oriented Programming in Python

    0

    Data-Oriented Programming by Yehonathan Sharvit is a great book that gives a gentle introduction to the concept of data-oriented programming (DOP) as an alternative to good old object-oriented programming (OOP). Sharvit deconstructs the elements of complexity that sometimes seems inevitable with OOP and summarizes the main principles of DOP that helps us make the system more manageable.

    As its name suggests, DOP puts data first and foremost. This can be achieved by adhering to four main principles. These principles are language-agnostic. They can be represented in OOP languages (Java, C++, etc.), functional programming (FP) languages (Clojure, etc.) or general-purpose languages (Python, JavaScript). Whereas the author illustrates his examples using JavaScript and Java, this article attempts to demonstrate the ideas in Python.

    Following along the article, you’ll find simple code snippets in Python that illustrate how each principle can be adhered to or broken. Sharvit also clarifies what the benefits and costs for each principle — many of them are relevant in Python whereas some are not.

    Please note all the principles, corresponding advantages and drawbacks mentioned are credited to Yehonathan Sharvit, whereas the viewpoints on the applicability of these statements to Python, in conjunction with the Python code illustrations, are my own. 

    Popularity 2/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python
    Link to this answer
    Share Copy Link
    Contributed on May 13 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.