Live data from Hacker News

AdonisJS

adonisjs.com

1–10 of 69 posts

Re: AdonisJS

#2
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 "index", "show" and "store" do not share a state, they shouldn't share a class either.

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...

Re: AdonisJS

#3
Has anyone tried both AdonisJS and RedwoodJS and can compare the two?

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?

Re: AdonisJS

#4
post #2

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 "index", "show" and "store" do not share a state, they shouldn't share a class either. 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…

Grouping related functionality in a class and using it as a namespace, and using inheritance to get a few useful common features in close proximity and handing hooks is perhaps not the most correct from an OOP perspective, but it's common and results in much less boilerplate than doing everything 'correctly'.

What's more egregious to me is that the methods should just match HTTP method names and have 1 controller per route.

Re: AdonisJS

#5
post #3

Has anyone tried both AdonisJS and RedwoodJS and can compare the two? 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…

I haven't used either so I can't chime in on that front, but long ago I was pretty into Sails which is written by a team that loves rails, but switched to NodeJS so it's basically Node on Rails. I actually thought they discontinued it, but I just searched and it still exists. It was a solid framework like 5 years ago when I used it last so I assume it's quite mature now.

https://sailsjs.com/

Re: AdonisJS

#6
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.

Re: AdonisJS

#7
Anyone else see these types of announcement posts, and it's like they already have thousands of users? Where do y'all learn about these projects so early?

Re: AdonisJS

#8
post #7

Anyone else see these types of announcement posts, and it's like they already have thousands of users? Where do y'all learn about these projects so early?

So a few reasons come to mind. Firstly, these projects usually do more than one HN posts. And by the time they have thousands of users, they have already done quite a few HN posts by then. Additionally, if you follow a particular scene (JS in this case) then you can hear about these projects quite a lot on tech Twitter. Adonis was being actively discussed a few days ago after Theo posted a video about why there is no Rails alternative in JS-land. I personally remember hearing about Adonis when I searched for a Rails alternative in JS a long time ago.

And lastly, this project specifically has been in the making for a good number of years now. So it makes sense that there are quite a few people out there using it.

Re: AdonisJS

#9
post #7

Anyone else see these types of announcement posts, and it's like they already have thousands of users? Where do y'all learn about these projects so early?

To what "yasoob" said, you probably just missed it in past HN posts: https://hn.algolia.com/?q=adonisjs - It's been talked about for 4+ years now.
Post reply on HN