Reputation
286
Top tag
Next privilege 300 Rep.
Create new tags
Badges
1 5
Newest
 Announcer
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 38 votes cast
Mar
8
comment Is using the new System.Tuple class bad design?
@Oded Also, the parameter or return value may not convey meaning, but the name of the method can. Let's say you have a method called GetTopTwoPercentages() that returns a Tuple<decimal, decimal>. That might be clear enough.
Mar
8
comment Is using the new System.Tuple class bad design?
@Oded I'm talking about adding XML documentation to a method accepting a Tuple. Again, not perfect, but better than nothing if you want/need to use Tuples.
Jan
17
comment How do I approach a coworker about his or her code quality?
I might also add to ask him about code he wrote a month+ ago. Even an author wont be able to grok his own code with bad variable names, bad indentation, etc.
Jan
17
comment Are there good techniques or tests for naming types?
I'll second the point about long variable names, again, Visual Studio (if you're using it) makes this a no-brainer. It is a lot less harmful to have long variable names that are explicit than short variable names where you have to "think" about or investigate what the name actually means. Also think about context. I'd rather see "peopleToDelete" than "listOfPeople". Again, Visual Studio tells you the type of the variable, no need to include it.
Jan
17
comment Does writing a programming blog reduce your learning speed, compared to reading other people's blogs only?
@jwenting Well, if you get it wrong, and people read your blog, you will be corrected!
Dec
8
comment Is using the new System.Tuple class bad design?
What about the XML parameter description? Not the most obvious place to look, but better than nothing.