About Logan Serman

This author has not yet filled in any details.
So far Logan Serman has created 8 blog entries.
17 10, 2016

Rails 5 Attributes API

By |2018-09-27T15:19:45+00:00October 17th, 2016|Categories: Ruby on Rails|Tags: |

The Rails 5 attributes API is the best feature of Rails 5, but no one knows it yet. You hardly hear about it. It took me awhile to even find out how to use it.In Rails 5, model attributes go through the attributes API when they are set from user input (or any setter) and [...]

8 03, 2016

In-Depth Ruby: Modules & Include vs. Extend

By |2018-09-27T18:06:06+00:00March 8th, 2016|Categories: Coding & Development, Ruby on Rails|Tags: , |

Ruby provides a construct called a Module which is sort of like a thin Class. At first, Ruby devs might look at Modules like a “junk drawer” of code that is just thrown around and used to organize files, but there is a method to this madness. The Ruby class Class inherits from Module and [...]

23 02, 2016

Using Docker for Internal Tools & Infrastructure

By |2018-09-26T21:49:34+00:00February 23rd, 2016|Categories: Apple/iOS, Coding & Development, Ruby on Rails|Tags: , , |

Docker is a containerization solution that allows apps to run in a sandboxed environment that includes all the dependencies they will need without the additional overhead of a virtual machine. This sounds great–we can containerize our applications and deploy them, no more server provisioning and maintenance! Unfortunately, this is way more difficult than it sounds [...]

17 11, 2015

A Beginner’s Guide to Ruby Getters and Setters

By |2018-10-24T18:03:56+00:00November 17th, 2015|Categories: Coding & Development, Ruby on Rails|Tags: , |

In Ruby, getters and setters are typically defined by using the class method `attr_accessor`. Normally you see this at the top of the class and it sort of defines what properties that instances of the class will have. I feel like this method causes some confusion for Ruby beginners and it is something I had [...]

31 10, 2014

How to Use Background Tasks in Rails

By |2018-10-01T18:13:54+00:00October 31st, 2014|Categories: Coding & Development, Ruby on Rails|Tags: , |

Why?Rails servers have a limited amount of connections that they can maintain at one time because the web server (in most cases) is a single-thread and multi-processed. There is a set amount of “workers” that can handle connections, when those connections are tied up, any new connections will have to wait. If you are processing [...]