Quantcast
Channel: If you're going to add a hook, make it a big one | Just A Summary
Browsing all 10 articles
Browse latest View live

Comment on If you're going to add a hook, make it a big one by Piers Cawley

@Mr eel: I tend to agree with you. If all we were buying was avoiding that, I wouldn’t be bothered. However, I think there’s value in something which makes it easy to pass an argument or block to the...

View Article



Comment on If you're going to add a hook, make it a big one by Mr eel

Personally, I think using include in this way has become a common and well-understood idiom. Doing backflips to avoid it isn’t really worthwhile.

View Article

Comment on If you're going to add a hook, make it a big one by Jamie Macey

@Piers I must have missed that 4th code block that handled the include/extend (where the class methods obviously go) and was just looking at the 3rd one, with the block for local extension.

View Article

Comment on If you're going to add a hook, make it a big one by Yossef

I tried to write some Perl after spending at least a year away. It was an awkward, bumbling experiment. I couldn’t even remember that I had to use package.I guess what I meant to say was that there’s...

View Article

Comment on If you're going to add a hook, make it a big one by Piers Cawley

Argh! Thanks for spotting the sub. You should see what happens when I try to write Perl nowadays…I haven’t changed the send :extend part though, mostly because of the company it’s keeping in its...

View Article


Comment on If you're going to add a hook, make it a big one by Yossef

sub included? Someone’s been thinking about Perl just a little too much.Also, there’s no reason to use send to extend an object. That’s a public method.

View Article

Comment on If you're going to add a hook, make it a big one by Piers Cawley

@Jamie: How do you work that out?The instance methods generated by build_behaviours get put on the instance_behaviours attribute of whatever it returns, the public class methods get put on the...

View Article

Comment on If you're going to add a hook, make it a big one by Jamie Macey

This isn’t a workable solution, as it doesn’t provide a mechanism for the other important public class-methods like Model.all and Model.first.

View Article


Comment on If you're going to add a hook, make it a big one by Piers Cawley

Christ! If that works then consider me boggled.I’ll fix the typo immediately sir!

View Article


Comment on If you're going to add a hook, make it a big one by Giles Bowkett

I think starting a block with { and ending it with end is evil. Either {}, or do/end. Anything else is the work of the devil.Further, I demand that Matz alter the language to prevent people from using...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images