Re:RFC for 7xx HTTP status
by some_account on Saturday July 21, 2018 @04:06AM
(#17581176)
I think it should be reserved for ad blocker detected, together with a browser setting that pops up a message that the server is not allowing people with ad blockers.
Then we could just easily ignore those sites who serve ads as a requirement, and they could go die in a fire.
Re:RFC for 7xx HTTP status
by frabert on Saturday July 21, 2018 @03:21AM
(#17581082)
I fail to see the humour in this, how are those HTTP responses? When would a server respond to a request with "Haskell"? Makes no sense to me, while " I'm a teapot" made perfect sense
Re:RFC for 7xx HTTP status
by dozzie on Saturday July 21, 2018 @11:00AM
(#17582210)
I know you'd happily bash PHP author for such an incomprehensible error
message, but it's not his own message, but something that comes from
Yacc/Bison, when the next parsed token is not what can legally follow whatever
the parser read up until now. It's just the tokens (or maybe just this one;
I haven't read the grammar) were not named in currently canonical English.
Re:RFC for 7xx HTTP status
by seandougall on Saturday July 21, 2018 @11:45PM
(#17585180)
It is, notably, just that one. If everything were in Hebrew, I would personally be perfectly happy to adjust. But being the only non-English token makes it a completely unnecessary source of cognitive load in a language that is already criticized for its standard library’s frequently inconsistent use of grammar.
Re:RFC for 7xx HTTP status
by hyperman1 on Saturday July 21, 2018 @11:12AM
(#17582252)
It wasnt formulated nicely, I grant you that. PHP bashing is easy even if the language caused big upsides for a lot of people.
But a developer is responsible for the consequences of his choices. If you name your tokens in Hebrew with consequences for error messages, you know you're gonna raise some eyebrows and cause pain for your colleagues.
The simple fact that the message is in this list proves that I am not alone with this opinion.
Then we could just easily ignore those sites who serve ads as a requirement, and they could go die in a fire.
https://en.wikipedia.org/wiki/Scope_resolution_operator#PHP
What were the PHP guys smoking to consider this a usable error message?
But a developer is responsible for the consequences of his choices. If you name your tokens in Hebrew with consequences for error messages, you know you're gonna raise some eyebrows and cause pain for your colleagues.
The simple fact that the message is in this list proves that I am not alone with this opinion.