Now, in Case study 1, we're defining a user class or topic class that would have added functionality extended and separated by actions. So it follows a browser.quora.type(object).action.
In Case study 2, we're defining a follow class or an upvote class that would have added functionality extended and separated by types. So it follows a browser.quora.action.type :object which might be cleaner.
How should I be implementing functions and hierarchy? Which makes more sense in the long run?
Case study 1
Case study 2
Now, in Case study 1, we're defining a
user
class ortopic
class that would have added functionality extended and separated by actions. So it follows abrowser.quora.type(object).action
.In Case study 2, we're defining a
follow
class or anupvote
class that would have added functionality extended and separated by types. So it follows abrowser.quora.action.type :object
which might be cleaner.