Comment by arccy
if "divide by cucumber" is a unique string in the code base, then yes?
if "divide by cucumber" is a unique string in the code base, then yes?
Doesn’t matter. The important thing is that I can look them up or resolve them easily. Without looking it up can you tell me the difference between HTTP 451 and 510? If not they’re no more useful than I’m a teapot. But I can identify both of those uniquely and figure out where they’re coming from.
This is a great example where humor can help: I love http.cat because the whimsy makes it easier to look up and remember status codes. Not exactly the same as jokes in code, but an example of how more humor can be better than less humor for practical, human-factors reasons.
https://http.cat/451 and https://http.cat/510 for reference
451 is a bit of a niche joke (took me a bit to realize it was Ray Bradbury), but 510 is definitely going to help me remember "not extended" :P
You can remember some of those by heart. Everybody knows what 404 means nowadays.
451 is also a bit whimsical btw – and that actually helps remember what it stands for (Unavailable For Legal Reasons).
Right. And how many of those can your brain fit?