Monthly Archives: January, 2017

Rails: Protect Devise when using OAuth

If you're using OAuth and Devise together in an application, you need to remove the Devise Authentication routes and still confirm your model won't...

Ruby: A Kindler, Gentler Flow Control for Beta Sites

When you're working with beta sites, it's commonplace to have <% if else %> blocks in your views for code that shouldn't be seen...

Ruby: Flow Control and Assignment

You'll find that Ruby offers some excellent flow and control and assignment opportunities. What's more, is that it can be flipped right or left...

Ruby: Load Config from YAML if ENV Variables are not set

We are all well aware of the tried and true method of setting your applications variables using ENV, right? Stuff like ENV, etc. is...

Rails: How to get Column Types in ActiveRecord

You can use the columns method to get the types of columns in an ActiveRecord. With that, you can perform functions on the data...

Ruby: Ruby’s String and Regexp Methods

Here’s an impressive example of Ruby’s String and Regexp methods. We’re going to use them to parse a string, and then form an array...

Ruby: Ruby’s String and Regexp Methods

Here's an impressive example of Ruby's String and Regexp methods. We're going to use them to parse a string, and then form an array...

Archives

Latest articles

How to do Destructuring in JavaScript

What is Destructuring? At its core, destructuring is the idea that we are pulling out values individually from a...

Writable Streams, Streams Piping, and Error Handling in Node.js

A Writable Stream A writable stream is a stream of data that is created to write some streaming data....

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....
14.0k Followers
Follow