arthurjdileo / virtual-classroom

A virtual classroom allows two or more participants to communicate and collaborate in a class-like environment to simulate an actual classroom but with much more convenience and access to learning tools.
MIT License
2 stars 0 forks source link

Code Rewrite(?) #14

Open ghost opened 6 years ago

ghost commented 6 years ago

Because of how clunky the current code is in terms of OOP, I think we should rewrite the code in one of two ways:

Version 1

class Whiteboard:     class Tools:         class Brush         class Text         ...

Version 2

class Whiteboard:     ... class Tools:     class Brush     class Text     ...

ghost commented 6 years ago

Additionally, we should create an event handler function or class on the server side to prevent clutter as we add more commands.

arthurjdileo commented 6 years ago

@mathewhan I agree with the above statements. I'd say we using Whiteboard as a wrapper class and then store all of its children inside of it.