robots.thoughtbot.com Archives - 18 August 2013, Sunday

  • Pong clone in JavaScript

    robots.thoughtbot.com 17 Aug '13, 5pm

    The ability to create interactive games in JavaScript is getting easier with the constant improvements to JavaScript engines and the ability for browsers to utilize the GPU. To demonstrate how easy it is to write games in JavaScript we’re going to write a pong clone.

  • Pong clone in JavaScript

    robots.thoughtbot.com 17 Aug '13, 1pm

    The ability to create interactive games in JavaScript is getting easier with the constant improvements to JavaScript engines and the ability for browsers to utilize the GPU. To demonstrate how easy it is to write games in JavaScript we’re going to write a pong clone.

  • Implementing Multi-Table Full Text Search with Postgres in Rails

    robots.thoughtbot.com 16 Aug '13, 6pm

    Easily searching across an application’s data is a pervasive need. If you are lucky, you can get away with simple sorting or searching on a single column, but it is more likely that you need full text search across multiple models, all from a single search field.

  • Renderable Null Objects

    robots.thoughtbot.com 15 Aug '13, 7am

    August 15, 2013 georgebrock null object refactoring rails We’ve talked about Null Objects before , and how they can remove unwanted conditionals from your code. I’d like to talk about extending those benefits into your Rails views. Setting the scene Recently I’ve been working on an ap...

  • Build Phase Episode 3: Create All The Objects!

    robots.thoughtbot.com 14 Aug '13, 2pm

    giant robots smashing into other giant robots Written by thoughtbot Build Phase Episode 3: Create All The Objects! August 14, 2013 ios learning This week on Build Phase Gordon and Mark discuss the best tools, resources and methods for new iOS developers. Episode Notes and Links Subscr...

  • Use RSpec.vim with tmux and Dispatch

    robots.thoughtbot.com 12 Aug '13, 1pm

    Use RSpec.vim with tmux and Dispatch August 12, 2013 calebjthompson vim rspec test driven development tmux open source (And Keep Your Screen Real Estate) As you may know, there are quite a few of us now working at thoughtbot. While we share a lot of the same opinions, we all work a li...

  • Giant Robots Episode 61: Having the Craic with Paul

    robots.thoughtbot.com 12 Aug '13, 12pm

    giant robots smashing into other giant robots Written by thoughtbot Giant Robots Episode 61: Having the Craic with Paul August 12, 2013 conferences In this episode Paul Campbell and Ben Orenstein talk about tito.io, funconf, and organizing conferences. Episode Notes and Links Subscrib...

  • Stockholm's meetups are back in session

    robots.thoughtbot.com 12 Aug '13, 9am

    Stockholm’s meetups are back in session August 12, 2013 lolconomy stockholm meetup community events Here in thoughtbot Stockholm we have our hand in some of the local meetups. We’ve used the summer to revamp them and we are about to start the autumn off with a bang! Sthlm Startup Meet...

  • git bisect

    robots.thoughtbot.com 09 Aug '13, 4pm

    git bisect is amazing. You don’t know what it is? Let me fill you in! git bisect is a tool that allows you to find an offending commit. Let’s say you’ve come across a bug in your codebase and you’re unsure of when it was introduced. If you can find a commit where the code works proper...

  • A new iOS workshop from thoughtbot

    robots.thoughtbot.com 09 Aug '13, 8am

    A new iOS workshop from thoughtbot August 9, 2013 cpytel ios thoughtbot training workshops Jack Nutting, a talented, veteran iOS developer, recently joined our team in Stockholm. Jack is the author of numerous books , including Beginning iOS 6 Development , and has been leading iOS wo...

  • Fast testing loop in tmux with vim-rspec and tslime

    robots.thoughtbot.com 08 Aug '13, 2pm

    Fast testing loop in tmux with vim-rspec and tslime August 8, 2013 joelq tmux vim vimrc TDD rspec tslime When I first started working at thoughtbot, I was impressed to see some of my colleagues sending the current spec in vim to a tmux pane with the press of a key. This makes for an v...

  • A Tmux Crash Course

    robots.thoughtbot.com 07 Aug '13, 6am

    January 18, 2011 jdclayton development tmux shell unix how to I’ve been using Tmux for about six months now and it has become just as essential to my workflow as vim. Pane and window management, copy-mode for navigating output, and session management make it a no-brainer for those who...

  • Running Specs From Vim

    robots.thoughtbot.com 05 Aug '13, 6pm

    August 5, 2013 dancroak vim rspec Test driven development thrives on a tight feedback loop. However, switching from the editor to the shell to manually run specs is inefficient. Tools such as autotest and guard run specs whenever a file gets saved. Although an improvement over a manua...

    Related:
    1. Running Specs From Vim rubyflow.com 05 Aug '13, 7pm
  • The Art of Vim: Screencast on Text Objects

    robots.thoughtbot.com 31 Jul '13, 7pm

    Hello Vim-warriors, we’ve added a new screencast to

  • How to Create Postgres Indexes Concurrently in ActiveRecord Migrations

    robots.thoughtbot.com 30 Jul '13, 12am

    July 29, 2013 dancroak postgres activerecord How to Create Postgres Indexes Concurrently in ActiveRecord Migrations By default, Postgres locks writes (but not reads) to a table while creating an index on it. That can result in unacceptable downtime during a production deploy. On a lar...

  • Episode 59: Nowhere to Hide

    robots.thoughtbot.com 29 Jul '13, 2pm

    July 29, 2013 software development programming hiring Episode 59: Nowhere to Hide In this episode, Ben Orenstein speaks with thoughtbot CTO Joe Ferris about the technical interview process at thoughtbot, and more. Episode Notes and Links Subscribe via iTunes Subscribe via RSS Direct D...

  • We are excited to announce thoughtbot Philadelphia.

    thoughtbot Philly

    robots.thoughtbot.com 23 Jul '13, 1pm

    July 23, 2013 kylehasmanypixels thoughtbot philly cheesesteaks design rails ios thoughtbot Philly It’s with great pleasure that I, Kyle Fiedler , can announce a thoughtbot presence in Philadelphia. I have recently relocated here from our Boston office. We expect that this location wil...

  • Episode 58: A Thousand Neckbeards

    robots.thoughtbot.com 22 Jul '13, 2pm

    July 22, 2013 haskell ruby programming software development Episode 58: A Thousand Neckbeards This week Ben Orenstein, Pat Brisbin, and Mike Burns talk about Haskell, Linux, functional and dynamic programming, Conway’s Game of Life, and much more. Episode Notes and Links Subscribe via...

  • Tmux Copy & Paste on OS X: A Better Future

    robots.thoughtbot.com 19 Jul '13, 5pm

    July 19, 2013 christoomey-tb tmux Tmux Copy & Paste on OS X: A Better Future Tmux recently updated to version 1.8 , and with the update came a new command that greatly simplifies integrating with the OS X clipboard. With prior versions of tmux, there wasn’t a straightforward method fo...

  • One-on-one Mentors now included in thoughtbot’s Learn Prime

    robots.thoughtbot.com 18 Jul '13, 8pm

    July 18, 2013 cpytel thoughtbot learn One-on-one Mentors now included in thoughtbot’s Learn Prime Today, we’re excited to announce a new addition to Prime: One-on-one mentoring . Since launching, Learn Prime has evolved from a simple subscription service of everything we teach into a ...

  • The Perils of Uniqueness Validations

    robots.thoughtbot.com 17 Jul '13, 1pm

    July 17, 2013 derekprior rails SQL The Perils of Uniqueness Validations Your Rails application probably makes use of uniqueness validations in several key places. This validation provides for a nice user experience when duplicate records are detected but as we will see in a moment, is...

  • External Posts in Jekyll

    robots.thoughtbot.com 15 Jul '13, 12pm

    In my case, I like to have the “external posts” I write here for Giant Robots to show up on my personal blog , so that I can direct people to a single place to see everything I write. Having the posts all in one place also allows me to use Google Analytics to track clicks from my site...

  • Chat Example App Using Server-Sent Events

    robots.thoughtbot.com 14 Jul '13, 2pm

    Chat Example App Using Server-Sent Events Rails 4 can stream data to the browser with ActionController::Live using server-sent events (SSEs) . I was curious how server sent events worked so I decided to use them to implement a simple chat application. Tiny-chat is a chat app I built u...

  • Taming Factory Girl List Creation

    robots.thoughtbot.com 13 Jul '13, 1pm

    July 13, 2013 derekprior ruby rails testing Taming Factory Girl List Creation There are times in your tests when you need to create multiple instances of the same type of object. FactoryGirl provides create_list for just these sorts of scenarios. It’s typically sufficient to create tw...

  • Have Your Trail and Eat It Too

    robots.thoughtbot.com 12 Jul '13, 1pm

    July 12, 2013 ehmorris trails learn Have Your Trail and Eat It Too Over a year ago, we launched Trails to help answer the question “How do I learn x." Since then, we’ve worked on refining what we think goes into learning Rails, Ruby, design, typography, and 16 other skills (it’s open ...

  • PSA: Do not use system Ruby

    robots.thoughtbot.com 10 Jul '13, 5pm

    OS X Mavericks may ship with Ruby 2.0. Cool, right? Don’t touch it. Why eschew system Ruby? The root problem is not with using a pre-installed Ruby per se, but with not using a Ruby version manager . Problem: Gem Dependencies PC users will remember DLL hell . Ruby developers have deal...

    Related:
    1. Ruby Gem Developer | Ruby freelancer.com 12 Jul '13, 10am
  • @KinseyAnnDurham

    Skinny Controllers, Skinny Models

    robots.thoughtbot.com 09 Jul '13, 2am

    Skinny Controllers, Skinny Models I hear a lot of people recommending the “skinny controller, fat model” approach to Rails development. I’m all for keeping controllers simple, but who wants a fat model? If your editor slows down while loading up your model files, I have some advice: p...

  • Seamlessly Navigate Vim and tmux Splits

    robots.thoughtbot.com 15 Jun '13, 1pm

    June 15, 2013 derekprior vim tmux Seamlessly Navigate Vim and tmux Splits My tmux session for a given project typically has two horizontal tmux panes with Vim occupying the top 80% of the screen and a shell running below that occupying the remainder. For the most part I stay in vim, s...

  • Jasmine and Shared Examples

    robots.thoughtbot.com 15 Jun '13, 11am

    August 31, 2011 jdclayton javascript testing Jasmine Underscore.js shared example groups Jasmine and Shared Examples I’ve been doing a bit more Javascript development as of late and am using Jasmine for my unit tests. It’s been wonderful. I did find that it was a bit of a bear to test...

  • accepts_nested_attributes_for with Has-Many-Through Relations

    robots.thoughtbot.com 14 Jun '13, 6pm

    accepts_nested_attributes_for with Has-Many-Through Relations If you find yourself getting validation errors when using accepts_nested_attributes_for with has-many-through relations, the answer may be to add an inverse_of option. The inverse_of option allows you to tell Rails when two...