News for hackers. Stuff that matters.
Re:Recombine to avoid naming when naming is hard by Ma8ee on Monday July 06, 2015 @12:32PM (#9840265)
I hope that the very generic names you have chosen is just for the example, but otherwise that is exactly the type of names that make a codebase incomprehensible. How about something like

  function CalculateSalesBonus(err, salesmenEmployedByTheLastOfMonth) {
  // do stuff
  }

which actually contains much more information than

  db.getSalesmenEmployedByTheLastOfMonth(function (err, data) { 
      //blah blah does stuff
  });

There are no comments on this comment yet.