Ask HN: What stack would you use to build a CRUD web app on the JVM today?
71–80 of 213 posts
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#72I second Play Framework. Have used it and Scala is a very nice language to learn. If I had invested in so much into the JVM, Play Framework would be it. But, if it's just a simple CRUD app, and if you had a choice, I'd recommend you to give Ruby on Rails a try. Hope this helps!
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#73Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#74I would not start with technology stack and build around them. You look at your use cases and build out. Pick your frameworks and databases judiciously and as late as possible. Read: https://blog.8thlight.com/uncle-bob/2012/05/15/NODB.html Read: http://www.amazon.co.uk/Growing-Object-Oriented-Software-Gui... [EDIT] Removed the unnecessary/unhelpful opening statement.
Just because uncle Bob says something doesn't mean it's true. Frameworks and stacks provide templates for building CRUD apps. Building CRUD apps (read: database skins) isn't a big technological challenge most of the times anyway. So picking a stack that abstracts most of it for you could be a great help to only focus on the parts you care about. Not every project requires astronaut architecture and grand design. Half…
On a different note, I would also recommend to not start picking the framework or stack: Instead I would start by creating a couple of basic classes that represent the business logic.
I would also write tests for those classes. Furthermore I would probably introduce some repository classes that would interface with the database. Lastly I would try to find a library that handles HTTP routing - if the CRUD app was meant to have an HTTP I/O channel.
Not everyone wants to "go fast and break things" or blindly let their codebase depend on a third-party framework. This is usually what ends up happening when you don't think about architecture.
Check out the most popular Angular posts on HN this year [1]. Notice a trend?
[1] https://hn.algolia.com/?query=angular&sort=byPopularity&pref...
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#75Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#76Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#77I don't see how this question is answerable in any meaningful way in its current form. You're going to get a list of basically every JVM framework there is, and you speak nothing of your front-end requirements.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#78Java + MySQL, using these awesome libraries
- Bowser (webapp): https://github.com/mirraj2/bowser
- EZDB (MySQL wrapper): https://github.com/mirraj2/ezdb
- Ox (IO and Json): https://github.com/mirraj2/Ox
These bad boys make writing Java wonderful again.
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#79Grails/groovy with postgre. Grails is so ridiculously simple to set up and code with... you can literally parse JSON out of a request and map it to an object with "Object yourObject = request.getJSON". Then you can save it with another line like "yourObject.save()".
Re: Ask HN: What stack would you use to build a CRUD web app on the JVM today?
#80I second Play Framework. Have used it and Scala is a very nice language to learn. If I had invested in so much into the JVM, Play Framework would be it. But, if it's just a simple CRUD app, and if you had a choice, I'd recommend you to give Ruby on Rails a try. Hope this helps!