News for hackers. Stuff that matters.
Re:TypeScript Features to Avoid by matt7340 on Thursday January 20, 2022 @08:11AM (#30008410)
I like these recommendations, especially around decorators, maybe I’ll start following them

reviews Angular app

oh

Re:TypeScript Features to Avoid by leodriesch on Thursday January 20, 2022 @09:42AM (#30009464)
Nest also does this, seems very strange to bet on such an experimental feature. It's very convenient to use though.
Re:TypeScript Features to Avoid by uzername on Friday January 21, 2022 @12:15AM (#30019450)
Yes, Nest uses decorators and the reflect-metadata package to get information about them dynamically. Annotations/decorators in other languages are fine, but in JavaScript/Typescript I feel the risk of using them as a dead end feature. I'd like the proposal as much progress as possible, but it's been quiet. In the meantime, a Typescript Nest like system without annotations could be better.