theScore Tech Blog

Things We Learn While Building the Ultimate, Personalized Mobile Sports Experience

3 Ways to Create Classes in Ruby

Out of the box, there are 3 ways to create classes in Ruby. Find out how to use all 3 options, and learn when to use one option over another.

5 min read

Select and Map Are Good

This article argues that when able to one should break down iteration operations over an array into map and select as opposed to operating on the enumerable through an each.

4 min read

Simple Ways to Protect an API: HTTP Basic Authentication and HTTP Token Authentication

Having a limited number of consumers for an API lets you keep the authentication really simple for that API. Let's explore HTTP Basic Authentication and HTTP Token Authentication as the simple solutions in this scenario.

5 min read

How You Nest Modules Matters in Ruby

Ruby provides two different syntaxes to nest modules (and classes). Most Rubyists think that the syntaxes are interchangeable. But, the the code may behave differently depending on the choice of syntax.

3 min read

Benchmarking JSON Generation in Ruby

Find out how RABL, ActiveModel Serializers, and plain Ruby presenters perform relative to each other when they are used to generate JSON.

8 min read

Analyzing S3 and CloudFront Access Logs with AWS RedShift

The S3 and CloudFront logs for us are easily terabytes of data per year, and traditional log parsers tend to not handle that size of data. Find out how we use AWS RedShift for log analysis.

17 min read

Using Airbrake with Rake and not Rails

You can configure Airbrake to notify you of errors that happen in your rake tasks. However, there is a gotcha if you want to do this outside of Rails.

1 min read

‹ Newer