TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

AdonisJS

101 pointsby spacebuffer11 months ago

10 comments

Ciantic11 months ago
Looking at this, it has similar aspects as ASP.NET Core, and the same flaws as the Controller per class design used. Methods such as &quot;index&quot;, &quot;show&quot; and &quot;store&quot; do not share a state, they shouldn&#x27;t share a class either.<p>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 &quot;Update&quot; classes to share functionality with other &quot;Update&quot; classes and so on.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;ardalis&#x2F;CleanArchitecture&#x2F;tree&#x2F;main&#x2F;sample&#x2F;src&#x2F;NimblePros.SampleToDo.Web&#x2F;Projects">https:&#x2F;&#x2F;github.com&#x2F;ardalis&#x2F;CleanArchitecture&#x2F;tree&#x2F;main&#x2F;sampl...</a>
评论 #40739988 未加载
评论 #40741759 未加载
评论 #40744903 未加载
morbicer11 months ago
Nah, if you want heavy backend, go with Go&#x2F;Ktor&#x2F;C#, not node. If you want light backend, use sth like Hono or H3. If you want to primarily produce html, use Remix or Next.<p>Adonis&#x2F;Redwood&#x2F;Nest is something you will regret in few years because it will lock you down to &quot;their&quot; ways of doing things instead of something with replaceable components.<p>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.<p>But even Adonis locks you to their validator instead of Zod or his cousins, they use their own Request&#x2F;Response classes instead of the platform ones, has yucky inheritance and annotations magic etc.
评论 #40741378 未加载
评论 #40741792 未加载
评论 #40742484 未加载
评论 #40742598 未加载
评论 #40742095 未加载
评论 #40741472 未加载
评论 #40741264 未加载
评论 #40743184 未加载
Brosper11 months ago
I am just exploring this kind of frameworks for my company. I wonder how many people use it on productions and are happy with it.
begueradj11 months ago
I used it for 3 years where everything which was too important (a took a long time to be done by the only maintainer (Harminder Virk) at that time with his only one &quot;helper&quot; (Romain Lanz) , so long that I had to stop using it because it was difficult to use in those conditions.
评论 #40741769 未加载
madmaniak11 months ago
Hehey! I&#x27;m late for the party :D I just wanted people interested in frameworks to take a look on comparison with (my) framework which purposefully takes another approach <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40743058">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40743058</a>
holoduke11 months ago
I never understood why you need more than a simple expressjs server. After all nodejs works best if served directly after a load balancer. But before heavy duty application logic. Node is fast in accepting, forwarding and replying requests. Put your real work in small c# or golang apps.
评论 #40788467 未加载
评论 #40742350 未加载
jitl11 months ago
Has anyone tried both AdonisJS and RedwoodJS and can compare the two?<p>Adonis and Redwood are both trying to be the JavaScript version of Rails&#x2F;Laravel - a traditional active-record based MVC rapid development server application framework.<p>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.<p>So, curious to hear any experiences with either and especially both.<p>Is it actually good?
评论 #40740158 未加载
评论 #40741310 未加载
nikodunk11 months ago
No mention of Views? The one thing I&#x27;d love to understand and is missing vs. Rails&#x2F;Laraval is an integrated solution of solving the View part of MVC I think?<p>Looks like a really beautiful framework.<p>EDIT: Nevermind, it&#x27;s in the docs, just not on the main landing page so feels a little more secondary. TLDR they recommend you use Edge&#x2F;Pug&#x2F;Nunjucks, htmx, vite for css bundling. Nice!<p><a href="https:&#x2F;&#x2F;docs.adonisjs.com&#x2F;guides&#x2F;views-and-templates&#x2F;introduction" rel="nofollow">https:&#x2F;&#x2F;docs.adonisjs.com&#x2F;guides&#x2F;views-and-templates&#x2F;introdu...</a>
评论 #40741710 未加载
rpowers11 months ago
Anyone else see these types of announcement posts, and it&#x27;s like they already have thousands of users? Where do y&#x27;all learn about these projects so early?
评论 #40740641 未加载
评论 #40740595 未加载
评论 #40741116 未加载
评论 #40742049 未加载
评论 #40743181 未加载
revskill11 months ago
Lack of vite&#x2F;webpack&#x2F;... FE integration is a huge breaker.
评论 #40741510 未加载
评论 #40741661 未加载
评论 #40741277 未加载
评论 #40742614 未加载