Railstips.org
#50

Home // RailsTips by John Nunemaker

lmao if you don't make it easy for users of your library to log, measure and graph everything. October 10, 2012. Posted by John. Booleans are Baaaaaaaaaad.

Link: railstips.org

  • Booleans are Baaaaaaaaaad

    railstips.org 04 Apr '14, 5pm

    It absolutely is over-engineering when you replace a 1-bit flag with a gem that needs to be source-controlled, included and tested on updates. That’s the definition of over-engineering. There are a few issues with this post. 1) the title is just wrong. I know it’s tongue-in-cheek, but...

  • Of Late

    railstips.org 24 Feb '14, 7pm

    A lot has changed over the years. I now do a lot more than just rails and having railstips as my domain seems to mentally put me in a corner. As such, I have revived johnnunemaker.com . While I may still post a rails topic here once in a while, I’ll be posting a lot more varied topics...

  • Class and Instance Variables In Ruby

    railstips.org 20 Dec '13, 9pm

    Update (6/13/2008): I posted a bit more on the topic with example uses in the wild . First, let me preface this article with a fact: I’m new to Ruby, however, new is relative in that statement. I’ve been toying with Ruby for over a year but only in the last two months have I really st...

  • Counters Everywhere

    railstips.org 15 Nov '13, 12pm

    Last week, coming off hernia surgery number two of the year (and hopefully the last for a while) I eased back into development by working on Gaug.es . In three days, I cranked out tracking of three new features. The only reason this was possible is because I have tried, failed, and su...

  • Let Nunes Do It

    railstips.org 18 Apr '13, 8pm

    In a moment of either genius or delirium I decided to name my newest project after myself. Why? Well, here is the story whether you want to know or not. Why Nunes? Naming is always the hardest part of a project. Originally, it was named Railsd. The idea of the gem is automatically sub...

  • Four Guidelines That I Feel Have Improved My Code

    railstips.org 05 Jul '12, 7pm

    I have been thinking a lot about isolation, dependencies and clean code of late. I know there is a lot of disagreement with people vehemently standing in both camps. I certainly will not say either side is right or wrong, but what follows is what I feel has improved my code. I post it...

    Related:
    1. How I Learned To Code rubyflow.com 06 Jul '12, 12am
  • lmao if you don’t make it easy for users of your library to log, measure, and graph everything.

    An Instrumented Library in ~30 Lines

    railstips.org 23 Jan '13, 8pm

    For the first time ever, I am going to lead with the end of the story. Here is the full ~30 lines that I will break down in detail during the rest of this post. require 'forwardable' module Foo module Instrumenters class Noop def self.instrument(name, payload = {}) yield payload if bl...

  • Why I think Mongo is to Databases what Rails was to Frameworks

    railstips.org 13 Sep '13, 9pm

    I have been using mongo and MM for a project the last few months. I was initially very enthusiastic but as my data model has gotten more complex, I struggled to map it to the mongo way of thinking. Mongo does not do joins, so you are encouraged to store things hierarchically. So if I ...

Related

rubyinside.com
Ruby Inside: The Ruby Blog
rubyquicktips.com
Ruby Quicktips
get.harmonyapp.com
Harmony Website Management
railscasts.com
RailsCasts: Ruby on Rails Screencasts
orderedlist.com
Ordered List
railsenvy.com
Rails Envy