r/dailyprogrammer • • Feb 10 '12

[difficult] challenge #2

Your mission is to create a stopwatch program. this program should have start, stop, and lap options, and it should write out to a file to be viewed later.

30 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/arjie Feb 11 '12

Yeah, the challenge is in doing the work yourself. I mean, even just browsing some of the challenges from the Programming Challenges book, a few are nearly trivial using the Boost Graph Library. Obviously the objective is to not simply use a readymade library that does everything. That would defeat the point. Since this is not a competition, you should attempt to write as much as guarantees you a challenge. I've just started learning lua, so I'm doing everything in that.

I mean, nearly all of the challenges are basically a two-line solution in BASH, if you allow that sort of thing:

#!/bin/bash
/usr/bin/stopwatch