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.
Show HN: Minum – A minimal Java web framework
21–30 of 113 posts
Re: Show HN: Minum – A minimal Java web framework
#22[flagged]
You do know you can declare multiple classes in a single file (static nested classes), contrary to the popular convention, right? And "public static void main" doesn't count as boilerplate, that's like one line in the whole program...
The real nice thing about Java is everything is statically typed, unlike in TypeScript where just your code and if you're lucky some of your dependencies BUT NOT ALL OF THEIR TRANSITIVE DEPENDENCIES are properly statically typed, and before you know it you've lost the nice safety and it's a crapshoot whether your type errors will really be caught, because a transitive dependency can do whatever it wants with your callback that you typed one way but it didn't care because it was plain javascript....
This is why I am not a fan of either Typescript or PEP 484 statically typed python. Typing works best when it was mandatory from day one, as long as there is some random untyped code in there somewhere nothing is really guaranteed.
Re: Show HN: Minum – A minimal Java web framework
#23Names. 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.
Valid point. I was going off documentation like here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages#s...
Re: Show HN: Minum – A minimal Java web framework
#24I'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
#25[flagged]
Actual Java dev here, not just someone who used it in college and got annoyed -- but I have no idea what you're talking about. Java has not been boilerplatey for a long time, I'd say since sometime between Java 5 and Java 8. You do know you can declare multiple classes in a single file (static nested classes), contrary to the popular convention, right? And "public static void main" doesn't count as boilerplate, that'…
Optional and generics would like a word...
Edit: OK, since this got a downvote, let me be clearer, with some help from the parent:
You just use Optional, and if you're lucky some of your dependencies BUT NOT ALL OF THEIR TRANSITIVE DEPENDENCIES also use Optional correctly and don't return null, and before you know it you've lost the nice safety and it's a crapshoot whether your Optional will be null.
Re: Show HN: Minum – A minimal Java web framework
#26[flagged]
Re: Show HN: Minum – A minimal Java web framework
#27Earlier quoted context omitted.
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…
Your kind of playing a little fast and loose with the term 'database'. You've implemented a naive persistent cache. (Don't get me wrong, I have too at times. they can be quite useful.)
Re: Show HN: Minum – A minimal Java web framework
#28[flagged]
Re: Show HN: Minum – A minimal Java web framework
#29I think the initial README could do a better job of showcasing the framework. I think including the Maven coordinates and the quick start example instead of linking to other pages could be a step in the right direction. Check out the README I wrote in https://github.com/tofflos/undertow-examples to get an idea of what I'm looking for.
Re: Show HN: Minum – A minimal Java web framework
#30Earlier 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.
I can see how having your own database is kind of "minimal" in the Java sense of the word. You don't need to install 50 different packages just to make a simple web app. There are minimal frameworks in the sense that they only provide a basic web server, but those are so minimal that you are forced to install a bunch of packages. It's minimal in the sense that create-react-app was minimal (RIP).