Today I Learned

TIL, 2017-02-28

  • Keyword arguments are about 0.1x slower than positional?
  • Struct slower?
  • Instance variables: ClassName.instance_variables
  • Can’t early exit out of initialize, apparently?
  • Double splat operator to symbolize optional attributes.
  • Thinking how to just do instance_variable_set for params.
  • The problem with my Vim snippets was because I was editing the wrong freaking file (apparently my dotfiles are not syncing)
  • ::Kernel.binding.pry
  • Rubocop ruby styling - assignment in conditionals, redundant begin

This project is maintained by daryllxd