2 ms·
can you explain that example more clearly? if you wanted to "include images or something of that sort" you would add an "images" key or a "something of that so
by rolltiide 7y ago
can you explain that example more clearly?
if you wanted to "include images or something of that sort" you would add an "images" key or a "something of that sort" key
in your particular example, body can clearly take image links image data as string and the parser can deal with it.
in my projects we typically would have a nosql database which out the box allows it to be indifferent about objects in a collection/table that include or exclude certain keys
- cblades 7y agoNot who you're responding to, but: >and the parser can deal with it. That's not ideal. You need a defined schema so that the majority of parsers can reliably parse the majority of objects. >in my projects we typically would have a nosql database Parser implementations shouldn't be assumed to use the same or similar tech stack that you do.
- jjdjr0odo7 7y agoOver generalized solutions smells like premature optimization Solve for the problems at hand, not ones we can conceptualize. If a stack works fine, why does the parser picked for that stack need to be anything else than what’s working?