The danger of deadlines

Deadlines are a good thing, right? Everyone needs deadlines. Don’t they?  There are three constants in life: death, taxes and software slipping. I’m doing my best to avoid the first two, but the latter seems here to stay. Software engineering, despite all its advances, has never solved the fundamental question: how long will it take? The advice I got from ...

Read More »

Posting JSON Data to an ASP.net MVC 3 Web Application

The trend in today’s web application development goes more and more in the direction of having rich, desktop-like applications. There are numerous examples on the web, just watch out while your navigating around (Google services are always a good place to look for such apps). But also Microsoft has noted that trend and aligns its products in order reduce the ...

Read More »

Smelly Code: Direct Object Instantiation as a Testability Killer

This Smelly Code post discusses mainly a testability issue without going into further detail on other things like readability which could be improved for sure as well. Original, smelly code public Account ReadCompleteAccountByADUsernameAndServiceUID(string adUsername, string serviceInstanceUID) { IList<Address>> addresses; IList<Contact> contacts; MasterDataBL masterDataBL = new MasterDataBL(); Account result = AccoDao.ReadCompleteAccountByADUsernameAndServiceUID(adUsername, serviceInstanceUID, ConnectionString.Master, out addresses, out contacts); result.PhoneNumber = contacts.Where(x => ...

Read More »

Aspect Oriented Programming with Action

Aspect Oriented Programming (AOP) is a pretty great concept. It is a little difficult to implement though. To be honest, I don’t think I’ve ever really seen it successfully implemented. I mean sure, I’ve seen examples of how you could use it for “cross-cutting” concerns like logging. The problem is it is usually pretty difficult to use, and the only real ...

Read More »

Explaining What Action And Func Are

In C#, Action<> and Func<> are extremely useful tools for reducing duplication in code and decreasing coupling. It is a shame that many developers shy away from them, because they don’t really understand them. Adding Action<> and Func<> to your toolbox is a very important step in improving your C# code. It’s not really that hard to understand what they ...

Read More »

Playing around with PLINQ and IO-bound tasks

I recently downloaded Visual Studio 2010 beta, and took the chance to play with PLINQ. PLINQ, for those of you in the dark ages of .Net Framework 2.0, is parallel LINQ – an extension to the famous query language that makes it easy to write parallel code (essential to programming in the 21th century, in the age of the many-core). ...

Read More »

Template Method design pattern

As I already mentioned in my previous post I’m currently doing domain objects to XSD generated object mapping. Monotonic, exactly, but I’m approaching the end of the work. Still, when doing such annoying work, I’m continuously striving to reduce the amount of work by trying to find smarter, faster, more concise ways for doing this tedious work (in order to ...

Read More »

Install Windows 8 from Virtual Machine

Requirement: Oracle VM VirtualBox Windows 8 Developer Preview ISO file (32-bit or 64-bit) Windows Live ID* (for best testing experience, sign up here if you doesn’t have one) Internet Connection* *Nice to have, for best experience Besides that, also make sure that your computer have the Virtualization Technology (VT-x/AMD-V) activated in the BIOS. Proceed to the installation if you are ...

Read More »

Welcome fellow .NET developers!

Hello all, We are proud to launch the .NET Code Geeks site, a resource center for .NET developers around the world. .NET Code Geeks are following the steps of Java Code Geeks, which is a sister site that has been quite the success in the Java universe within its short online presence. We are planning to provide a wealth of ...

Read More »