286 reputation
15
bio website johnnycode.com
location Grafton, MA
age 31
visits member for 4 years, 3 months
seen Jan 20 '14 at 13:29

I'm a Full Stack dev working for Stack Exchange. YES, THAT STACK EXCHANGE!

I specialize in C# and JavaScript but I dabble in many other languages.

Check out my blog: Johnny Code. Check out Stuff My Kids Said


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.