julia
julia copied to clipboard
gigasecond: Making gigasecond more interesting
The exercise Gigasecond is really boring as it is right now, all of the submitted solutions look exactly the same.
It could be made more interesting by requiring the user to create a new GigaSecond
type that is compatible to Dates.Second
, Dates.Year
etc.
A time travel setting might pimp that exercise and open room for a bit more complex code. Something along the following lines maybe?
You have the task to go back to a specific point X in time (some time before the Gregorian calendar was introduced, so you get a Julian time (pun intended)) and do Y. You have to figure out the configuration for your time machine, which requires the time period to travel backwards to date time X, and then the time period to return to the present moment after having finished the assignment. The time machine expects periods in GigaSecond
s (because, hey, weird technology, weird units).
I really like that story idea! We might be able to turn it into a concept exercise about dates in exercism v3.