Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grandalf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
271.
▲
by
grandalf
9y ago
There will be cases where an HTTP status code matches perfectly with an application specific scenario, and in those cases using an HTTP status code is not confusing. The confusion comes when the API developer tries to shoehorn all applicati
272.
▲
by
grandalf
9y ago
> HTTP is not a closed protocol. I'm not arguing it is, it's an extension that adds specific semantics to accomplish a specific purpose. But some developers look at WebDAV and see a lot of similarity with some of the applicatio
273.
▲
by
grandalf
9y ago
> I generally prefer those that use HTTP status codes + error payload I have less of a a problem with that approach, but I do think that it can be confusing if the consumer reads too much into the meaning of the HTTP status codes. In ge
274.
▲
by
grandalf
9y ago
422 is from the WebDAV spec, which is not HTTP. A big portion of the improper overloading of HTTP status codes comes from WebDAV status codes seeming appealing when in fact WebDAV is a very specific set of functionality that is not really a
275.
▲
by
grandalf
9y ago
> Are there any major trade offs? Yes, see my other comments in this thread.
276.
▲
by
grandalf
9y ago
> Don't return a 200 code when the request failed. The request didn't fail, it simply followed application logic and returned a successful response indicating the nature of the application logic to the client. That is not an e
277.
▲
by
grandalf
9y ago
> Surely an invalid request is a bad request. Invalid to whom? Should a form submitted with a username that already exists in the system get a 500 response code? What's the server error?
278.
▲
by
grandalf
9y ago
> HTTP status codes exist to be overloaded If you look at most of the status codes they pertain to the transport itself: content negotiation, content size, etc. In other words, the client would be pleased to see one of those codes when m
279.
▲
by
grandalf
9y ago
> It's possible there is nothing between the OS handling TCP and your application. This does happen, and it results in the client having to have ad-hoc code to deal with a nearly infinite number of possible "Server error"
280.
▲
by
grandalf
9y ago
My take on SOAP's approach is that it isn't overloading HTTP status messages, it's attempting to impose SOAP's message structure on things that are legitimately HTTP 5xx responses, so that the soap client can handle some
281.
▲
by
grandalf
9y ago
Many API developers misuse/overload HTTP status codes when they should actually be using application specific status codes delivered via a wrapper to the response. Any time an API returns a correct response the HTTP response code shoul
282.
▲
by
grandalf
9y ago
> I'm not even going to get into the "war for oil" conspiracies. The only reason the middle east is relevant whatsoever in US politics and world affairs is because of the large concentration of petroleum beneath the sand.
283.
▲
by
grandalf
9y ago
> That's not to say they must be attacked. So then what's the point of all the bluster and outrage? > up until the 2000s this worked. It's apparently still working. The past administrations have each come into the pictu
284.
▲
by
grandalf
9y ago
> I sometimes wonder if western populations would have the will to fight Russia if they invaded Lithuania or something. Let's hope not. I certainly don't think it's worth anyone I know dying to protect Lithuania from Rus
285.
▲
by
grandalf
9y ago
It is strongly in N. Korea's interest to develop nuclear weapons. NK is acting highly rationally in every respect. I simply can't handle the statements from US officials accusing Kim Jong-un of being "insane" or "i
286.
▲
by
grandalf
9y ago
I'd go through airbnb again unless i really expected to stay there frequently. Dispute mitigation cuts both ways.
287.
▲
by
grandalf
9y ago
The ideal skill set for a CEO varies dramatically at different stages of company growth. There are likely some universals, but those are the least useful areas to consider and the most hand wavy.
288.
▲
by
grandalf
9y ago
> * What is Blue Apron's reason for the job cuts? Companies sometimes increase headcount before a fundraising event to create a signal that growth is occurring, or to maximize one area of visible growth as much as possible. This he
289.
▲
by
grandalf
9y ago
I agree. I think that the threat posed by weapons was already fully mitigated on the day of 9/11 when the passengers on the last aircraft tackled the hijackers in spite of the box cutters. All this with no marshal, no sealed cabin door
290.
▲
by
grandalf
9y ago
Perhaps, but I think you assume a much greater level of enforcement than actually exists. Most tax evasion enforcement is on relatively small subset of taxpayers and is for fairly easy-to-detect fudges. There has been a lot of work between
291.
▲
by
grandalf
9y ago
Putting a device on its own tray means that an algorithm can apply heuristics to it to determine if it should receive a wipe test or additional human screening. By placing the items onto a tray, the orientation of the device is more likely
292.
▲
by
grandalf
9y ago
> I think Slack did a good job with a base product, and they simply solved a pain point in a better way. I agree with this, but haven't found it to be preferable to hipchat. I definitely think it's a well designed product in m
293.
▲
by
grandalf
9y ago
Good point. I think it will take a fairly significant transition away from fiat currencies before that situation is eliminated... But one of the incentives of getting rid of cash is to transform the money into something that can be efficie
294.
▲
by
grandalf
9y ago
This illustrates how the DOJ is years behind when it comes to understanding cryptocurrency technology and markets. It won't take long for one of the cryptocurrencies with private transactions to rise in dominance, since this sort of cr
295.
▲
by
grandalf
9y ago
It's amazing to me that Slack has been so successful, considering how so many other alternatives exist. I've found several very annoying bugs in the OSX Slack client, and each time I wait a few months before trying it again, yet m
296.
▲
by
grandalf
9y ago
This looks great. It's a smart way to use the encapsulation offered by components in a sensible way for error handling.
297.
▲
by
grandalf
9y ago
I've come to feel that a Windows 10 machine is more secure than an OSX machine, all else being equal.
298.
▲
by
grandalf
9y ago
> I'm actually surprised to not hear about huge declines in AdWord spending (unless I missed it). There have been some pretty big signals, the most significant of which has been the pricing of Google phones, tablets, chromebooks, et
299.
▲
by
grandalf
9y ago
This is what happened for me too. I have clicked on 3 Facebook ads in the past year (and made two purchases), and prior to that I think I've clicked on perhaps three other ads in the past 15 years and made zero purchases from any of t
300.
▲
by
grandalf
9y ago
Interestingly, I'm someone who does not click on ads, but the last 3 ads I've clicked on were on Facebook, and two resulted in purchases. I can't help it when the ads are for cool things like a $20 USB endoscope.
More ›