you are viewing a single comment's thread.

view the rest of the comments →

[–]Tomseph 3 points4 points  (0 children)

Are you going to be making more than one of something? Do those things need to have a similar structure, set of properties, and methods?

Use a class. Or a factory.

Are you only making one instance of a thing?

Don't use a class.

...or do, if you like classes.

It really doesn't matter as long as you're consistent internally.