
The right way to rethrow an exception in C#
All programming languages have gotchas to trip you up, and C# is no exception. Today, let’s check out the subtle (but significant) difference between “throw” and “throw ex”.

All programming languages have gotchas to trip you up, and C# is no exception. Today, let’s check out the subtle (but significant) difference between “throw” and “throw ex”.

We’ve all seen word clouds, like in the sidebars of blogs, but let’s see how we might create our own with a little bit of code!

At work, we’re running through The Pragmatic Programmer - the original, not the 2nd edition published last year. If anyone is reading that, I’d love to know if it really updates things for modern programming and whether it seems necessary. The original seems pretty timeless. Yesterday was my turn to present, listing out highlights from chapter 5, sharing some thoughts, and hopefully spurring some conversation. The authors start by talking about the Law of Demeter, but they don’t explain it very well, nor do they call it by its much more self-explanatory name, the Principle of Least Knowledge. ...

Every Google calendar URL has an iCal file you can use… here’s how to find it.

Today I’m wrapping my head around a build tool called Ansible, used for deploying machines in a scriptable, repeatable manner. Follow along as I step through an excellent tutorial from DigitalOcean, applying what I learn to a couple DO Ubuntu VMs… the $5/mo ones - nothing fancy needed!

I was trying to add times in Erlang, but couldn’t find an existing function, so I wrote my own.

This error might look a little cryptic at first glance, but it’s fairly descriptive in explaining what’s wrong. You’re likely to come across this one before your first cup of coffee.

Did you know most languages have a way to pass around code to other functions, so you can call (invoke) it in other parts of your application? In C#, it’s called a delegate.

If you’re writing a WPF application and need to find the state of the Num Lock, Caps Lock, or Scroll Lock keys, you’re in luck - there’s a method for that.

One of the many nice functions in LINQ is a single word that iterates through a collection, returning true if at least one item in the collection matches the condition you specify. But what’s the opposite of the Any keyword in LINQ?