
Do you prefer to take your time and write software carefully or get it done as quickly as possible?
A Questioner
I know the model answer would be something along the lines of take your time and carefully consider everything, consult colleagues, check best practices but in practice, it depends.
If it’s a small demo or an experiment, quick and dirty is fine but the moment it even approaches the medium to longer term, the careful and considered approach coupled with a good cadence is the go to (and typically the default). The quick approach is good for a little while and then technical debt quickly creeps in and the time is paid back exponentially for the earlier action along with the pain for good measure.
It’s interesting and fun to go this route in the form of a hackathon which i occasionally do over a weekend. It challenges the mindset and the exercise I enjoy most out of it is the definition of the project and stripping back as much as you can. How can we make it simpler? What can we strip out or reduce? Do we need this? When it involves hardware, finding parts in your existing inventory and working around it also proves an interesting challenge.
Track in a box – a box with buttons and a mic for timekeeping
Track in a box came about when during a chit chat with a colleague a few years ago where we discussed how much easier it would be if we had a physical device we could start and stop common tasks rather than the steps in the web UI provided by the timekeeping software (Timecamp).
We tracked our time pretty closely but typically we got calls, interruptions and all sorts so stopping and starting the tracker was a hassle and something we did frequently.
It got me thinking that it should be easy to implement something with a few buttons and then maybe a voice to text if the tool has an API. Sure enough, it did have an API and I after getting fired up about the idea, decided to spend the weekend making something. The challenge would be to have something by Monday that we could try out in the office.
Making it
Planning
Planning was short and consisted of – what libraries/services does this thing need and do I have the key components. Do the voice to text and timecamp api work?
Software
The timecamp api is really straightforward and easy to use. It was a breeze to set up and do simple calls to start and stop timers as well as assign them to a task. Google also has an API that doesn’t need authentication for audio to text so that was easy to implement too. You can assign descriptions to activities so pressing a button and dictating it seemed like a great idea. The only thing was keeping in mind that there was a limited time, this was an experiment and always to keep it as simple as possible while still being useful.
Hardware
Hardware was a bit more tricky, I had a raspberry pi and a mic and some arcade style buttons but no enclosure and the mic did not fit the raspberry pi as it was a sterio audio cable. This came up in a conversation with my girlfriend and as she displayed an ever so slight interest, I promptly recruited her to help me! An arts and craft shop and a mobile phone shop sorted the enclosure and adapter issues and she took on the marking and drilling of the holes in the wooden enclosure – amazing! Only basic minimal soldering was done on the buttons.
Restraint
It’s innate to try to improve and thoughts relating to making the enclosure smaller, using WiFi instead of wired, adding a battery so you did not need to plug it in etc. All that stuff just needs to be put to one side or the project would not be doable within the time frame. It’s an exercise in resourcefulness and the kind of approach someone may take in a situation where time and resources were low.
The result

It was definitely the result of a hackathon – a wooden box with buttons on and a rats nest of cables with a single board computer nestled in. A microphone perched on the corner of the box:
Showing up on Monday, my colleague was startled what had been put it together and we had some fun putting it through its paces.
It was a fun experiment and I had something that worked which was the main goal. I ended up ironing out some bugs later on (mainly related to interrupt timings and recordings) but enjoyed using it and it removed some of the difficulties of time keeping. All the code can be found here in the track in a box repository on Github. Overall – refreshing, fun and interesting. It’s great to see something working in such a small time frame and putting all concerns about longevity to one side. If you haven’t done a hackathon already, find yourself an idea and build it. Most important of all be sure to have fun!






