Sunday, April 23, 2017

Crafting web and mobile software based in Holland, Michigan



Ruby’s built-in rounding methods are great for the basic cases like rounding to a whole number or rounding to a certain decimal place. But what happens when you need to round a time? Or you need to round to the nearest 5? I need to do this sort of thing on occasion.

No comments:

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guar...