Raving Genius
  • Impossible
  • Legal
Sign in Subscribe

Philosophy

A collection of 4 posts
Philosophy Featured

Living Intentionally

Why are you here? What is the point of your existence?
20 Aug 2018
Ruby

Fun With Ruby Enumerators

Yesterday evening for fun I decided to write a factorial method in Ruby. My first attempt looked like this. 5.times.inject(&:*) This is a really elegant solution, and it almost works, but Fixnum#times starts counting at 0. Normally this isn't an issue since n.times
21 Oct 2015 1 min read
Programming

Functions Versus Methods

When I first started programming, I remember encountering functions and methods. I was familiar with functions from high school algebra, but I had no idea what a method was. They looked similar to functions, and online comments indicated they were essentially interchangeable. When you are getting started, you can think
01 Sep 2015 1 min read
Programming

Line Limits

(In response to http://www.aaron-gray.com/line-limits/. Aaron is a great guy; let the reader visit his blog and learn from his wisdom.) Yesterday after work I said that hard character line limits (often eighty characters, but not always) were a antiquated relic of the past. This was in
03 Mar 2015 3 min read
Page 1 of 1
Raving Genius © 2025
Powered by Ghost