Programming

How to Remove Duplicate Objects in Javascript and Ruby.

You're get a Two for One tip today! It's only fitting that we talk about removing duplicate objects.You're used to dealing with duplicate strings...

Rails: Quick and Easy Way to Log Sidekiq Jobs

Sidekiq runs in a separate process. With that being the case, standard tools like STOUT and Pry don't work when you want to log...

Rails: Refactor an ActiveRecord Query

Let's refactor a clunky ActiveRecord query, shall we?First, let's look at our ActiveRecord query. It's not very good is it? Don't worry, we all...

Ruby: Assigning Hashes in Begin Blocks

When dealing with a failing API request (or more than one) it's best to reset your hash in the rescue block in order to...

Ruby: delete_if array function

Ruby's array function delete_if doesn’t have a corresponding delete_if! function.This means the array is changed permanently if you use delete_if. So, exercise caution when...

Rails: Eliminate Circular Dependencies With Multiple Layouts

If you have multiple layouts in a Rails Application the manifests cannot include require_tree. You'll encounter an infinite loop if require_tree is not removed.This...

Rails: Implementing Font-Face

With Rails 4, the implementation of @font-face changed just a bit. Here's how you can implement custom choices using @font-face tags with Rails 4...

Zurb Foundation and Orbit Image Scroller

Odds are you came here because you are reading this because you are having an issue with the Zurb Foundation's Orbit Image Scroller. You...

Ruby: Verify Email Addresses are Correct and Maybe Valid

One of the biggest things you'll face is verifying email addresses. There's a dozen ways to do it it seems. Here's how I do...

Latest articles

Here are Six Front-End Development Channels on YouTube

The Coding Train https://www.youtube.com/watch?v=bKEaK7WNLzM If you love programming then this is the...

Real World Use Cases for JavaScript Proxies

Introduction to Proxy In programming terms, a proxy is an entity that acts on behalf of some other entity....

Fifteen Podcasts for JavaScript Web Developers

If you're a web developer then you're used to reading a lot. Now you're thinking, "Hashrocket, what am I supposed to do...

Why you should use CSS3 over Bootstrap

When we start learning how to create a web page and learn about CSS, it can be quite daunting to see the...
14.0k Followers
Follow