• Sunday , 7 June 2020

JavaScript Decorators: @time

Code Canyon



In this video, we build a JavaScript decorator that will time how long a function takes to run.

Links:

– Exploring EcmaScript Decorators: https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841
– JSFiddle Code: https://jsfiddle.net/andrew8088/cfd5h39n/

Original source

3d Ocean

Related Posts

16 Comments

  1. Shyam Lohar
    May 30, 2019 at 18:24

    Dude this is neat best explanation of decorators on internet I'd say. ๐Ÿ˜๐Ÿ˜๐Ÿ˜

  2. Manas Tunga
    May 30, 2019 at 18:24

    great !!! Thanks a lot for making this video

  3. Scott MacNevin
    May 30, 2019 at 18:24

    Thanks Andrew – really good intro to JS decorators..subscribe people!!

  4. Wenyuan Jiao
    May 30, 2019 at 18:24

    So helpful and clear, thank you so much!

  5. Dj Punisha /JoyRide recordings/
    May 30, 2019 at 18:24

    nice, need more of these JS gems ๐Ÿ™‚

  6. Daniel Ram
    May 30, 2019 at 18:24

    This was very helpful, thank you

  7. JakeThe Corn
    May 30, 2019 at 18:24

    You are sharp man!

  8. Blue Bot
    May 30, 2019 at 18:24

    thanks very clear and helpful!

  9. IT
    May 30, 2019 at 18:24

    Best video about decorators I managed to find. Now I am able to create custom decorators )) Thank you very much

  10. googleplussucks
    May 30, 2019 at 18:24

    When i try this on jsfiddle i get an error in the console saying ''You are using the in-browser Babel transformer. Be sure to precompile your scripts for production.'''
    How on earth can i play with decorators online?

  11. Daniel Stephany
    May 30, 2019 at 18:24

    Great video!!! I have been reading articles about decorators and have found it difficult to find a good example of how to build one. Your video was easy to follow and Helped a lot. Thanks!

  12. Prabhas Joshi
    May 30, 2019 at 18:24

    why do we have to do descriptor.value.bind(target) – why cant we just do target[value]??

  13. Jiล™รญ Filip
    May 30, 2019 at 18:24

    see ya later decorator

  14. Muhammad Kashif
    May 30, 2019 at 18:24

    you are awesome bro. so you got a new subscriber ๐Ÿ™‚

  15. Prabha Karan
    May 30, 2019 at 18:24

    too fast ๐Ÿ™

  16. MrPlaiedes
    May 30, 2019 at 18:24

    Thanks Andrew! This is a great intro to decorators.

Leave A Comment

You must be logged in to post a comment.