Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Is it possible to add elements to a list automatically?
Post Flair (click to view more posts with a particular flair)
Post Body

Ok, the tittle is confusing, but I don't know how to explain it better. I refactorized a bunch of code, so instead of a switch statement, I have a command class, and then I derive that class for each case: class DowhateverCommand: Command ...

The question is, is there a better way than adding all those commands by hand? What I am doing now is just it: mycommands.add(dowhatevercommand); for each one. I suppose it's not the best approach, but cannot figure out a better solution. Any creative mind out there? Thanks in advance.

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,177
Link Karma
507
Comment Karma
377
Profile updated: 6 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago