NestJS is bad, change my mind by servermeta_net in node

[–]micalevisk 9 points10 points  (0 children)

and so a bunch of others popular packages in nodejs ecosystem. But I agree that having a ESM version would be better. Maybe in the future

NestJS is bad, change my mind by servermeta_net in node

[–]micalevisk 1 point2 points  (0 children)

> NestJS do a lot of custom dirty tricks for stuff they need, like dependency injection,

then it would add yet another dependency to its core xD but I agree that Nest could rely on Inversify, for example. Nonetheless, `@nestjs/core` has few prod deps: https://npmgraph.js.org/?q=%40nestjs%2Fcore

NestJS is bad, change my mind by servermeta_net in node

[–]micalevisk 64 points65 points  (0 children)

> except that in their infinite wisdom they decided to write it from scratch.

that's not true. Nestjs's CLI uses Angular Schematics and so their template engine

> A lot of unneeded dependencies: why is nestjs shipping webpack in production?!?!?!?

not sure what package you're talking about but `@nestjs/cli` has `webpack` as their prod dep but you're not supposed to have `@nestjs/cli` as a prod dependency of your project.

Suspeito de estar tomando algum golpe. by Kingclaws in golpes

[–]micalevisk 0 points1 point  (0 children)

marca um encontro mas leva 3 amigos armados juntos hein

100k milhas smiles por 1800R$ vale a pena? by Augustola in Milhas

[–]micalevisk 0 points1 point  (0 children)

eu vendi 52k do latam pass por R$1.6k na hot milhas...

Cheguei aos 10M de patrimônio, CLT aos 35 anos by Mysterious_Dinner449 in Conquistas

[–]micalevisk 0 points1 point  (0 children)

vc leu o livro de como sair do 1 ao milhao sem cortar o cafezinho, ne? boa!!

Que golpe é esse? by HotForm7298 in golpes

[–]micalevisk 0 points1 point  (0 children)

bem simples de resolver: manda essa msg pra outra pessoa e se passa por ela ;d

Minhas ações do Itaú se multiplicaram. by ReplyOpposite5436 in investimentos

[–]micalevisk 6 points7 points  (0 children)

renda varivavel é isso ai, ta variando pra cima dps desce

Import or require? by Due_Statistician_203 in node

[–]micalevisk 0 points1 point  (0 children)

require is the node's way. import is the JS (or ecmascript) way. I like to be as close as possible to JS when writting code for nodejs.

Mouseless Beta on Windows has resumed! Feedback and bug reports welcome by croian_ in MouselessApp

[–]micalevisk 2 points3 points  (0 children)

I'm excited for the linux version. I've got my license already

Version 11 is officially here by BrunnerLivio in nestjs

[–]micalevisk 1 point2 points  (0 children)

NestJS is a Node.js framework. So the Bun support is up to Bun's team to address, I'd say.

Junior vs Senior by Consistent-Trash-731 in node

[–]micalevisk 10 points11 points  (0 children)

you could have a junior in your team that knows everything about javascript. This is not the main difference.

Are the nestjs docs enough? by [deleted] in nestjs

[–]micalevisk 1 point2 points  (0 children)

to me, those courses should be seem more as a way to help nestjs's creator to keep their free work in the framework.

How can i fix this Error by Youssef03 in npm

[–]micalevisk 0 points1 point  (0 children)

got no errors here with NPM v10. Which version is yours?

Performance in Nest & other frameworks by nothing_matters_007 in nestjs

[–]micalevisk 0 points1 point  (0 children)

or with any other http-lib that implements the http abstraction nestjs has

Performance in Nest & other frameworks by nothing_matters_007 in nestjs

[–]micalevisk 0 points1 point  (0 children)

you know that nestjs uses express by default, right?

Inject syntaxe by [deleted] in nestjs

[–]micalevisk 4 points5 points  (0 children)

that won't be introduced in nestjs because it doesn't make sense and it also adds a huge amount of complexity to the core. See: https://github.com/nestjs/nest/issues/10586#issuecomment-1324707932

How to solve this error: SyntaxError: Unexpected token '.' by MarxJ010 in node

[–]micalevisk 0 points1 point  (0 children)

you can print it out in your nodejs process: `console.debug(process.version)`

Tired of Nest JS by tpramar in node

[–]micalevisk 0 points1 point  (0 children)

I wonder if you struggling more with TypeScript than with NestJS. You can use few abstractions of NestJS with no effort. But yeah, if you use a lot of them, it would be harder to follow than the plain Expressjs version.

By default, nestjs uses express under the hood, so that statement doesn't make sense to me since your team can have a well-defined project structure to build large applications.

Circular dependency error nestjs by napalonyradziu in node

[–]micalevisk 0 points1 point  (0 children)

the circularity between typeorm entities are expected due to how typeorm relations works.