In Defense of 2048

Posted by on 07 Apr 2014 | Filed under: Random Stuff, Software Design

Ok. I get it. A lot of people are calling the popular tile-based puzzle game 2048 a rip-off of Three’s. Taylor Casti of the Huffington Post made her sentiments very clear: “I played the game for about 10 seconds before I told my editor that we should let this one go; it didn’t sit well […]

Async Unit Tests in Visual Studio 2012

Posted by on 12 Dec 2012 | Filed under: C#, Testing

If you’re trying to do unit testing using async functions in Visual Studio 2012, you may be in for a surprise.

Parallel Patterns Library (PPL) and Visual Studio 2010 SP1

Posted by on 16 Aug 2012 | Filed under: C++, Random Stuff

I figured I’d write a short but sweet blog entry that is bound to help someone. In a nutshell, I was using the parallel_for_each function in PPL and Visual Studio 2010 gave me the following error message:

How Long Should Functions Be?

Posted by on 08 Apr 2012 | Filed under: Software Design

When it comes to programming, a question that everyone eventually asks is, “How long should functions be?” Unfortunately the question is very subjective. There is no “right” answer to this question, but there are plenty of wrong answers. On the one hand, you have absolute beginners to write functions that are 3000 lines long (for […]

Joining Multiple Bézier Curves

Posted by on 04 Dec 2010 | Filed under: Random Stuff

Not too long ago, I answered a question on stack overflow where the question was about how to join multiple bézier curves. What he wanted to do was to draw a continuous “Bézier Curve” along several thousand points as though it were one curve (assume that we’re talking about a cubic bézier curves). I answered […]

Older Entries »