JavaScript Jabber cover image

Things Coming Down the Pipe From TC39 - JSJ 590

JavaScript Jabber

CHAPTER

The Advantages and Disadvantages of Decorators in JavaScript

The idea is to support something that's technically called aspect oriented programming, which is a mechanism for managing cross cutting concerns in a kind of a clear way. In JavaScript you write the add symbol followed by the name of the decorator in front of a class name or a method name or field name. And it decorates either the class itself or the method or the field slash property. So let's say you decorated the class, that function is invoked with reference to the class and some additional information.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner