Composition vs Inheritance
Choose the right tool for the job when building modular software.
Mocking in Ruby with Minitest
Mocking is used to improve the performance of your tests. This tutorial will show you how to use mocks and stubs in Ruby with Minitest.
Why Developers Should Write
As the editor of Codeship’s blog (and several other tech publications from bygone eras), I am of the strong opinion that every developer should write. Of course, I’m also aware that tech writing is a preferred pastime of a select few in the industry. But never fear, I’m going to tell you why you should […]
Building Reusable Object-Oriented Systems: Composition
Using composition to build modular object-oriented systems.
Ruby 2.4 implements Enumerable#sum
In Ruby 2.4, every object belonging to the `Enumerable` family can now call `sum` method on it
222: 1 Million Reasons to Open Source
This week I chat with Mike Perham who is the creator, owner, and operator of Sidekiq. We talk about running a successful open source project, how to make some money and keep your sanity, and a little bit about the future with Crystal. Also, have you heard about Pokemon Go? We'll catch up on GraphQL Summit and talk about being a solo co-host.
Building Reusable Object-Oriented Systems: Modules
Solving the combinatorial explosion problem with multiple inheritance.
Building D3 Components with React: Part 1
Introduction D3 is a powerful library for creating visualizations with JavaScript. While it allows a high-level of customizations, it can be challenging to create isolated, declarative components. Thankfully, this is something React does really well. While there are libraries for integrating the two, I’ve found creating a custom integration to work best for my purposes. […]
Five Practices for Robust Ruby on Rails Applications
This article was originally published on Brewhouse’s blog by Philippe Creux, and with his permission, we’re sharing it here for Codeship readers. Whenever I come across a Rails application with inconsistent data or bugs that are hard to nail down, I tell myself: “They (the developers) were just a couple of keystrokes away from preventing […]
Build a Messaging System with Rails and ActionCable
In the past few months, I've received many questions about Mailboxer and therefore decided to explain how to create a custom messaging system for Rails. Of course, this system will not provide all of the features Mailboxer has, but it will be more than enough for many application. When you fully understanding how this system works, it'll be much easier to further enhance it.