Switching From Prototype Functions To Class Declarations #2698
-
|
Hey everyone! I'm new to Music Blocks development so was looking for some good first issues. I stumbled upon #2629 which mentions switching from prototype functions to class declarations for a bunch of files. I was wondering if there is something which I can have a look at as an example so that I have a clear idea while porting files. Is the intended goal something like this. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
More like #2697. @ksraj123 wanna brief? hoisting, closures, and binding are important behaviors to consider. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @RinkiyaKeDad , here are a few points already laid out by @meganindya in various PRs related to this,
We are porting the code the ES6 but while we are at it, it would be great if we could keep a few other things under consideration, like
Also, please test all aspects of the feature you are porting thoroughly before and after and try to adhere to best practices and conventions. It would be beneficial to go through the comments of all the PRs related to this. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Keep your PRs short; the less the number of files per PR the better. Makes it easier to review. |
Beta Was this translation helpful? Give feedback.
Hi @RinkiyaKeDad , here are a few points already laid out by @meganindya in various PRs related to this,