View Single Post
Re: What are the best practices?
Old
  (#6)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: What are the best practices? - 02-07-2008

I don't know if that is better The Storm; because you hide the functionality from the method signature.

I mean, if you do something a a bot for instance, hence a bot pointer is needed.

But, then again you may wonder if the method you are creating would not be better to be part of the bot class itself.

Methods with an awful lot of variables often indicate too much is done within the same method. Which is a 'bad smell' imo


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote