try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

Interesting observation: C# vs. Ruby

CodeClimber has a neat post on how searches on C# compare to searches on Ruby.  C# is clearly getting more searches (even before you factor in all the various ways people search for C#), but the difference is much more pronounced during the week.  Maybe all us C# devs are getting burned out by the end of the week and aren't doing much hobby developing on the weekends?  Or maybe the ones doing hobby development aren't having to run to Google as often for answers as the peeps doing 9x5 development (no disrespect intended, there's nothing wrong with Googling for answers instead of ... [More]

How to run a software development company (INTO THE GROUND) - Part 6

Oh yeaaaaaaah! It's Friday, and even though I'm busy as all get-out (which is actually related to today's HTRASDC article), I'm going to bestow  the greatness of my writing upon your face.  Enjoy! Do everything at the last minute Failure to plan == planning for success, or at least that's what I've heard from this homeless guy that I pay to wash my car every other week.  If there's one thing I know for sure, it's that planning is a complete waste of time.  As we have established, your software developers ... [More]

Machine Learning: Why you should care

In the last post, I introduced the topic of machine learning.  In this post, I'll describe an example problem, discuss how you might go about writing code to address the problem, then discuss how you can apply machine learning to the same problem and get the computer to do the heavy lifting for you.  In the end, hopefully you'll at least have a vague idea of how machine learning might be useful. The problem You work for a company that makes data entry software for hospital emergency rooms.  One day, your boss comes in and says that you're going to add a new feature to the soft... [More]

Why var is a very important keyword in a recursive JavaScript function...

I actually don't hate JavaScript.  I'm typically not a fan of duck-typed languages, and JavaScript has caused me no small number of headaches, but it has its uses, and it beats the alternative.  I could be writing in VBScript, after all... Still, there are a few things about JavaScript that really, really tick me off.  One of those just bit me badly this morning.  Take a look at the following block of code: 1: //Recursively sets the nodes and their children to the 2: //specified checked state. 3: function UpdateChildren(nodes, checked) ... [More]

Peer Reviews

Peer reviews seem to be a source of seething hatred for many developers.  I can sort of understand why (no one likes rocks being pitched at something they created), but they can actually be very beneficial if done correctly.  This post will lay out the case for doing peer reviews as well as an approach to performing reviews that I happen to like (stolen from my friend, 'Poprythm').  If you have any suggestions for ways to improve this approach, please share in the comments!  Also, if you're not doing peer reviews, I'd like to hear why. Purpose ... [More]

What is Machine Learning?

I'm going to be doing some posts on machine learning, artificial intelligence, and data mining over the coming weeks and months as I try to crank out a thesis.  Since machine learning isn't a topic that a lot of developers are familiar with, I decided it would be best to write up a brief summary of what machine learning encompasses and why you should care.  If you have any questions after reading this, please let me know in the comments.  I need to be very solid at explaining machine learning to an uninformed reader if I'm going to crank out a decent thesis... Machine learning,... [More]

How to run a software development company (INTO THE GROUND) - Part 5

Damn, we're at part five already?  You might think that I'd be running low on material by now, but fortunately I have witnessed a horrifying number of ways in which people have tried to run a software project, most of which ended in disaster.  This week we're going to touch on something that I'm still dealing with at least once a week... The OMFGWTFBBQ Method of Bug Triage Because the people working for you are software developers, the people working for you suck.  You know this is true because I have a blog and I just wrote this.  Because the people working for you suck,... [More]

Oh great, another browser!

I'm super pumped (not really)! Google has decided that designing for two browsers (three if you count Safari, which I don't) simply wasn't enough, so they're going to up the game and release their own browser.  Factoring in the various versions of the dominant browsers, we already have Firefox 2, Firefox 3, Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8, and none of them are anywhere near perfect, so yeah, why not go ahead and throw another turd in the bowl?!? Thanks, Google, for making life even harder for web app builders and web designers. S... [More]

How to run a software development company (INTO THE GROUND) - Part 4

It's Friday, so it is time for part 4 in the series that Time magazine calls "... a breakthrough in blogging."  Ok, they didn't say that, but I'm sure they would if this series was actually a breakthrough in blogging.  Practice Dragon Management Dragon Management is a brand new approach to managing your peons that is guaranteed to bring you riches while keeping the office a barren wasteland of productivity and sorrow (because we all know that productivity is directly related to pain and suffering; that's why they whipped the slaves that were building the pyramids!) ... [More]

Using LINQ to elegantly initialize arrays FAIL

Whoops.  I screwed up.  As it turns out though, I'm not the only person who was mistaken.  I've updated the post in question with a working way to populate an array of reference types.