Hacker News new | ask | show | jobs
by emddudley 2583 days ago
It's really true. You can do a lot with data objects (dicts, lists) and stateless functions.
1 comments

Rich Hickey has some nice talks about why separating the data from the methods is really beneficial.
There’s a great Python talk out there titled “Stop writing classes”. It has several great demonstrations of Python code getting shorter, simpler and faster by converting code to just use the built-in containers.
I did like that talk very much - and here was my response:

> The Python Datamodel: When and how to write objects - https://www.youtube.com/watch?v=iGfggZqXmB0