HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 82211 thumbnail
User 111696 avatar

By bloid
via 25hoursaday.com
Published: May 22 2008 / 12:46

Recently we got a new contributor on RSS Bandit who uses the ReSharper refactoring tool. This has led to a number of changes to our code base due to suggestions from ReSharper.
  • 12
  • 0
  • 1595
  • 0

Comments

Add your comment
User 286486 avatar

Pantuky replied ago:

0 votes Vote down Vote up Reply

The author does not like the fact that ReSharper favors use of the var keyword in just about all cases. The examples given are interesting cases indeed. I can see where the results are less than clear because of this change.

With that said, I love the var keyword, and it is helping me to type less than every. In 99% of the cases there is no loss of clarity.

User 290666 avatar

Arnon Rotem-Gal-Oz replied ago:

0 votes Vote down Vote up Reply

I think Dare's article provides a good read - however I don't agree with his conclusion and not just because you can get the type information by hovering over the variable wherever it is used (and not just in its declaration) at least by using said resharper
I blogged my opinion here http://www.rgoarchitects.com/nblog/2008/05/21/ShouldYouUseTypeInferenceInCVar.aspx

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.