DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

23
kicks
published 4 months, 11 days ago, submitted by ailon ailon 4 months, 11 days ago

devblog.ailon.org — Every time I read a C# book or an article or just a code sample in MSDN I can't stop wondering why don't people use this qualifier unless it's absolutely required? What do we sacrifice code readability for?

Add a comment 3 comments | category: | Views: 669 | Get KickIt image code
tags: | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
FWIW, the recently released Microsoft StyleCop tool reports violations if you fail to use the 'this' keyword in front of member accesses.
posted by JudahGabriel JudahGabriel 4 months, 11 days ago
I haven't used StyleCop ( yet), but I rarely use "this" unless I need to because it looks ugly. Also, I've never found it easier to read code without it being used. But that's just me. ;)
posted by senfo 4 months, 11 days ago
Interestingly, Resharper flags usages of this as a style warning. It considers it redundant. Personally, I like this because it makes it immediately obvious that the variable is not local.
posted by rprouse rprouse 4 months, 11 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge