Code coming to the Lab
Feb 2, 2009
Helpful code snippets and hints for your programming pleasure.
In the coming weeks and months I will be compiling as many useful and re-usable pieces of code that I can dig up out of my past and present projects.
I’ve been motivated to do this because of the frustration I have experienced over the years when trying to find solutions to common problems. Now, don’t get me wrong I like programming challenges, hell, that’s why I starting coding in the first place. But, sometimes there’s a piece of functionality that seems trivial to implement but ends up taking days to complete, and you know that other people have struggled with that very problem but you can only find sparse information on how it was solved.
I’m sure most of you have encountered what I call the “fourm conundrum”. Where someone has posted the same question you have and your excitement rises, only you find a few posts down the ubiquitous “Got it working” post with no detail as to how the poster “got it working”, thus you are doomed to a few more days of frustration while you battle out the solution.
I hope that the code I post in the Lab will help at least one of you from the above fate.