Tuesday, December 4, 2012

Untreatable Code Addiction

I am so excited, I finally got the very basics of this whole Rspec testing. I've spent the last 2 hours on Chapter 3 of Michael Hartl's Rails Tutorial, just playing with the testing adding code, changing code then running it. It's quite addictive sometimes I'm like "Holy crap!...that's not supposed to do that" then 5 minutes later "Oh yeah it does" :)

You hear people talking about Adrenaline Junkies that are addicted to exercise for the buzz they get, or runners that get the "runners high", well I've just realized programs are code addicts, there is a certain feeling when you finally figure something out (regardless of how small or insignificant it is) that is absolutely addicting.

Now when I meet a super smart nerd who never showers or brushes his teeth I know why....he's a recovering coding addict as to which there is no cure. The problem is: The worst addicts who need the most help, get paid the most and are the most in demand, so there is little chance of recovery.

I'm afraid I am in the early stages of code addiction, no use fighting it so head down and fingers clicking away, if I fix one more error or line of code, maybe just maybe the feeling it will go away:)   -Tomorrow-Josh

P.S. Here's some of the tests I was running today:)





Joshuas-MacBook-Pro:test_app joshuakemp$ bundle exec rspec spec/requests/test_apps_spec.rb
..FF..

Failures:

  1) Test App Help page should have the h1 'Help'
     Failure/Error: visit '/static_pages/help'
     ActionController::RoutingError:
       No route matches [GET] "/static_pages/help"
     # ./spec/requests/test_apps_spec.rb:22:in `block (3 levels) in <top (required)>'

  2) Test App Help page should have the title 'Help'
     Failure/Error: visit '/static_pages/help'
     ActionController::RoutingError:
       No route matches [GET] "/static_pages/help"
     # ./spec/requests/test_apps_spec.rb:27:in `block (3 levels) in <top (required)>'

Finished in 0.22048 seconds
6 examples, 2 failures

Failed examples:

rspec ./spec/requests/test_apps_spec.rb:21 # Test App Help page should have the h1 'Help'
rspec ./spec/requests/test_apps_spec.rb:26 # Test App Help page should have the title 'Help'

Randomized with seed 49936

Joshuas-MacBook-Pro:test_app joshuakemp$