My Notes from Shape Up: Shipping Work that Matters This post contains my notes and highlights from the Shape Up from 37signals. It contains practical and actionable advice on project management, planning, and actually shipping meaningful work. I found it a great alternative to traditional practices like Agile. Give it a try on your next project!
How to Setup Rails-like Integration Tests in Ruby In this next post in the Rails Companion series, we'll add support for integration testing to our Ruby web application. Specifically, we'll set up the Minitest framework and simulate HTTP requests using the rack-test gem. Finally, we'll add some syntactic sugar to make our tests just like Rails.
How to Access Rails Models in a Rake Task This article shows how you can access your application models and other constants inside rake tasks by adding the `environment` task as a dependency. We'll also go one level deeper and learn exactly how this task loads the environment by inspecting the Rails source code.
Understanding Rails Parameters Rails parameters let you access data sent by the browser, either in the URL or via form submission. In this article, we'll cover the basics of parameters, including what they are, how they work, and why they're important. We'll also learn how you can pass parameters when redirecting a request.
I am Available as a Freelance Developer With my current projects wrapping up, I have the capacity to take on at least one or two new freelance projects, and I can devote my full attention for 20-30 hours each week per project. If you (or your team) are looking for a freelance Ruby and Rails developer, please reach out to me via email.
From a Lorry Driver to Ruby on Rails Developer at 38 I recently had the pleasure to interview Pedro David Garcia Lopez, a Ruby and Rails developer based in UK, who used to be a Lorry driver. What's interesting is that he decided to become a developer at the age of 38. This post shares his story and I hope you find it as inspiring as I did!
How I Read Rails Source Code Here're two techniques I've found really helpful for reading the Rails codebase, without getting overwhelmed. If you want to dive into the Rails source code for a deeper understanding, but feel intimidated by the sheer size of the codebase and don't know where to begin, this post is for you.
How a Ruby Method Becomes a Rails Action: Part One (Metal) In this post, we will explore how a simple Ruby method, when added to a controller, becomes an action in Rails, ready to process incoming HTTP requests and send responses. We'll also trace the path of an incoming HTTP request to a Rails controller action.
Build Your Own Router in Ruby Have you always wondered what a Router is and how it works? I know I have. In this second bonus post in my Rails Companion course, we'll build our own router in Ruby to get a deeper understanding of the Rails Router. We'll also use some meta-programming to make it look just like the Rails router. This article is for Members only
Growing Object-Oriented Software, Guided by Tests Testing software is good. Period. This book gives a practical approach to building software combining the principles of object-oriented programming with test-driven development. All the buzzwords might trigger your inner sceptic, but this book is really, really good. Highly recommended.
Understanding Ruby's defined? Keyword Ruby's defined? keyword is an elegant way to check if a variable is defined or not and also to cache expensive operations. However, it's confusing, and a few gotchas await the new Rubyist. Now that I've had a few opportunities to play with it, here’s my shot at sparing you some of the confusion.
Honeybadger Now Supports Logging and Event Monitoring Honeybadger recently added support for logging and event monitoring. It's one feature that I've been waiting for a while now, and I recently stumbled upon it randomly yesterday. This post shows how you can log events from your Rails apps to Honeybadger.