obie Obie
@dhh Have you or anyone else on the core team ever talked about pulling github.com/voxdolo/decent… into ActionController core? If so, why not?

December 30, 2011 #

clemensk Clemens Kofler
@obie @dhh That would be *awesome* because the instance variable "magic" sucks anyway. :)

December 30, 2011 #

dhh DHH
@clemensk I love the instance variable copy method. One of my favorite parts about Action Pack.

December 30, 2011 #

clemensk Clemens Kofler
@dhh But does it make sense in terms of objects? It's not the same instance, so why does it have the exact same instance variables?

December 30, 2011 #

dhh DHH
@obie Hate that API with a passion, so no, it won't make it in. Far too little gain for the cost of indirection, imo.

December 30, 2011 #

obie Obie
@dhh that's what I suspected you would say. we're far apart on this point of view :)

December 30, 2011 #

dhh DHH
@obie Yes, you're wrong :)

December 30, 2011 #

obie Obie
@dhh hahaha... lot of us are wrong about this particular point then.

December 30, 2011 #

dhh DHH
@obie Certainly. But it wouldn't be the first time (see: testing w/ rspec or cucumber w/o customers).

December 30, 2011     3 retweets #

buddhamagnet Dave Goodchild
@dhh that doesn't mean everyone was wrong, just that you vetoed them, which is fine.

December 30, 2011 #

zspencer Zee Spencer
@dhh @obie why not bundle it into a distro? I.e padrino/sinatra?

December 30, 2011 #

joshsusser Josh Susser
@dhh @obie I don't know about the implementation of decent_exposure, but I hate how AP uses instvars to share state with views

December 30, 2011 #

tsaleh Tammer Saleh
@joshsusser Agreed. descent_exposure might not be the right API, but copying ivars is the worst API of all /cc @dhh @obie

December 30, 2011 #

obie Obie
@tsaleh @joshsusser @dhh @steveklabnik @supaspoida maybe core would be more amenable to a simple "let" implementation

December 30, 2011 #

dhh DHH
@obie Right now, no. I consider the ivar copying method to be the best design of the available I've seen. Hoop-jumping to avoid @, meh.

December 30, 2011 #

supaspoida Lar Van Der Jagt
@dhh @obie if that is hoop jumping so is attr_accessor etc.

December 30, 2011     1 retweets #

dhh DHH
@supaspoida Yes, I also think attr_accessor is a bad idea if you're just using it for internal access. Good for external exposure, though.

December 30, 2011 #

obie Obie
@dhh @supaspoida /me chuckles

December 30, 2011 #

dhh DHH
@supaspoida But the way Action Pack is designed is to have templates be considered logical sub-methods of the controller. Thus ivar = great.

December 30, 2011 #

supaspoida Lar Van Der Jagt
@dhh that design decision is what we are taking issue with. decent_exposure doesn't fix the design, just works around it's flaws.

December 30, 2011 #

dhh DHH
@supaspoida Which is certainly fair. Rails is open and easy to extend, so have at it. Just explaining why it'll never be in core.

December 30, 2011 #

dhh DHH
@obie This debates highlights why I consider your book to be misnamed. Be proud of your dialect and call it "The Obie Way".

December 30, 2011 #

obie Obie
@dhh I'll consider it for the next edition

December 30, 2011 #

dhh DHH
@obie Awesome. I've talked to multiple newbies who thought rspec and haml etc were indeed how I intended things with Rails bcoz TRW :(

December 30, 2011 #

huerlisi Simon Hürlimann
@dhh @obie Now I have to give it a try:-)

December 30, 2011 #