Slide 1

Slide 1 text

5 Random Ruby Tips Dr Khoo Chong Yee @CantabIP

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Bundler 1.4.0 Parallel Installs gem install bundler --pre bundle install -j4 ! http://tinyurl.com/parallel-bundler (Sikachu blog) http://tinyurl.com/heroku-bundler (Heroku buildpack)

Slide 4

Slide 4 text

Bundle Console Start an irb session with all gems in Gemfile Great for gem development ! bundle console

Slide 5

Slide 5 text

Tweak Ruby GC Settings • http://tinyurl.com/ruby-gc (Fred Wu blog) • Set environment variables, e.g., in .zshrc • RUBY_GC_MALLOC_LIMIT • RUBY_HEAP_MIN_SLOTS • RUBY_FREE_MIN • 4064 examples • before 2m 24.5s • after 1m 22.58s • 42.8% faster!

Slide 6

Slide 6 text

Keep Ruby Notes in Evernote • Tag them “Random Ruby Tips” • Volunteer for the next talk!