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
-
hinst12994ynothing unusual here, far from the worst design in the world 🤔
Now, what would be actually bad is if /json returned XML, and /xml returned JSON. But that's not the case here. Or is it... -
Sure, not the best design, but if their intention is for users to be able to just generate some dummy data quickly then being able to tell the API which format to use using the URL would allow them to link to the API and let the user open it in their browser.
-
neeno31464y@ScriptCoded good point, but it's not a dummy data generator, it's a ZIP code search engine, I just omitted the API's actual address.
-
eo287539924yLet's create a GitHub repo with the worst API ideas in the world, kinda like
https://theworldsworstwebsiteever.com/...
Let's call it UNREST -
neeno31464y@eo2875 honestly, I like the idea. However, I'm not gonna create the repo because I like my anonymity here on DevRant. But I do like a lot the idea.
-
I do that when I know I'll run out of standard content-types. Introducing custom ones just doesn't feel right.
Another thing with format in URL -- browser-friendly approach. Just pop that URL in your addressbar and there you have it. -
lotd77754yWhat if that api later wants to offer slugs as route param?
Ima name that slug json (:
Defining an Accept header is a standard afaik :) -
@eo2875 that site needs infinite scroll both horizontally and vertically to be truly the worst
-
@eo2875 In many ways I prefer that website over many modern sites.
If it was the worst website, it would:
Hijack the history so the back button doesn't work
Have a privacy options dialog with no actual options, which covers the whole screen by default, and won't close until you signed up for the newsletter
Said dialog would be of a fixed giant size, not centered and anchored to the viewport, so it's unclosable on smaller screens
Autoplay a loud live video after a few seconds, which has no control elements for playback or volume, and will float on the page when scrolling
Have a fading paragraph with actually interesting information leading into a paywall
Place tracker cookies to retarget you on other websites with ads for buying cow sperm
Disable right click and ctrl-C
Load a crypto mining JavaScript snippet so your browser becomes unresponsive
Uses onbeforeunload to display a confirmation dialog when trying to close the page -
@eo2875 That's what I mean... Compared to the rest of the modern internet, a site like https://theworldsworstwebsiteever.com/... is actually a pleasure to use. Not pretty, but it's predictable, stable and works very well on all devices.
Take https://brutalist-web.design/ as an example. Not pretty either. But it is clearly readable, has great predictable UX.
Related Rants
-
MikaY19Non-dev buddy: Dude I'm gonna report you to the tech department what are you hacking?? Me:
-
practiseSafeHex11Manager: I just think you are being too negative. Like sometimes other people have opinions too and we should ...
-
practiseSafeHex6PM: 2 months? no thats way too long, do it in 1. Director: I had a chat with someone else who doesn't work on...
Why use an Accept header when you can do this, right?
randomapi.com/random/resource/json
randomapi.com/random/resource/xml
🤦♂️
I'm already feeling it, I'm gonna have a great time with this API
rant
accept
header
moron