Browse by Tags

Code Generation - GeneratedCodeAttribute
All the analysis tools that come with Visual Studio 2008, allow you to suppress analysis on files that were automatically generated by tools and are supposed to be regenerated at some point in time. The question is how do these tools know that a code Read More...
Posted 02 June 08 03:22 by hgr | 0 Comments   
Filed under , , ,
Microsoft Source Code Analysis Tool for C#
After almost two months working on this , things are finally falling on their correct place. Today the Microsoft Source Code Analysis Tool (aka StyleCop) was brought to my attention. And this thing is really cool. Just the right tool I was missing in Read More...
Posted 29 May 08 03:44 by hgr | 0 Comments   
Filed under , ,
Learning LINQ Fast
Learning the syntax of LINQ is not easy. Especially if you - as I - don't do LINQ day in, day out. So, there's this very interesting page available on MSDN. It helps a lot in a "learn by example" experience: 101 LINQ Samples I put it here for Read More...
Posted 16 April 08 11:16 by hgr | 0 Comments   
Filed under ,
LINQ and The End of All Loops
Found this great post about LINQ and how that can remove (most of) loops from our code. Pretty good that LINQ is that powerful. Still I agree that it will take some effort to format our brains. :) If you are using a loop, you're doing it wrong Share this Read More...
Posted 09 April 08 03:49 by hgr | 0 Comments   
Filed under ,
Codex Automation v0.2
Well, I've published a new version of the Codex Automation add-in . A part from correcting a few bugs that were preventing the add-in from always loading correctly, here is a list of the (few) new features: Settings - new dialog in the Visual Studio Tools Read More...
Posted 28 August 07 03:29 by hgr | 0 Comments   
Filed under , , ,
Codex Automation v0.1
On my spare time I've been working on a very small and simple add-in for Visual Studio 2005 (C#). This is basically a code automation tool for simplifying a few tasks that I find myself doing a lot of times. The source code is available in this page: Read More...
Posted 21 August 07 12:17 by hgr | 0 Comments   
Filed under , , ,
Cool Add-ins for Visual Studio 2005
I've been looking for Visual Studio add-ins to automate some of the repetitive tasks that programming in C# still requires. Here are a few that do provide interesting features. PInvoke.net This add-in from Red-gate let's search for Win32 unmanaged API Read More...
Posted 16 August 07 11:56 by hgr | 1 Comments   
Filed under , ,
Codex Automation
Welcome to the C odex Automation Add-in for Visual Studio C# home page. This add-in provides a set of features specially designed to automate and simplify some of the most repetitive coding tasks that a C# programmer ends up doing over and over again. Read More...
Posted 16 August 07 11:22 by hgr | 3 Comments   
Filed under ,
Attachment(s): CodexAutomation_v0.2.zip
Code Analysis @ Microsoft
Well, it turns out that Microsoft (Developer Division) itself isn't using all the code analysis (FxCop) rules that ship with VSTS: What rules do Microsoft have turned on internally? We, on the other hand, have started by enabling errors for all the available Read More...
Posted 10 August 07 03:18 by hgr | 0 Comments   
Filed under , ,
NewSequentialId() in C#
A colleague pointed me to this code that implements NewSequentialId() in C#: http://codebetter.com/blogs/scott.bellware/archive/2006/12/27/156671.aspx Be sure to check the comments on that post and this post from the SQL Server team: http://blogs.msdn.com/sqlprogrammability/archive/2006/03/23/559061.aspx Read More...
Posted 22 July 07 04:27 by hgr | 1 Comments   
Filed under ,
The Quality Code Handbook
Found this cool e-book about writing quality code with Visual Studio Team System. It's written by a group of Australian developers and it's worth a look. It talks about test-driven development, performance-tuning, application threat modeling, code analysis, Read More...
Posted 27 February 07 07:05 by hgr | 0 Comments   
Filed under , ,
.NET Design Guidelines
Num post com uns meses falava de cultura de programação e de qualidade de programação. Hoje encontrei esta pérola no MSDN que consiste de uma colecção extensa de boas práticas de programação compilada pela equipa de desenvolvimento da Framework .NET: Read More...