News for hackers. Stuff that matters.
Re:Show HN: Zero-dependency Java framework out of beta by beders on Monday September 25, 2023 @03:26PM (#37649239)
Names.

The problem always comes down to naming.

`StartLine.Verb.GET`

is not a good name.

Neither StartLine nor Verb are used in that context in the HTTP spec.

The most widely used name for GET/POST etc. is Method.

The author will find that these seemingly small things will hinder adoption.

Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Monday September 25, 2023 @03:39PM (#37649429)
Valid point. I was going off documentation like here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages#s...
Re:Show HN: Zero-dependency Java framework out of beta by jen20 on Monday September 25, 2023 @03:58PM (#37649711)
That page uses Method though, and places nouns at equal importance with verbs when describing them?
Re:Show HN: Zero-dependency Java framework out of beta by ivan_gammel on Monday September 25, 2023 @03:38PM (#37649425)
Agree. Looking at the example project, this is not a single case, when a name could be better. Helpers and Utils are naming anti-patterns, so naming function ˋ(de)serializeHelperˋ is not a good idea.
Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Monday September 25, 2023 @04:19PM (#37650023)
Names. One of the two hard problems in computer science, along with cache invalidation. And off-by-one errors.