Update: read the comments at Hacker News to see some succinct approaches to this, as discussed by gjm11, qntm and patio11. Thanks to Robin for providing this demonstration that can find a regex for testing divisibility of any number, in any base (he also made the code available, nice). Earlier this year, at the advice […]
“Who is your hero?” is a question I’ve been asked, but never had an answer for. Why is this a question that people are compelled to ask? Are we expected to have a hero, like a favourite colour or number?
I am currently reading Code Complete 2 as per Jeff Atwood’s Recommended Reading for Developers list, where I came across this interesting quote by Glenford Myers: We try to solve the problem by rushing through the design process so that enough time is left at the end of the project to uncover the errors that […]
This is a nice article I read back in February which discusses why it’s a good thing when you realize how very little you know. I feel just like that right now, and I’m enjoying it because there is so much territory left to explore… No One Knows What the F*** They’re Doing (or “The […]
I’m doing a project for a subject at RMIT which needs to manage thousands of patient records for a hospital. We haven’t been given any sample data though, so I wanted to write a generator (so we can test it with small or large data sets whenever needed). I started with the name generator (in […]
My Uni (RMIT) uses a mixture of Solaris, Mac OS X, Linux, and Windows computer labs. Our programs are nearly always tested on Solaris, though. Sometimes we are required to provide nanosecond timings in our experiments using the (real-time) POSIX function gethrtime(). Depending on which lab I work in, or if I’m working from home, […]