Live data from Hacker News

AdonisJS

adonisjs.com

21–30 of 69 posts

Re: AdonisJS

#21

Nah, if you want heavy backend, go with Go/Ktor/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. 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 w…

Too much misinformation

- Locks you to their own Validator. Nope, Run npm install Zod and you have it working

- Their own Response/Request classes. Isn't it same with Fastify, Express and other frameworks?

- Annotations, Aren't they part of JavaScript?

Re: AdonisJS

#22
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/

5 - 6 years ago I used sails and regretted it because of the assumptions made in waterline about databases. At the time there was no transaction support and joins were a mess. This was pre-1.0, so perhaps it has changed.

These days I use DRF because I like getting the built in Django admin for free. I know it is a bit dated in some ways, but I love the way Django structures things, works for my mental model.

Re: AdonisJS

#23

Nah, if you want heavy backend, go with Go/Ktor/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. 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 w…

Locking things in is not an issue if things are well built and well maintained. Having used Laravel, I'm amazed at their DX. First party libs all built by the same team, tools also built by the same team. Everything is congruent and just flows. Compare that to the wild west that is Javascript land. Multiple libraries that all do the same thing in different ways. Stuff being deprecated or completely changed. Sure, if…

PHP world is different. There's only Laravel and Symfony. You can't count on both surviving till atomic winter.

As you say, js world is fickle and I wouldn't count on Adonis being here for a long time. Mix and match is more pragmatic in this setting.

Re: AdonisJS

#25

Nah, if you want heavy backend, go with Go/Ktor/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. 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 w…

Too much misinformation - Locks you to their own Validator. Nope, Run npm install Zod and you have it working - Their own Response/Request classes. Isn't it same with Fastify, Express and other frameworks? - Annotations, Aren't they part of JavaScript?

That's why I don't recommend Fastify or Express. Remix and Hono use standard Req/Res

Annotations are not part of Js, they are part of Ts and are a concession to OOP people coming from other languages. It's a personal opinion but I don't like them and I enjoy this opinion is not uncommon because only few libs are riddled with them.

Re: AdonisJS

#26

Earlier quoted context omitted.

Locking things in is not an issue if things are well built and well maintained. Having used Laravel, I'm amazed at their DX. First party libs all built by the same team, tools also built by the same team. Everything is congruent and just flows. Compare that to the wild west that is Javascript land. Multiple libraries that all do the same thing in different ways. Stuff being deprecated or completely changed. Sure, if…

PHP world is different. There's only Laravel and Symfony. You can't count on both surviving till atomic winter. As you say, js world is fickle and I wouldn't count on Adonis being here for a long time. Mix and match is more pragmatic in this setting.

> You can't count on both surviving till atomic winter.

Nor can you count on your JS library to survive until next winter.

Re: AdonisJS

#27
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 looked at AdonisJS, but it has soo many things missing that I'd rather just go with Laravel or Rails. Both of those have been around for so long and have an amazing ecosystem (especially Laravel) and are battle tested. I've also just lost my trust in JS for any serious long term projects. Things work at first and then a year later all the underlying dependencies have changed and stuff stops working.

Fair criticism of the JS ecosystem. Things are always changing.

Btw, its hard to compare two ecosystems with a checklist. For example, Rails doesn't have inbuilt support for Auth, Authorization or Model factories and you rely on community solutions for those.

Similarly AdonisJS is missing some core integrations like queues and you have to rely on community solutions

Re: AdonisJS

#28

Nah, if you want heavy backend, go with Go/Ktor/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. 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 w…

Locking things in is not an issue if things are well built and well maintained. Having used Laravel, I'm amazed at their DX. First party libs all built by the same team, tools also built by the same team. Everything is congruent and just flows. Compare that to the wild west that is Javascript land. Multiple libraries that all do the same thing in different ways. Stuff being deprecated or completely changed. Sure, if…

"Locking things in" is an issue. It might not be a too big issue but it is one definitely.

Consider choosing Oracle as your database. It is a great database maintained by a big company so it will be around in future too. But you will be locked-in to very expensive licensing because when big businesses are "locked in" Oracle can and will raise their prices.

Re: AdonisJS

#29

Earlier quoted context omitted.

Too much misinformation - Locks you to their own Validator. Nope, Run npm install Zod and you have it working - Their own Response/Request classes. Isn't it same with Fastify, Express and other frameworks? - Annotations, Aren't they part of JavaScript?

That's why I don't recommend Fastify or Express. Remix and Hono use standard Req/Res Annotations are not part of Js, they are part of Ts and are a concession to OOP people coming from other languages. It's a personal opinion but I don't like them and I enjoy this opinion is not uncommon because only few libs are riddled with them.

Yeah being subjetive is fine. We all have tastes and preferences and that's why there are so many frameworks and ecosystems.

Going to nitpick a little here

Hono docs language says, they wrap the standard Request object that you can access via HonoRequest.raw https://github.com/honojs/hono/blob/main/src/request.ts#L26

Annotations/Decorators are in stage3 of JavaScript. But I agree they are not super common in JS world except TS heavy libs or frameworks. Btw we aren't big fan of them and use them sparsely in models and commands only

Re: AdonisJS

#30
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.
Post reply on HN