Tutorials

C++

Tweet

View page »

Collision Detection

Tweet

View page »

The Ninject logo, a ninja star besides the text "Ninject!" in italics

Dependency Injection

Tweet This article provides a short and focused introduction to dependency injection, explains its advantages, how an inversion-of-control container works and why you’d want to use it. I’m going to assume that you already have a good understanding of Unit Testing. You should already understand that Unit Testing is as much about design as it …

View page »

Equals() Implementation

Tweet Comparing objects in .NET can be a bit confusing. .NET gives us the object base class with its Equals() method, then there are == and != operators that can be overloaded and finally, we have interfaces like IEquatable<>, IComparable<> and IComparer<>. It also isn’t clearly stated whether these methods are supposed to compare object …

View page »

Graphics

Tweet

View page »

UML diagram of a game using IDisposable to destroy its loading screen

IDisposable Pattern

Tweet When I started out with .NET, I wasn’t quite happy with the documentation provided for the IDisposable interface by Microsoft. The examples always depicted some class using an unmanaged resource that needed to be evicted from memory. To achieve this, said class implemented IDisposable, a finalizer and a Dispose(bool disposing) that was called from …

View page »

Lambda Expressions

Tweet When I first stumbled upon lambda expression in code, I was a bit confused because of their unusual notation. What’s x = (x,y) => (x*y) supposed to mean? After reading up on lamba expressions on MSDN, it turned out they were just syntactic sugar for anonymous delegates, which in turn are just convenient shortcuts …

View page »

XNA

Tweet

View page »

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Please copy the string JLufS9 to the field below:

Social Widgets powered by AB-WebLog.com.