Show HN: Principles of Data Oriented Programming
blog.klipse.tech
blog.klipse.tech
Feel free to share feedback, agree, disagree or refine.
I like “denormalised” data too. Not sure if you mentioned this idea but in React code posted online i see time and time again derived data stored in state and mechanics to keep that up to date. I bet it’s some kind of performance optimisation but most of the time it ain’t worth the trade off (run a profiler instead!)
It’s better to avoid derivable data in the data because you can write a function to do that on the fly.
A typical example is to store the state of a check box and also the state of whether a part of the ui is collapsed or not which can be figured out from the checkbox.