Monday, 19 January 2015

Sloggin

There are many worthwhile reasons for programmers and students to write about coding.  While most people would not intuitively make the connection between blogging and coding, the results of writing about ones work are plainly obvious once you actually start writing.  Mark Dalrymple mentions one of these in his blog: keeping a log of bugs in one's program is a good way of tracking progress and is especially helpful with the bugs that aren't a simple fix.  Writing down the problem and possible solutions makes it easier to organize thoughts- Dalrymple's logs are like conversations in his head, much like the Rubber duck approach that programmers have been using for years.  The Rubber duck concept is rather simple, if you can't explain an idea to someone (or something, in this case) else, you probably don't understand it very well, and should spend more time on it.  If you can't explain a bug in your program, you probably don't understand why its happening.

It is especially hard for programming beginners to think like computers, or at least think like a computer scientist.  In David Bradford's blog, he mentions one of the problems that we encounter that computers don't- we make assumptions when writing code, some of which are necessary, but can hinder us when we run into unexpected errors.  By keeping a log or debug journal, we can review our own thought process to see any mistakes we may have made.  It is also practical to keep a debug journal so that if we run into the same bug in the future, we can simply look back to see how we fixed it previously, a point raised by Steve Rydz.


Lastly, some inspiration for future slogs from Danny

1 comment:

  1. I totally agree with you in the idea that if you're not able to explain it to others you don't know it well. People should definitely study more if they can't explain to others. Also, great tips on blog posting ideas!

    ReplyDelete