DEV Community

Discussion on: Idiomatic JavaScript Backend. Part 2

Collapse
 
theodesp profile image
Theofanis Despoudis

Are you sure you are using the right language here? It reminds me of Java ...

Collapse
 
k1r0s profile image
Ciro Ivan

Good, Java has annotations (kind of decorators). I don't know if you think if this is good or bad. To me decorators are a powerful tool. Many frameworks make hard use of them.

Yep, I'm using the right language here.

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.