View Single Post
  #3   Spotlight this post!  
Unread 01-25-2011, 10:18 PM
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: Bad Programming Practices

I agree commenting is good practice, and also that those darn camera classes are so hard to understand! My problem though is that I just come up with a good idea really fast and need to code it in before I forget it, and then I think of a way to improve it, and before you know it I've written hundreds of lines without a single comment because I was only spewing ideas out of my head. I just never get around to adding comments because since it's my code, it's obvious to me what it says. I totally agree though that comments are a good idea to add in as often as possible.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote