Developing an algorithm

Say we are building a robot. We just purchased a kit from Robots R Us, and find that there are 3 pegs upon which we are to affix some gears. Pretend that we have no common sense, or intuition about gears, so that all we have available to us is the math we learned in […]

A good case for refactoring, for those wanting an example

This is just a quick article on basic refactoring, aimed at those who would benefit from an example. Often when I’m solving a problem, I break it apart into a bunch of little self contained units… often many small functions I can compose or otherwise make use of to solve the problem. There’s a case […]