Miha Rekar bio photo

Miha Rekar

👨‍💻 Software Developer
🎙️ Podcaster
🕴 International Speaker
👨‍🏫 RubySlovenia organizer
☕️ Home Barista
🏃 Marathon Runner
📷 Event Photographer
📖 Aspiring Stoic
🦄 Special

Email Twitter Github Facebook LinkedIn Instagram Stackoverflow Speaker Deck Foursquare Youtube Soundcloud


better_errors, jazz_hands, bullet, quiet_assets, rack-mini-profiler, terminal-notifier-guard, figaro

#About me

First things first - I’m a Rails newbie. I’ve been messing with it for about 6 months and I’ve been to this years RailsConf as a scholarship recipient. I’ve written a couple of Rails apps and I’m just diving into TDD and BDD since I’ve never done tests before.

#The gems

##better_errors Seriously can’t develop without this one anymore. It replaces the standard Rails error page with a much better and more useful error page. You should also install binding_of_caller which gives you REPL and local/instance variable inspection which is just awesome. You can also use it with Pry, just put this in your development.rb initializer:

AwesomePrint.defaults = { plain: true }

##jazz_hands Now this is a collection gem - it includes many many many sweet gems:

  • Pry for a powerful shell alternative to IRB.
  • Awesome Print for stylish pretty print.
  • Hirb for tabular collection output.
  • Pry Rails for additional commands (show-routes, show-models, show-middleware) in the Rails console.
  • Pry Doc to browse Ruby source, including C, directly from the console.
  • Pry Git to teach the console about git. Diffs, blames, and commits on methods and classes, not just files.
  • Pry Remote to connect remotely to a Pry console.
  • Pry Debugger to turn the console into a simple debugger.
  • Pry Stack Explorer to navigate the call stack and frames.
  • Coolline and Coderay for syntax highlighting as you type.

##bullet Now this is a very simple gem, that looks at your queries. Whenever you do a N+1 it’ll log it and optionally alert you. There are many ways it can report to you, just read the README.

##quiet_assets Nothing more annoying that those assets requests spam messages in Rails log. This shuts it off.

##rack-mini-profiler It’s a middleware that displays speed badge for every page. It shows a nice sidebar with all the DB requests and timings and such. Useful for identifying bottlenecks.

##terminal-notifier-guard Adds native notifications to Guard. Only useful if you use Guard and are on Mac OS 10.8+

##figaro It’s the best Rails configuration gem I came across. It provides a clean and simple way to configure your app and keep the private stuff private. This way you can easily open source projects without worrying about secret tokens and such. The best of all? It knows how to export those ENV vars to Heroku.

#Got more?

Do comment :)