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.
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.