Robert Fletcher

Results 196 comments of Robert Fletcher

`spec --heckle ` e.g. `spec spec/models/user_spec.rb --heckle User#before_create` Use `.` in place of `#` for class methods.

Hi @richchurcher. Thanks for getting in touch. Unfortunately Better is a long ways from production ready at this point. I haven't had a lot of time to work on it...

Here's the stack trace: ``` /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/heckle.rb:505:in `current_tree': sexp invalid for MyCoolClass#my_awesome_method (RuntimeError) from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/heckle.rb:518:in `reset_tree' from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/heckle.rb:170:in `validate' from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/test_unit_heckler.rb:80:in `validate' from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/test_unit_heckler.rb:79:in `each' from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/../lib/test_unit_heckler.rb:79:in `validate' from /home/fletch/.rvm/gems/ruby-1.8.7-p352@work/gems/heckle-1.4.3/bin/heckle:95 from...

@apsheronets it doesn't do nothing, but it also doesn't do much. It strips the xml as a whole and nothing else. I'm trying to figure out if there is much...

Something like this would be great! The `handler = (e) => { /* stuff */ }` syntax feels a bit like the tail wagging the dog. We're giving up named...

@Alxandr can you give me more specifics on the performance and memory overhead of bound functions?

Based on that article, it seems like a couple of years ago it wasn't great, but 12 seconds for 2 million bound function calls actually doesn't sound all that bad...

Makes sense. When you say "at access time" are you talking about when an object is instantiated or when the function is called? I'm all for the decorator based approach...

Ah, I see what you're saying about the binding. It looks like [this implementation](https://github.com/andreypopp/autobind-decorator/blob/master/src/index.js#L59) memoizes the result on the first call.

@robotlolita inheritance makes sense as a case for not binding, or doing it at runtime. Do you know how much memory the binding costs? So far I'm not aware of...