Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
clifanatic
on Aug 25, 2016
|
parent
|
context
|
favorite
| on:
Arguments against JSON-driven development
> If an object is just there to store data and no behavior
Then why do you have it at all?
Bognar
on Aug 25, 2016
|
next
[–]
To define a valid shape for related data.
wtetzner
on Aug 25, 2016
|
prev
|
next
[–]
I suppose because the language doesn't have typed records. You have to simulate them with objects.
sidlls
on Aug 25, 2016
|
prev
|
next
[–]
Sometimes many different values are related to each other and it is useful to keep them close together for explicitness (and other reasons).
st3v3r
on Aug 25, 2016
|
prev
[–]
... to store data?
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Then why do you have it at all?