You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamic properties set to functions are unnecessary. The logic used to calculate function properties can easily be moved to JavaScript getters. Alternatively, these properties can be set to different constant values each frame (e.g., in Layer.render() or Effect.apply()). An onDraw option will later be added to Movie.play() (#230), Movie.stream() (#231) and Movie.record() (#232). The effort of maintaining this type of dynamic property is not worth it, since there is no value-add. In fact, providing many different ways to calculate a property with some custom logic can result in antipatterns and technical debt.
The text was updated successfully, but these errors were encountered:
Dynamic properties set to functions are unnecessary. The logic used to calculate function properties can easily be moved to JavaScript getters. Alternatively, these properties can be set to different constant values each frame (e.g., in
Layer.render()
orEffect.apply()
). AnonDraw
option will later be added toMovie.play()
(#230),Movie.stream()
(#231) andMovie.record()
(#232). The effort of maintaining this type of dynamic property is not worth it, since there is no value-add. In fact, providing many different ways to calculate a property with some custom logic can result in antipatterns and technical debt.The text was updated successfully, but these errors were encountered: