James Brooks demonstrates a concise, simple way to filter the results of an ActiveRecord has_many through relationship. The secret sauce is in the ActiveRecord::SpawnMethods#merge! method
You should have seen the convoluted tangle I’d created to resolve this, previously. If I’ve learned anything about Rails, by now… it’s that there’s always a simpler way to do it!
Recently I was laid off from my sweet full-time position as a Rails developer. I started this job in August of last year and it was my first professional foray into the world of Ruby programming and the Rails framework. Prior to that I was working in PHP which I picked up when it arrived on the, then infant, web development scene in 1995. Prior to that I was manipulating text files with Perl… yes, I’m that old!
Anyway, I went into this new position at a pretty small company after many years at a large agency feeling like I had no voice in helping move the company forward. This new company seemed like a great place to have a voice and (hopefully) help it grow. My first 6 months, I spent just trying to keep up with the (new to me) world of Rails. I kept thinking, once I get over this learning curve, I’ll speak up a little more and explore the reason I joined a small company in the first place. Sadly, I never got there. What I did get, though, was a taste for a smaller more nimble working environment.
Since the layoff, I’ve taken on any and every freelance project I can get my hands on. In many ways, this has been fun. Lots of variety and lots of making an actual difference, as I’ve stepped in to help people that needed quick turnaround. Some days, I stare at spreadsheets and start to panic about the lack of predictable income. It can be terrifying… if I allow it to be.
I have no point, or conclusion, to draw here. I simply wanted to remind myself, through writing, that I currently have ultimate control of the smallest, nimblest “company” I could ever imagine.
Stay positive, Mr. Me!
Some highlights of QCMerge, for me.
Nate Westheimer (@innonate) spoke of his experience with the New York Tech Meetup and how it went from a handful of people in a room to 31,000 members and selling out an 800 seat auditorium in 10 minutes. The emphasis of each meet up is demos. Show us something on which you’ve been working. I’d love to see this aspect incorporated into the monthly Cincy Web/Tech drinkup. Now that I’ve said this out loud, I’d better be able to stand up and do something about it! http://www.meetup.com/ny-tech/
Todd Henry (@toddhenry), whom I heard speak at Landor a few years back, spoke of keeping up the quality in our create-on-demand lives, and not just simply delivering mediocrity. When I heard Todd speak a few years back, he really shook me out of a funk and reminded me why I do what I do. He delivered again this year. I highly recommend listening to hime speak if you ever get a chance. http://www.accidentalcreative.com/
Sara Morgan (@SaraMorganSF) spoke at last year’s QCMerge as well. Since then, she has founded Eleven Eleven PR and is helping companies get the word out, without being schmucky. Sara had some good tips for starups and even estabished companies on how to promote yourself without even seeming like you are. Honestly, Sara has such great energy she could be talking about sportsball and I’d still be interested. https://www.facebook.com/ElevenElevenPr
Chris Glass (@glass) is kind of a design celebrity around these parts. The dude is the embodiment of leading a creative life. Chris’ talk was a simple personal story of what he’s done and what he loves. He claims this was his first ever public speaking gig. If this is true, it’s just one more thing he’s good at… and it started with crayons. http://chrisglass.com/timeline/
Finally, two of the partners of Ample, Rob Sloan (designer) and Kevin Comer (writer) presented a very transparent look inside the way we work at Ample. This included things that didn’t work as well as what’s working right now. Rob and Kevin did a really nice job and I was very impressed with their candor and ease of delivery. Their talk reaffirmed my decision to join Ample last year… a great group of talented, nice people. http://helloample.com
Looking forward to next year’s QCMerge and putting some of what I learned into action.
Exhibit 1: This blog post
Stephen Cornford take the unintentional noise of many cassette decks and turns it into a clockwork symphony. More details at CreativeApplications.net