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.

2
When to extract behaviors from a class into other classes?
Post Body

Hi there: I always considered good practice working with small classes and, if needed, adding functionality to the main class by adding an instance of other classes as fields. However, reading code for game development, I noticed that classes representing a game usually have many, many lines: complex methods for rendering, handling input from the user, game logic, etc, etc. WHEN do you decide to refactoring and extract behaviors to other classes? I've read very opposite opinions, from. Any consideration would be appreciated. Thanks and excuse my english4"

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: 1 day 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