This post originated from an RSS feed registered with Ruby Buzz
by Bob Hutchison.
Original Post: Failure of a Mental Model
Feed Title: This used to be fun! ... What happened? | Ruby
Feed URL: https://bobhutchison.wordpress.com/feed/
Feed Description: The Ruby side of my efforts to put the fun back into programming.
Interesting, though trivial, experience in ruby coding...
I had an array of integers. I wrote:
a.last += 1
and expected it to work, and was in fact surprised for a moment when it didn't. I thought it was interesting that I thought that it should work, and that I ...