Live data from Hacker News

Show HN: Minum – A minimal Java web framework

github.com

51–60 of 113 posts

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

#51
post #36

Earlier quoted context omitted.

One suggestion I have would be to include a very minimal implementation of login management (basically just properly hash/salt passwords and provide some easy way to add users). I've used Django before for the sole reason that it includes a database and user management because some API had to be login only since said API had high resource usage. I can see how having your own database is kind of "minimal" in the Java…

Your wish is my command ;) https://github.com/byronka/minum/blob/master/src/test/java/c...

Why is this under src/test/java?

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

#52

The size statistics page is super cool: https://github.com/byronka/minum/blob/master/docs/size_compa... Reasoning this way about software and dependencies more often seems like a good thing, just so we're aware of what we're actually getting into, especially with projects that use npm. I actually hadn't heard of Javalin before, which also seems nice: https://javalin.io/ Aside from that, I've also had good experiences…

I did a survey of light frameworks and settled on the Javalin + JDBI (from DropWizard) combo. That was at a Spring/Boot shop where we needed something with very short startup time for rapid scaling.

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

#53

Earlier quoted context omitted.

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

You're correct ... in theory. At least in this project example code, i see tons of empty class like Result.java with empty content, on separate file. So is this normal convention for Java dev ? No eslint (or similar tool) to prevent boilerplateness ? That's my point. Do you Java dev have strict standard on prevent such things spread on all codebase, ecosystem,... ?

Well, I can't speak for how others write Java. It's like any other language -- if a function or file or class is growing too big and complex, you split it up. If you have several that are too tiny and they are logically related, you can group them together.

For some reason, some early java devs got the idea that you weren't allowed to have multiple classes in one file (an easy misunderstanding if you follow a Hello World tutorial and stop learning) so yeah, you'll find plenty of projects that have a bunch of class file with 3 lines.

So what? If you find this kind of mistake in a project you're working in, it's going to be very easy to refactor it safely, since Java is statically typed and IDEs like IntelliJ can use that static typing to make moving classes around extremely safe.

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

#54
To anyone developing libraries: please, for the love of god, just put a damn code snippet right at the top. A simple hello world would do.

If you're pitching me something, show it to me. People don't have to dig around to see what you've made. I think the average visitor will give you about 10 seconds to decide if this is something they might be into, and if they can’t tell then they’ll leave.

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

#56
post #54

To anyone developing libraries: please, for the love of god, just put a damn code snippet right at the top. A simple hello world would do. If you're pitching me something, show it to me. People don't have to dig around to see what you've made. I think the average visitor will give you about 10 seconds to decide if this is something they might be into, and if they can’t tell then they’ll leave.

Click the giant "QUICKSTART" link and you'll get what you're asking for.

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

#57

The size statistics page is super cool: https://github.com/byronka/minum/blob/master/docs/size_compa... Reasoning this way about software and dependencies more often seems like a good thing, just so we're aware of what we're actually getting into, especially with projects that use npm. I actually hadn't heard of Javalin before, which also seems nice: https://javalin.io/ Aside from that, I've also had good experiences…

3,757 what? KB, MB, GB, TB, PB, LOC, hours to download?

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

#58
post #51
post #36

Earlier quoted context omitted.

Your wish is my command ;) https://github.com/byronka/minum/blob/master/src/test/java/c...

Why is this under src/test/java?

Because it's not something within the Minum framework. It's an example implementation that sits outside of it.

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

#59
post #57

The size statistics page is super cool: https://github.com/byronka/minum/blob/master/docs/size_compa... Reasoning this way about software and dependencies more often seems like a good thing, just so we're aware of what we're actually getting into, especially with projects that use npm. I actually hadn't heard of Javalin before, which also seems nice: https://javalin.io/ Aside from that, I've also had good experiences…

3,757 what? KB, MB, GB, TB, PB, LOC, hours to download?

LOC + Dependency LOC, it seems.

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

#60
post #57

The size statistics page is super cool: https://github.com/byronka/minum/blob/master/docs/size_compa... Reasoning this way about software and dependencies more often seems like a good thing, just so we're aware of what we're actually getting into, especially with projects that use npm. I actually hadn't heard of Javalin before, which also seems nice: https://javalin.io/ Aside from that, I've also had good experiences…

3,757 what? KB, MB, GB, TB, PB, LOC, hours to download?

LOC
Post reply on HN