4 ms·
While I see the point the Ulaş is getting at, I wouldn't call this JSON-driven development. I think JSON-driven development would use abstraction layers that ar
by micimize 10y ago
While I see the point the Ulaş is getting at, I wouldn't call this JSON-driven development. I think JSON-driven development would use abstraction layers that are based on JSON, like JSON schema, and perhaps an OOP library that leverages it.
What I'd actually call this problem is a lack of abstraction. In functional programming, simple data structures are often preferred, and composable functions are used to manage complexity. A functional programmer might declare a function `to_structured_dict(enumerable, path)` and call it with
`to_structured_dict(book_list, path=('shop_label', 'cell_label, 'book_id', count'))`
- clifanatic 10y agoYeah, I was seeing code like that in Java long before the term "JSON" was coined.
- qwertyuiop924 10y agoAnd then EVERY programmer would further abstraact that, as you really want the bare minimum of your code depending on your datastructure internals.