248 karma · joined Jan 10, 2009 (17y ago) · 48 submissions
comment 14y ago · link · parent
This is an interesting point which I agree with and is usually where I end up. In the past I've started from the opposite end, creating multiple modules, class hierarchies, etc. This future proofing has made things harder for me to follow/understand when reading at a later date. It has become tiresome and now I consciously start at the other end, making the simplest thing that could work. Layers of abstraction then come naturally as needed.
comment 14y ago · link · parent
comment 14y ago · link · parent
require 'action_controller/integration'
app = ActionController::Integration::Session.new
module CurrentUserHack
def current_user
@user ||= User.look_up_my_user_here
end
end
ApplicationController.send :include, CurrentUserHack
Now you can make authenticated requests in rake tasks and presumably in script/runner.comment 15y ago · link · parent
comment 15y ago · link · parent
Can you give an example of how this would hurt the economy?
EDIT - those that down voted, mind giving a reason?
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
In all fairness, the guy was being a dick (no pun intended) to Zed. However, Zed should have kept the insults to the troll and left Github, Powerset, Engine Yard, and the Ruby community out.
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
I'd definitely give this book a try since it clearly identifies which trigger points are causing the referred pain/numbness along with the ways to treat them.
Also if you are in the Chicago area, check out http://www.myopain.com/. Like I said, they were able to help me with only 2 visits.
comment 16y ago · link · parent
Looking at my own life the things that I feel blessed for, have nothing to do with work. After falling in love and starting a family, being rich and changing the world are no longer important. As long as I can provide for my family and raise my children in a way that would make me proud, nothing else matters.
Unplug and try the bag. There is much more to life than business success and $.
comment 16y ago · link · parent
22.
Ruby's Hidden do {} while () Loop(archive.jvoorhis.com ↗)
2 points · by jz · 16y ago · 1 comment
comment 16y ago · link · parent
comment 16y ago · link · parent