DEV Community

Discussion on: Idiomatic JavaScript Backend. Part 2

Collapse
 
theodesp profile image
Theofanis Despoudis

Decorators are harder to use than misuse. Plus they are experimental (stage 2) so expect some debates against them.

Thread Thread
 
k1r0s profile image
Ciro Ivan

Discussion is only on implementation details, they're unlikely to remove any of its features as I see on tc39 threads, even adding more.

Decorators are very easy to use if you know to do that. I think you're a bit influenced by your past experience with Java annotations. I know, that thing was a nightmare.

I do find that the problem was some design failures by framework it self (spring) rather than the idea about use decorators to encapsulate behaviors.