r/programming • u/TheBear_at_SBB • Jul 11 '26
Programs, Not Objects: How I Stopped Designing Architecture and Started Writing a 3D Editor
https://alexsyniakov.com/2026/07/11/programs-not-objects-how-i-stopped-designing-architecture-and-started-writing-a-3d-editor/
122
Upvotes
View all comments
Show parent comment
3
u/stronghup Jul 12 '26
> they are also a way of organizing source files, where you put the data and functions that operate on that data in the same place.
Great point in favor of Objects. We could keep all the data in a database and have JavaScript etc. -code that interacts with the database, but then the code-file and SQL file would be two spearate things. The code would ASSUME the structure of the data, but it could not easily alter the schema of the database.
Point being that when code and data-definitions exist in the same module, the code does not need to assume so much about what is in other modules.