This is the best use of ICanHaZCheeseBurger, cats, and a burger joint I have seen in programming yet. (scroll to 2nd) http://stackoverflow.com/questions/90851/is-it-just-me-or-are-interfaces-overused …
-
-
Replying to @DaveVoyles
@DaveVoyles On that topic, I suggest using base classes instead in most cases, as per the chosen answer. More flexible, for small projects1 reply 0 retweets 0 likes -
Replying to @MagicalTimeBean
@MagicalTimeBean so stick with base classes and inheritance, as oppose to interfaces for simple solutions?2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles IOW, if two classes both use the same type of data, give each a reference to it. Subclass to save rewriting *usage* of the data1 reply 0 retweets 0 likes -
Replying to @MagicalTimeBean
@MagicalTimeBean a reference to it? How do I do that?1 reply 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles Declare a variable of that type in the class. http://stackoverflow.com/questions/49002/prefer-composition-over-inheritance …3 replies 0 retweets 0 likes -
Replying to @MagicalTimeBean
@MagicalTimeBean becomes tedious to keep accessing things like ControllingPlayer from gameplayScreen and such all of the time1 reply 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles Globals like that are useful, though when you have lots of classes reading and writing them it can get nasty.3 replies 0 retweets 0 likes -
Replying to @MagicalTimeBean
@MagicalTimeBean@DaveVoyles Don't forget Threads...heaven help us the reading/writing done by threads! (ps.Dave, don't use Threads yet) ;)1 reply 0 retweets 0 likes
@ScottTykoski I understand how they work, and I'm avoiding them like that fat girl at the bar until I need to
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.