HN user

ljnelson

138 karma
Posts0
Comments37
View on HN
No posts found.

Many comments so far seem to imply (perhaps not intentionally) that this syntax was intended only on the "right side" of the URI, but you can think of it more as adding qualifier-like information to (potentially) each path segment. So in /com/foo/bar you could further qualify foo (perhaps as /com/foo;color=yellow/bar). This can be combined with a (definitionally trailing) query string as well. Someone noted that Spring implements some support for this; the Eclipse Foundation's Jersey (Java REST toolkit) does as well if I remember right.

Indeed. “of” infected Java with the awful naming conventions imposed by java.time (and to a lesser degree java.nio) because “new” is a keyword and doing “newThing” instead was not in vogue. Now it smacks of the worst kind of hipster disease and is going to enter java.lang for no good reason at all. What’s wrong with “newPlatformThread” or something similar? This shouldn’t have survived the initial sniff test.

How do I put this? We are all going to be forgotten, utterly, along with every last thing we do, within no more than three generations (one for most of us). That makes everything we do both utterly insignificant and unfathomably important at the same time. Please make sure whoever is reading this, particularly if you're in your 20s, that you do what makes sense for you, and those around you who are important to you, for your very, very short now.

Part of what I love about this is that periodically it doesn't work and a dude comes in from off camera and manually makes sure your email is torched. Very 2020.

This seems like it isn't physically related, but it is: as the years accumulate, it becomes more and more clear that the person staring back at you in the mirror is the one you have to live with most intimately. Do the best you can with what you have, in all things, always. The person in the mirror will know whether it was the best you could, and he or she or they will also know whether you can be forgiven for any given action given what you had at the time. The biggest part of this is unkindness: If you are unkind, that person in the mirror will never let you forget it. You may not spend much time on this when you are young but you will spend a lot of time on it when you are older.

[dead] 8 years ago

Oh; thought we were talking about Simone Biles. Never mind.

One of the lovely bits I ran into recently is whether a given YAML parser interprets a value as a string or not (for example) is entirely up to the parser, and there's nothing you can really do about it in the syntax. Quoting is a useful hint, but the parser doesn't have to take action as a result. !!str is another useful hint, but str is kind of up to the parser. My favorite related bug that shows the kind of shenanigans that simply using YAML results in: https://github.com/kubernetes/helm/issues/1707