Andy Andrea

19 Followers
72 Following
3 Posts

he/him

Engineer @ Panorama Education

Very passionate about mentorship and reducing the barrier to entry to tech

Now that my brain has had a chance to un-melt from an amazing week at #railsconf, I spruced up my talk's companion repo with some improved formatting and a few new topics.

If you've ever been looking for a list of things that _seem_ similar in #ruby or #rails but are at least a little different, take a look: https://github.com/andycandrea/this_or_that.rb

Any and all feedback welcome!

GitHub - andycandrea/this_or_that.rb: Resources to differentiate similar methods/classes in Ruby/Rails

Resources to differentiate similar methods/classes in Ruby/Rails - andycandrea/this_or_that.rb

GitHub

@bbatsov Regexp#=~ _sometimes_ defining or overwriting variables named after the regex's capture groups is a current favorite.

Also the fact that `my_array.join(delimiter)` can be rewritten as `my_array * delimiter` or `my_array.method(:join) === delimiter`.

Getting an instance of a class where you bypass the initializer via .allocate instead of .new is both kind of cool and kind of weird.

@toppa Just noticed this now--thanks so much for coming, Mike! It was great getting to catch up, and I hope that your travels home post-conf went well.