Posts tagged commentary

Sep21

Alias include? with match operator

comments

commentary

Often I need to test some variable against 2 or 3 values. The standard way to do it in most languages is:

This can get ugly if you start using more than 2 conditions (even if it is still a small number such as 3 or 4). Also sometimes your variable is not a variable but a chain of method calls that you don’t want to evaluate every time. For example:….

Continue reading »

Sep16

Credit

comments

commentary

To give proper credit where it is due I want to thank the following people and organizations:

  • Matt Manning - Introduced me to Euler problems. He was solving them and then reducing down to the size of a tweet for posting on Twitter. He had….

Continue reading »

Sep16

About

comments

commentary

The purpose of this site is to provide elegant code to problems on the Euler Project using the Ruby programming language.

Code Must Be Elegant

This site does not just provide any solution that works. It provides….

Continue reading »