Exercise with Exercism

Making Rust a destination education

Exercise equipment

I enjoy being outside, hiking trails, exploring the wilderness – I live just a few miles from where the Appalachian Trail crosses the road and heads up a mountain to one of the most photographed spots on the entire 2200 mile trek: McAfee Knob. In fact, that perfectly explains my idiosyncrasy with hiking: I’m an amateur photographer and I need a photogenic destination. If the trail just loops a mile or two in the woods, I’m not so anxious to get started. It doesn’t take much for a landscape photographer though: a waterfall, a foggy glen, a 270-degree panoramic view! But, what about a Rust destination? Rust programming exercises?

Panoramic view from Virginia mountain
A slice of the panoramic view from McAfee Knob in Virginia

Rust Objective

When sitting down to learn Rust – I need an objective as well. I need somewhere to go so I don’t feel like I’m wandering in the woods with no destination. I need some programming problems to work on; something to rewrite and refine as I learn different aspects and strengths of a language.

I found Exercism. This site currently supports dozens of programming languages and each has exercises for you to program a solution. The interface is wonderful though, because you install a management application on your development box and write, test, and run your solutions in your home, native environment. Exercism also includes many helpful external learning links about each language.

When the built-in tests for the current problem are passing and you think your solution is complete, you submit your answer back to their server with the installed app and a tutor will give you feedback on your solution. Everything might be great, in which case there might be bonus problems to solve or it may unlock additional exercises for you to try, if you choose the “instructional” track. You can also choose the “independent” mode and simply solve problems in any order you like – perhaps skipping all the “easy” exercises if this is a language you are already familiar with.




Programming Exercises

Maybe I’ll eventually settle on a bigger, more boring app to work on, like the dreaded address book or book collection application (ugh, or maybe not!) Until I do, I’m enjoying going through these exercises and others like it – the book Cracking the Coding Interview: 189 Programming Questions and Solutions by Gayle Laakmann McDowell would be another source of practice exercises to work through, so I’ll probably pull from sources like that as well.

However, I’m just at the start of the trail…

Start of fire-trail headed towards McAfee Knob
The start of the McAfee Knob trail, if you are beginning at the parking lot and not from Springer Mountain in Georgia or Mount Katahdin in Maine.