Psychology for Programmers

Anyone who’s seen The Two Ronnies “Four Candles” comedy sketch will understand the frustrations that can result from a lack of common understanding. There are often times when it is as if we are speaking a different language to each other: we use the same words but the meanings we attribute to those words differ wildly. These differences are often ...

Read More »

The importance of a data format: Part II – The environment matters

When designing a new data format, it is important to remember in what environment we’ll operate in, what are the requirements and what type of scenarios we’ll face. With RavenDB, we are talking about the internal storage format, so it isn’t something that is available externally. That means that we don’t have to worry about interchange with anything, that frees ...

Read More »

LINQ – Methods returning single values

Over the last few weeks I have been writing about the basics of LINQ, and how we can use it to organize collections of items. Today I would like to take a look at a special class of LINQ methods: those returning single elements or values, instead of an entire collection. If you are interested in more of my thoughts ...

Read More »

Learning Angular 2 – Conditionally add styles to an element

Here we’re going through a couple of ways to conditionally apply some styles to a DOM element in Angular 2. Directly manipulating styles property A rather unconventional way would be to return the styling property as a string and then to directly set it on the desired element: //our root app component import {Component} from 'angular2/core' @Component({ selector: 'my-app', providers: ...

Read More »

Rich domain objects with DivineInject

DivineInject is a .net dependency injection framework, designed to be simple to use and easy to understand. You can find the source for DivineInject on github. In this second part in the series we’ll look at creating rich domain objects, the first part covers getting started with Divine Inject. Simple Domain Objects As an example, imagine I have a simple ...

Read More »

Implementing Inheritance with Entity Framework Code First

1. Introduction This walkthrough is an introduction to implementing inheritance with Entity Framework, Code First approach. A simple strategy for mapping database tables might be “one table for every persistent class”. This approach sounds simple enough and, indeed, works very well until I encountered inheritance. The requirement I was tasked with was simple, develop and implement a database for books. In ...

Read More »

Proper Black Box Testing Case Design – Equivalence Partitioning

In today’s IT world, the lines between developers and QA Engineers are being blurred. With the emergence of Agile, Test Driven Development, Continuous Integration, and many other methodologies, software testing is becoming even more critical. To support daily releases, multiple Operating Systems, and multiple browsers, the Development team (QA and Software Engineers) needs the capability to create test cases faster ...

Read More »

Using EF6 with ASP.NET MVC Core 1.0 (aka MVC 6)

This week Microsoft announced that it is renaming ASP.NET 5 to ASP.NET Core 1.0.  In general I think this is a very good step.  Incrementing the version number from 4 to 5 for ASP.NET gave the impression that ASP.NET 5 was a continuation of the prior version and that a clean migration path would exist for upgrading apps from ASP.NET 4 ...

Read More »

Compare Registry Settings – Beyond Compare

I think that Compare Registry Settings is one of the most unknown features of Beyond Compare. So if you are a Windows that fights with the Registry every now and then, this feature is for you. Note it is in the Windows Pro Edition only: one more reason to buy a license (: It has been there since Beyond Compare version ...

Read More »