r/node • • Jan 06 '24

NestJS: Server framework on steroids ๐ŸŽ‰

https://blog.disane.dev/en/nestjs-server-framework-on-steroids/
0 Upvotes

13 comments sorted by

1

u/eliwuu Jan 07 '24

nestjs is a bad framework; hard to debug, if you want to do anything beyond simple crud becomes convoluted; mostly unneeded complexity, enforces oop conventions and encourages use of orms that are, well, not the strongest selling point of js ecosystem; also: there is a cherry on top, common js

2

u/Disane87 Jan 07 '24

I really donโ€™t understand the point of debugging. You can debug nest completely in vscode with breakpoints and such. I have already made backends which donโ€™t have crud operations and do pretty fancy stuff with image manipulation, scraping and some other weird stuff and it works better than having vanilla express (I.e.). Imho itโ€™s not that complex and having oop isnโ€™t the badest idea.

All your critics are imho not points against nest. Can you explain your points why you see them as bad in nest?

1

u/[deleted] Jan 07 '24

which framework would be your number 1 pick?

→ More replies (2)

1

u/andycharles Jan 07 '24

Can't you use ESM with Nest.js? How does Nest.js prevents using it?

1

u/xfatal9x Jan 07 '24

Enforcing oop is the main reason I use nest.

0

u/majorius Jan 07 '24

nest is trying to be dotnet of js world, and I have no idea why you would use nest instead of dotnet, considering that their complexity is almost on the same level)

3

u/Ok_Film_5502 Jan 07 '24

It is cheaper especially if you have lots of js devs, frontend devs can do some basic stuff on the backend guided by senior folks. also u can share types between front and back.

2

u/majorius Jan 08 '24

you can do type sharing and even typescript client-for-backend generation via nswag. The syntax of C# is almost the same as for ts with classes. Also consider that entity framework is a much better alternative of prisma or really any other sql orm from js world. As for guidance - if you have one c# dev its easy to convert ts devs to c#

1

u/Ok_Film_5502 Jan 08 '24

Agree with everything except the conversion since i am a FE dev doing some backend stuff on the .NET Core api (small and easy tasks like adding an endpoint or fixing some response shape). Picking up C# was not easy at all and i had to do that during my free time since business is not willing to pay for that..

1

u/Ok_Film_5502 Jan 08 '24

Btw and our C# devs dont rly wanna spend time teaching frontend devs their stuff

1

u/Disane87 Jan 07 '24

I can handle both (at work we only do .net core backends) but I prefer privately to be in one environment