Learnings for Week 21 2010

  • A couple of interesting resources for getting rid of alias_method_chain in your code here and here
    • The basic idea in both of these is to create a module that defines the method you want to chain and call super in your redefinition. When you include the module into your class the modules method is insterted right above the instance’s class in the inheritance tree.
  • jQuery nextAll and prevAll functions to get all following/previous siblings of each element in the set of matched elements
  • cmd-shift-t reopens last closed tab in the web browser (chrome, firefox, safari).
  • A selected like ‘input + label’ matches all the labels that are directly beside an input. There is no way, with the same markup, to target the inputs directly beside a label (‘input - label’ someday, maybe?)
Posted June 05, 2010

Comments

comments powered by Disqus