RideStat
In my spare time over the last week, I have been writing a new web-based tool to collect statistics on my bicycle rides. The project is nearly complete, but I am somewhat at a standstill in how I should deal with the units of numeric data saved in the database (_i.e._ distance rode, average speed, etc). For the moment, all the units are hard-coded, but ideally, I want to abstract this aspect of the code and allow users to choose whether they want to view the statistics in metric or English units.
If I write a go-between conversion function, I could simply convert whatever units the database uses to the units system the user wants to use. The real problem is that the user of RideStat (my affectionate name for the project) who administers it may want to store other units in the database. Hmm… I’ll have to think about this one.
Off to work!
About this entry
You’re currently reading “RideStat,” an entry on sensory output
- Published:
- 4 years, 3 months ago
- Category:
- Fun

No comments
Jump to comment form | comments rss [?] | trackback uri [?]