Better HN
topnewbestaskshowjobs
Log inSign up

inanutshellus

2,950 karma · joined Apr 1, 2014 (12y ago) · 989 submissions

Submissions

comment 4y ago · link · parent

This thread comes across as bickering, and detracts from OP's original euphoric "wow" message.

comment 4y ago · link · parent

FWIW though - he explicitly sets up a Match rule for the servers he cares about doing this to so he oughtn't end up accidentally doing any transferring unless his Match backfires.

comment 4y ago · link · parent

If I were wealthy enough to be /actually/ affected by the IRS expansion (400k+/yr) it would be a wise investment to spread articles like this to make sure The People are as against the IRS expansion as possible.

I'm curious what the avg income level of your downvoters is... ;-)

comment 4y ago · link · parent

Venkman, perhaps?

comment 4y ago · link · parent

Mediawiki is pretty standard though. I don't know if there are enough clients to justify the work, but it's something that's been on my mind for a while.

comment 4y ago · link · parent

I don't think there was an inference that the books are opaque, just that people reading these books in 2022 are already weird ducks. Well, as weird as anyone reading, say, Tao Te Ching or other non-standard-academic-curriculum "classic" books you'd have to go out of your way to read.

comment 4y ago · link · parent

I think this is a pretty decent idea and I'll add a tangential market: personal wikis.

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

I don't think it's terribly hyperbolic. OP wants to get rid of something he doesn't use and presents a black-and-white statement for why it's rational, but SUVs have so many proponents that the govt'd have to override all of them without their opinion weighing in to get it passed as law before they had a chance to kick you out of office. (See, say, the efforts in the 1970s to get the USA to use the metric system as an example.)

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

The government addressed this a few years ago by raising taxes on larger car chassis, making vehicles like the Hummer more expensive.

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

I recalled there was a "not found" response and used it whilst spitballing the response above, but you're absolutely correct. 400 (Bad Request) and 421 (Misdirected Request), or even 409 (Conflict) -- as another poster mentioned -- would be great responses in that scenario

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

Your argument is obviously what has been normalized in REST APIs, but it's not user friendly AND it's OP's whole point. He built his entire article -- and apparently his APIs -- around avoiding 404 ambiguity.

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

This is a bit weird to me.

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

... and did you see Nicole Kidman in Aquaman? Sometimes CGI "help" hits the uncanny valley instead.

comment 4y ago · link · parent

> Is it disingenuous to tell kids sticks and stones may break my bones but names can never hurt me?

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

But would you let your child be unattended and untrackable from dawn til dusk if you'd told them "have fun but stay in the neighborhood!"?

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

Which brings us to the apparently-answered question of which is better: A life in which a child is perfectly safe but steeped in micro-risk-aversion, or one that can and will have negative consequences?

comment 4y ago · link · parent

Similar to the "you didn't answer the phone, so now I'm worried you're dead / know you're ignoring me" scenario we have today in which 100% reachability means if you don't answer the phone, there's a reason.

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

The smiley face.

:)

comment 4y ago · link · parent

Stories create plans and set expectations.

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

The project's name goes back to 2016. Granted, the README called the project a "filesystem" back then not an SCM, but... still, the name seems to predate the series by quite a bit.

comment 4y ago · link · parent

This sounded cool, so I tried to set it up. It gave me a compilation failure (something about self.url doing something bad because of implementing Drop). I didn't put any more effort after that and I'm no Rust developer, so maybe it's on me, but I'd let you know anyway.

comment 4y ago · link · parent

I used to think the same, but eventually realized that both "facts" and, perhaps most especially, the omission-of-coverage categorize a journal as left or right...

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

Wow, that's super neat. Thank you for sharing.

comment 4y ago · link · parent

I'll come out of my shell a few times a week and won't understand what's going on. News sites just tell me the last 18 hours' worth of updates... So... I either disengage entirely and can't carry on a conversation or I stay engaged and worry about events I cannot affect.

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.

1
181920
33