Snippets #74

Filed Under // Gems Snippets Techniques

Snippets #72

Finally got an issue with my integration tests sorted!

  • Sinatra Pages - An extension for Sinatra that automatically renders pages in your views folder. Very handy for static pages!
  • Bloodhound - A new gem from Nicolás Sanguinetti to convert key value strings to proper hashes.
  • Scrooge - Another new one from Nicolás Sanguinetti. Easy persistence of monetary values in your database without the pain of floating point math.

Filed Under // Gems Sinatra Snippets

Snippets #63

  1. Ruby community survey - Thoughtbot are doing an end of year survey on how developers coding practices. If you've got 5 minutes, fill it out.
  2. Debugging Rule #1: It's your fault! - Applications only do what they're told to do, so it's pointless trying to prove otherwise. I hope there's more of these soon!
  3. Top 15+ Best Practices for Writing Super Readable Code - I tend to avoid these posts as I'm quite happy with my coding practices. Read this if your new to programming in general or you want a quick refresher.
  4. Production Rails Tuning with Passenger: PassengerMaxProcesses - Awesome guide to getting the most out of Passenger on your application server.
  5. LinkedIn Gem for Web App - Quick guide to authenticating a user in a controller using the LinkedIn gem. Lots of potential for this gem in the right application.

Filed Under // Deployment Gems Snippets Testing

Snippets #53

  1. Devise: authentication for lazy programmers - Check out the latest changes for the new authentication gem on the block.
  2. Hacking someone's gem with github and gemcutter - A great post for anyone wanting roll their versions of a gem.
  3. Know When to Fold'em - Good advice when you want to delegate a library you don't wish to maintain.
  4. The magic of thinking big - Great post about the new Build conference happening this weekend in Belfast.

Snippets #41

  1. A Month in Rails - Some of these goodies have already been posted here, but there are a few gems here (pardon the pun!) if Rails is your thing.
  2. Gem Packaging: Best Practices - I've haven't written any gems yet, but it's always good to learn this stuff.
  3. Always remember me - Thoughtbot's authentication engine has changed how its "remember" default.
  4. Migrating to Snow Leopard for Rails Development - A Definitive Guide - Mike Gunderloy has written a very detailed guide to getting a working Rails environment going on Snow Leopard. I'm definitely going to be using this guide myself when I eventually upgrade in a few weeks.

Snippets #22

  1. Introduction to Git Part 2: Branches - The Quite Useful blog continues its’ series a look at branches in Git.
  2. JSONQuerying Your Rails Responses - This looks like a start of new project to watch for on GitHub.
  3. Validating form_tag in ActiveRecord - A simple solution to adding a validation to something like a contact us form.
  4. Google Charts gem - I’m looking to use this for a Sinatra app to display some charts for Twitter data.

Filed Under // Gems Git Rails Snippets

Snippets #21

  1. Production Log Analyzer - Useful little gem gets a version bump this week.
  2. An easy way to write named scope tests - Zach Brook shows how easy it is to test your named scopes.
  3. Getting Started With Restful Authentication in Rails - Nettuts has created another Rails tutorial for the masses, but this might be a bit basic for some.
  4. Introduction to BDD with Cucumber - This seems a better fix for me than RSpec.

Snippets #11

  1. Fat Binary Gems - An idea by Aaron Patterson to target multiple versions of a gem on the Windows platform.
  2. Fun with Class.new - Gregory Brown shares some tricks using Class.new.
  3. Demystifying Irb’s Commands - The Tagaholic blog delves deep into Irb’s commands.

Filed Under // Gems Snippets