37 ms·
The killer feature for me would be able to "expand" method implementations at a call site e.g. class UserController def create ...
by ollysb 12y ago
The killer feature for me would be able to "expand" method implementations at a call site e.g.
class UserController
def create
...
UserMailer.send_invitation(user) # expanded line
def send_invitation(user) # implementation from UserMailer
...
end
end
end
This way you could unfold the entire call stack in place i.e. you can see all the code you're working on at once.
- MetaCosm 12y agoIt works for trivial examples, but on anything complex... as you go 3/4 layers down and on longer / more complex functions, I suspect it quickly makes less sense... what about when that function references other stuff in its local context, etc? That is an amazing demo feature -- but maybe not as useful day to day versus just hoping around functions.
- parkovski 12y agoBrackets does this with JS, and I'd love to see more editors start doing it.
- crististm 12y agoThat is surprisingly similar to Zawinski's law: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.