May 052012
 

The following is a list of books that I would recommend to every experienced (or not) software developer. Very often I take inspiration by reading again and again some chapters as very often the knowledge (theory), if not practiced, tends to blurry overtime. Please take the list as it is without any order of precedence. Every book is important for its own topic. Patterns of [… read more]

May 042012
 

We mention Cohesion and Coupling when we are talking about Software Design Principles. Those two principles were first introduced in the book Structured Design: Fundamentals of a discipline of computer program and system design many years ago, even though the principles were around Structured Programming, they are still valid in the Object Oriented world. Cohesion Cohesion represents the degree of the systematic or logical connection [… read more]

May 022012
 

In order to be agile team in today’s quite stressful and demanding time, software programming team should try to follow some if not all of the below listed practices in order to succeed: Test-first programming (or perhaps Test-Driven Development) Regular refactoring Continuous integration Follow a Simple design (YAGNI) Pair programming / Code Reviews Sharing the codebase between programmers A single coding standard to which all [… read more]

May 022012
 

This post is an introduction to the Object Oriented functionality in JavaScript. I will discuss the ways of creating, instantiation and inheriting objects in JavaScript. JavaScript itself doesn’t contain the class keyword and there are mainly three ways of creating objects in JavaScript, by using: Literal notation new Object() Object templates Literal notation By using the Literal Notation, the object description is a set of [… read more]

Apr 302012
 

Here is the problem: How to properly display a user-friendly error message for an exception being thrown from an ASP.NET Web Service? I know that we shouldn’t be really working anymore with ASP.NET Web Services as a huge amount of problems have been solved with the WCF framework. But, for those like me, that are working on some large-scale projects where we are still using [… read more]

The anatomy of a Unit Test

 Posted by on April 30, 2012
Apr 302012
 

Certainly there are many ways of organizing Unit Tests and it depends both by who writes the tests and the organization within which the project is running, but one thing is certain the goals of unit testing as: 1. Finding Code early: As in Test Driven Development when writing Unit Tests before writing the real code. Doing so we are certain that our use case [… read more]

Apr 272012
 

This is my first post about the code refactoring, and I hope that in the future there will be many, as I find this topic particularly important and interesting. I would like to start with one very simple method but perhaps not so often used in the real life programming: Composed Method pattern. One way of refactoring the code, or in our case a method, [… read more]

Composition over Inheritance

 Posted by on April 25, 2012
Apr 252012
 

One (clever) question from my colleague during one interview we had days ago was about why is composition preferable over inheritance. On the other side we had a very clever guy as well:) so the answer was pretty much convincing, but at the same time this made me thinking a bit about all of the possible implications and the differences between the two. In my [… read more]

Apr 222012
 

By starting this post, I am still not quite sure what will be the end result, as the topic is quite waste and not that easy. For sure the goal is not to give you every possible example of multithreading in Microsoft.NET, as this is quite difficult and extensive topic, but to list and make you aware of different possibilities we have in Microsoft.NET when [… read more]

Apr 202012
 

In the previous post I described a way of how to apply global filters in the DbContext, so I would like to follow up with adding some more functionality and to describe one way of how to create a generic querying and sorting mechanism. This comes really handy when using the repository pattern. Please consider downloading a fully working example of the code covered in [… read more]

Apr 142012
 

I am currently writing a prototype for an application so I thought it would be good to start using a different ORM than NHibernate and the Entity Framework Code First was the next “obvious choice”. Code First is particularly interesting because it allows using POCO object, which fits perfectly with my programming style, as I try to follow as much as possible Domain Driven Development [… read more]

muschett@mailxu.com