Live data from Hacker News

Show HN: Minum – A minimal Java web framework

github.com

11–20 of 113 posts

Re: Show HN: Minum – A minimal Java web framework

#11
post #7
post #3

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

Looks like that should be the example rather than promoting unsafe coding.

Re: Show HN: Minum – A minimal Java web framework

#12
post #7
post #3

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

Making the user manually escape parameters (and be very careful not to miss any) seems at odds with the goals of ease of use and maintainability. Most template libraries do this automatically by default.

Re: Show HN: Minum – A minimal Java web framework

#13
post #8
post #5

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

What does ‘minimal’ even mean though? Code is code - either you pull it down as a dependency or you write it yourself, it all executes the same in the end.

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

#14
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: Minum – A minimal Java web framework

#16
post #14

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.

[deleted]

Re: Show HN: Minum – A minimal Java web framework

#17
post #10

I'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…

Modularism is my favourite. I am enjoying using ExpressJS of all things, because it comes bare bones but you are a few mix/match middlewares from having it set up as you like. And the process of setting them up is not a chore, it is valuable, you now know how your thing works. Whereas frameworks give you the kitchen sink behind a facade that makes most happy paths easy. But eventually you have to deal with that complexity one way or another, and usually it is by hacking together stack overflow and github issue answers :-)

Re: Show HN: Minum – A minimal Java web framework

#20
post #14

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.

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.
Post reply on HN