Things you never did with your code in school that you MUST do 15 August 2012Posted by golda972 in Uncategorized.
I’ve never had much patience for top ten lists. So this may or may not end up being ten items. For today, I have two items.
In any case – let’s face it: coding in school is not the same as coding for real. OK, Capstone/final project may approach real life. That really depends on the project.
So if you’re still running a one-man ship after graduation, here are some things that you will really, really hug yourself for doing when things go wrong:
- Version control. This does not need to cost money. Subversion is a wonderful product with plugins that you can use to integrate it with Windows and Visual Studio, if those are the tools you know from school. Start by installing Tortoise for SVN – then, right-click on the folders of your project and you’ll see the menu that lets you add them to version control. Then, install AnkhSVN for integration with Visual Studio.
- Error logging. Code that will be developed on one computer, tested on a second, and run on many others will not provide you with the feedback you need to debug it. Unless you tell it to give you that feedback. Some experience with school projects may have left you with an inclination to wrap things in a try block and pair that with an empty catch, so that when your code fails no one will know. Outgrow that. At the very least, write your errors to a text file (include the exception’s Message and StackTrace).