Quick Left

This is a blog

GIFs, tech and stuff.

Introduction to Database Design (on Rails): Part II

In a previous post, I explained the fundamentals of database design. This guide will cover the second half of that topic: how to make the database work with Rails. Before reading this you should have a good understanding of what a database is and how to organize one.

Rails is a framework that sits on top of the programming language Ruby. The framework speeds up web development by filling in code that you'd otherwise write from scratch on every new project. A component of this is ActiveRecord, a subset of Rails that acts as the bridge between your database and your Ruby code.

Read More...

Faking Regex-Based Cache Keys in Rails

There are many ways to cache data in a Rails application. (The official Rails Guide explains the different approaches well.) Heroku allows you to easily take advantage of Rails caching by connecting your application to Memcached servers through the Dalli client gem.

This drop in solution is simple, but there's one glaring problem. Memcache does not support expiring cache keys with regex. This means if you need to delete keys beginning with "user-1" but not keys beginning with "user-2", you're out of luck. Or so it seems...

Read More...

Batch iOS App Production Using Ruby and WOX


In the Fall of 2011, we had a client come to us because they wanted a way to produce iOS applications with minimal developer effort. They had an existing firm delivering apps, but they weren't pleased with the quality of the work or the ongoing cost to produce new apps.

Read More...

5 Resources to Get Started with Ruby on Rails

Since starting my apprenticeship with Quick Left just over three months ago, I've been asked frequently how I got started with Ruby on Rails. Being the efficiently lazy guy that I am, I thought I'd publicly share some of the resources I've been recommending during those conversations.

Read More...

SOLID Design Principles


If you're a professional developer and don't know about SOLID, consider
your education incomplete. SOLID is a mneumonic acronym describing 5
prinicples that are particularly handy when designing complex object
oriented systems.

Read More...

Tags