Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kimmax111067yHas nothing to do with json or backend development, just bad (or inexperienced) developers.
-
@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
But unusable
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.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
kebob32FUCK MY BOSS WHEN HE SAYS HE DIDNT SEE ANY UI CHANGES AFTER NOT SLEEPING FOR 24HRS TO GET THE ENTIRE BACKEND R...
-
oskaryil29Is it just me or are you like this too? 😆 #devLife
Fuck (some of) you backend developers who think regurgitating JSON makes for a good API.
"It's all in JSON. iOS can read JSON, right?"
A well-trained simian can read JSON, still doesn't mean it can do something with it. Your shitty API could be spitting out fucking ancient Egyptian for all I care, just make it be the same ancient Egyptian everywhere!
Don't create one endpoint that spits out the URL for the next endpoint (completely different domain, completely different path structure). Are you fucking kidding me?
As if that wasn't enough, endpoints receive data structured in one way, but return results in another!! "It's all JSON", but it's still dong.
How do I abstract that, you piece of shit? Now I have to write ever so slightly different code in multiple places instead of writing it only once.
How the fuck do I even model that in a database?
Have a crash course on implementing APIs on the client side and only come back when you're done.
Morons.
undefined
morons
json
backend