Archive for October, 2008
Crack .NET
Published on October 22nd, 2008.
New great debugging tool has come to the web. Crack .NET allows you to go through the managed heap of your Windows Desktop application (Windows Forms or WPF) and see what it contains. Not only you can see what’s inside, but you can modify it using IronPython scripts.
Filled under C#, News. No Comments.
Silverlight Write & Win Contest
Published on October 7th, 2008.
Silverlight Write & Win Contest was carried out for the second time. It is a interesting contest. You only have to write an article about Silverlight (application, control, game, web services, Blend, design, example, problem solution, etc). The first contest was organized by Michael Sync. Now, SilverlightShow take this initiative. They really did a great job in the organization.
I took part in the first edition, so I decided to write an article for this one, too. And I got it! I won the third prize, which looks like this:
- Telerik – RadControls for ASP.NET AJAX Developer Subscription and Source Code License ($999 value). This license includes all 23 Telerik ASP.NET AJAX controls, a Gold Support Package and free product updates for a period of one year. The winners will also receive complimentary licenses for Telerik RadControls for Silverlight
- SilverlightShow – $100 in Amazon Gift certificate or cache
Cool, right? The one who get the first prize is Alexey Zakharov with his article – Virtual earth deep zooming.
SilverlightShow announced that they intend to organize another contest, so I am waiting for it.
Filled under News, Silverlight. No Comments.
StyleCop
Published on October 6th, 2008.
Every programming language has its own coding style. It is very essential that every developer, who uses the language, keeps to its style. When a team of developers work over a project, they should be able to read easily the code written by everyone in the team. It does make sense how the code is written!
Here are some coding rules, when using C#:
- Avoid writing very long methods. A method should typically have 1~25 lines of code. If a method has more than 25 lines of code, you must consider re factoring into separate methods.
- Use String.Empty instead of “”
Good:
if (name == String.Empty) { // do something }
Bad:
if (name == "") { // do something }
- Convert strings to lowercase or upper case before comparing. This will ensure the string will match even if the string being compared has a different case.
if (name.ToLower() == "john") { //… }
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project. Don’t hesitate and download this great tool!
Filled under C#. No Comments.
