Am I missing something or does the quickstart recommend an XSS vulnerability? String name = request.startLine().queryString().get("name"); return Response.htmlOk(String.format(" Hi there %s! ", name)); Maybe having a little bit more available would be valuable.
here’s a more realistic example: https://github.com/byronka/minum_usage_example_mvn/blob/d649...
Show HN: Minum – A minimal Java web framework
11–20 of 113 posts
Re: Show HN: Minum – A minimal Java web framework
#12Am I missing something or does the quickstart recommend an XSS vulnerability? String name = request.startLine().queryString().get("name"); return Response.htmlOk(String.format(" Hi there %s! ", name)); Maybe having a little bit more available would be valuable.
here’s a more realistic example: https://github.com/byronka/minum_usage_example_mvn/blob/d649...
Re: Show HN: Minum – A minimal Java web framework
#13Earlier quoted context omitted.
Sure, but do you want to elaborate why you included it?
in case you truly want to go as absolutely minimal as possible. i do. for my own personal projects, i use that database.
The minimal/zero-dep solution will have have bugs that have already been fixed or avoided by battle-tested libraries, and it will very rapidly lose minimal status as you start to build something serious in it.
Re: Show HN: Minum – A minimal Java web framework
#14The 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: Minum – A minimal Java web framework
#15The existence of a project like this can lead to feedback that can improve other web frameworks and the JDK itself.
Re: Show HN: Minum – A minimal Java web framework
#16Names. 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: Minum – A minimal Java web framework
#17I'm thinking of this as a nice programming exercise for the author. As for being a framework which promises more with less, that only holds until feature x is required.
a perfect example of the thinking behind most frameworks. I don’t think most people are looking for minimal. For those that are, this might be right up their alley. Minimalism is an interesting ideology. it’s about choosing to do more with less, and there’s a great deal of ingenuity in saying, i only have this one knife and a rope, how do i cross this chasm. so to speak. no offense intended to the batteries included…
Re: Show HN: Minum – A minimal Java web framework
#18Re: Show HN: Minum – A minimal Java web framework
#19Re: Show HN: Minum – A minimal Java web framework
#20Names. 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.