News for hackers. Stuff that matters.
Re:Top 6 List of Programming Top Lists by pama on Friday April 29, 2011 @08:49AM (#2497146)
These are wonderful, thank you. What is your rationale for item 6?
Re:Top 6 List of Programming Top Lists by edw519 on Friday April 29, 2011 @08:59AM (#2497168)

  for(a=0;a<aa;a++){
   if(bbb[a]<bbbb[aa]){
    bbb[aa]=bbbb[aaa]
   }else{
    bbbb[aaa]=bbb[aa]
   }
  }
  
I'll be out of jail in 30 days.

The original programmer will be fine once the stitches are removed.

Actually, all kidding aside, yesterday I enhanced a 1700 line program with these variables:

  Cust
  CustCmmts
  CustComments
  DelCmmts
  CustNbr
  DelDate
  Cmmts
  CustID
  Comments
  CustDel
  Del
The variables "Cust", "Cmmts", "Comments", and "Del" should have different names. What are they? I spent half a day just trying to figure out what everything was, one line at a time. You can't globally locate, edit, cut, paste, or change without fucking up everything else. (And please don't ask me to use a fancier IDE. Just name your variables so the next guy doesn't have to suffer.)
Re:Top 6 List of Programming Top Lists by numeromancer on Friday April 29, 2011 @09:40AM (#2497280)
Just structure your data so the next guy doesn't have to suffer.

Cust.Name

Cust.Cmmt (commit?)

Cust.Comments

Cust.Number

etc.