Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Kimmax116134yHas nothing to do with json or backend development, just bad (or inexperienced) developers.
I know. Just had to put characters in my story.
botti5244yYou would have hated the first API I wrote when I started in my first company :D
@relentlessCoder no no
In one endpoint a "Product" object is nested into another object and has three other nested objects
In another endpoint, it has different properties and no child objects
It's still all JSON
Unless I model two Product classes
But how how does the client app know which is the right one to use in which occasion?
@relentlessCoder They are not identical in the backend, but they still represent the same product. The product simply mutates during the checkout process.
Still the client app should be agnostic about it. Once you introduce a type there, you'll have to implement business logic in the client app and that's bad. Very bad.
cdrice97"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
oskaryil29Is it just me or are you like this too? 😆 #devLife
kebob31FUCK MY BOSS WHEN HE SAYS HE DIDNT SEE ANY UI CHANGES AFTER NOT SLEEPING FOR 24HRS TO GET THE ENTIRE BACKEND R...