by spacebuffer on 6/20/24, 12:42 PM with 64 comments
by Ciantic on 6/20/24, 3:18 PM
However, you can rectify this, by just not trying to share a class with any of those. In .NET Steve Smith, aka Ardalis shows how to do this with his Clean architecture [1]. One idea is to make a class for each endpoint. This also makes it easier for "Update" classes to share functionality with other "Update" classes and so on.
[1]: https://github.com/ardalis/CleanArchitecture/tree/main/sampl...
by morbicer on 6/20/24, 5:32 PM
Adonis/Redwood/Nest is something you will regret in few years because it will lock you down to "their" ways of doing things instead of something with replaceable components.
Admitted, Adonis looks most sensible out of these 3. Redwood is poisoned with needless GraphQL and Nest is written like 2008 java. In Adonis you can at least pick the db layer.
But even Adonis locks you to their validator instead of Zod or his cousins, they use their own Request/Response classes instead of the platform ones, has yucky inheritance and annotations magic etc.
by Brosper on 6/20/24, 4:20 PM
by begueradj on 6/20/24, 6:35 PM
by madmaniak on 6/21/24, 6:18 AM
by holoduke on 6/20/24, 6:25 PM
by jitl on 6/20/24, 3:32 PM
Adonis and Redwood are both trying to be the JavaScript version of Rails/Laravel - a traditional active-record based MVC rapid development server application framework.
The last time I looked for one of these (2018) they were immature and now at least in terms of website and documentation they both appear very capable. But if there’s one thing that JS libraries are good at, it’s marketing and slick documentation.
So, curious to hear any experiences with either and especially both.
Is it actually good?
by nikodunk on 6/20/24, 5:27 PM
Looks like a really beautiful framework.
EDIT: Nevermind, it's in the docs, just not on the main landing page so feels a little more secondary. TLDR they recommend you use Edge/Pug/Nunjucks, htmx, vite for css bundling. Nice!
https://docs.adonisjs.com/guides/views-and-templates/introdu...
by rpowers on 6/20/24, 4:26 PM
by revskill on 6/20/24, 4:56 PM