Tag Archives: .NET

Detecting code smells with NDepend

I recently had the opportunity to play again with NDepend. From my experience in many companies the developers, even if they find NDepend useful, don’t push enough the management to buy it, for various reasons: ‘we have free/built-in similar tools’, … Continue reading

Posted in .NET, Code Quality, design | Tagged , , , , , , | Leave a comment

When the length of a database field can be misleading

The length of a database field, at least on MS SQL Server, is not what many people think it is. Let’s say that I have a 10 character field: nvarchar(10): Surely we can insert a row with 5 chars in … Continue reading

Posted in .NET, SQL Server | Tagged , , , , | Leave a comment

Debugging a performance issue in production

One of the projects I’m working on has a component that has a very simple task: reads a record from a database table and based on it, send a message to Microsoft Windows Service Bus. Then the next record is … Continue reading

Posted in .NET, Entity Framework | Tagged , , , , | 4 Comments

Event aggregator in .NET

A few days ago I had to choose an event aggregator implementation for using it inside the project (ASP.NET in this case). Of course, there are plenty of alternatives, probably the most famous being the one from Prism . Since that … Continue reading

Posted in .NET, C# | Tagged , , , , , , , , | Leave a comment

Entity Framework asynch – behind the magic

As many devs have probably found out (http://blogs.msdn.com/b/adonet/archive/2012/10/30/ef6-alpha-1-available-on-nuget.aspx), the next Entity Framework version (6.0) will support the task-based asynchronous patterns that were introduced in .NET 4.5 (async and all the stuff). I won’t go into details on why asynch is … Continue reading

Posted in .NET, Entity Framework, Uncategorized | Tagged , , , , , | Leave a comment

CallerMemberName – mai bine mai târziu decât niciodată

Printre avalașa de noutăți aduse de VS11 beta, .NET 4.5 beta, C# 5.0 beta s-a strecurat un mic feature care ar fi făcut viața mai ușoară la mulți programatori dacă ar fi apărut cu 10 ani în urmă: CallerMemberNameAttribute Oricine … Continue reading

Posted in .NET, C# | Tagged , , , | 2 Comments

Un task scheduler în .NET sau cum să aleg o componentă open source

De curând, la un mic pet project la care lucram de ceva vreme, am avut nevoie de un task scheduller – după câteva încercări de a meșteri ceva pe cont propriu, mi-am dat seama că în ultimii nouă ani am … Continue reading

Posted in .NET, General | Tagged , , , , | 4 Comments