SciRuby / daru-view

daru-view is for easy and interactive plotting in web application & IRuby notebook. daru-view is a plugin gem to the existing daru gem.
https://sciruby.github.io/daru-view/
MIT License
95 stars 20 forks source link

Adapter design pattern - Improvements in design #164

Open Shekharrajak opened 3 years ago

Shekharrajak commented 3 years ago
  1. Get rid of all switch blocks and replace it with modules, enum
  2. Use Composite design pattern as much as possible
  3. For each new functions have a module so that only relevant methods can be extended into classes

Refer Dependency injection and better ways to have constructors when the arguments are more than 5 - most of them are optional - what design you should be choosing ? (Hint use Builder for creating objects)