2,950 karma · joined Apr 1, 2014 (12y ago) · 989 submissions
comment 4y ago · link · parent
I'm curious what the avg income level of your downvoters is... ;-)
comment 4y ago · link · parent
comment 4y ago · link · parent
I have a couple personal Mediawikis I've used for various domains, like genealogy, that I'd like to have printed. I guess most especially it, as the impermanence of all digital content is painfully obvious there.
comment 4y ago · link · parent
Is it possible? Yes, that's why I used the weasel words of "don't really happen" instead of "don't ever happen".
I also pointed out that the more likely way to get OP's way would be to continue raising taxes on those vehicles to illicit the same result without outright making SUVs illegal to produce.
comment 4y ago · link · parent
This led to the instantaneous rise in popularity of so-called "crossover" vehicles. Puffy vehicles that looked kinda SUV-ish and were elevated for higher road visibility but were built on a smaller (lower tax rate) car chassis.
The article of course wants to go to the next step, banning them outright which is just not going to happen. We don't live in a dictatorship and so absolutes like "never make an SUV" bans this don't really happen. Especially because... there are plenty of real-world non-edge-case scenarios in which having one vehicle for a lot of people and stuff is much more efficient than multiple sedans.
We could keep raising taxes on those SUV chassis though, I guess.
comment 4y ago · link · parent
The main "issue" is that 404 is the normalized response for web servers when an endpoint doesn't exist. So it feels like one is breaking the established paradigm by using something else, but I think it's absolutely worth doing.
Certainly a bigger fan of defaulting to returning a 409 than making my API consumers parse all my response bodies.
comment 4y ago · link · parent
If you hit an endpoint and get a 404... did you do it wrong? Is my documentation outdated?
Even better: What recourse do you have? how do you figure out the answer?
Your only recourse is to email me. Send me cURL commands and screenshots and sit on your thumbs until I write back.
IMHO the REST folk were blinded by the existing 404 normalcy set up by web servers.
...
personally I think OP's idea isn't great. I think returning 200 and making me parse the response and hoping it's consistent between services is too much work compared to the simplicity of the HTTP response.
Instead, I'd change the default from 404 to 501.
HTTP 501 - not implemented (URI is not working)
HTTP 404 - resource not found (Joe doesn't exist in db)comment 4y ago · link · parent
Your article is entitled "I've been abusing HTTP status codes" ... but... you're not "abusing" them, you're "not using" them for your APIs. (Or, said another way, you're leaving them to their normal usage for HTTP servers.)
Thus -- as REST is /the/ canonical "hijack HTTP status codes to mean something clever" paradigm -- your article is /entirely/ in context of REST even if you avoided mentioning it.
...
Anyway - I'm entirely with you on the foolishness of using 404 to mean both "your URL is messed up" and "I couldn't find the resource you wanted".
comment 4y ago · link · parent
That phrase's famous usage is as a way to portray self-respect and non-violent defense of oneself after being verbally attacked.
In that context, it still has value and is not disingenuous to provide to children.
comment 4y ago · link · parent
A well-publicized truancy lawsuit from maybe 5 years ago -- in which 2? children were remitted to foster care because an 8? year old and his brother were allowed to walk 2? blocks to a park unattended (I did a quick search for the suit, but there were so many results... the specific case ceased to matter) -- implies the answer is irrelevant, as American society wouldn't even let you if you wanted to.
comment 4y ago · link · parent
The surreal world of "hey kids, go play all day. Come back before dark!" is unfathomable. We literally leash children that are too small to be reached digitally.
Fascinating societal change in a fairly short amount of time.
comment 4y ago · link · parent
Take the "story" of "if we get separated at the mall, meet at the fountain and wait there until we all arrive."
That's a story. You can imagine how it goes.
1. Imagine getting lost. Oh no, oh dear, sweaty palms! But hey, I'm not actually lost. No need to panic. Ok, now what?
2. I should actively work to remember the path back to the fountain.
Now, when your five-year-old brain realizes you got separated from daddy, you're not FREAKING OUT you're backtracking to the fountain and thumb-twiddling.
Your turn - all you have to do is come up with an edge case ("I'm sure there are some kids that'd forget where the fountain was") and pretend that "some" is statistically more relevant than the idea that making a plan makes a positive difference.
comment 4y ago · link · parent
comment 4y ago · link · parent
Even the words a journal uses are dog whistles for "we think alike". "Latinx" versus "Latino". "Illegal Immigrant" vs "Undocumented Worker".
comment 4y ago · link · parent
I'd like a "I haven't checked the news in [7] days and some guy at work mentioned [Ukraine talking to the UN], what's that all about?" website.
I guess it'd be 7 days worth of news synopses for the topic.
[7 days ago this city fell, Joe said stern words about it, and the Sauds started selling oil in Yuan because it didn't want China to get all its oil from Russia.]
[6 days ago that city was retaken, and everyone was surprised.]
[5 days ago Joe said more stern words but had no effect.]
etc.