The Life of a Programmer

Search

The trouble with `floor` and `ceil`

floor and ceil have the bad habit of producing unexpected results. They aren’t broken, but in light of floating point nasties can often result in

Implementing a Swipe gesture

I recently implemented a swipe gesture for Fuse. The gesture recognition itself, though complex, was not hard to implement; I had most of the needed