Ruby

Installing Rails on Mac OSX by Eric on February 1, 2020

When developing for Ruby on Rails the first thing you'll need to set up your development environment. This guide will be for installing things on Mac OSX and would be similar for Linux. These are my notes from experience setting up a Rails environment based on The Rails Tutorial by Michael Hartl. New Rails Installation on OSXInstall Git Checks if git is installed and if it isn’t it will install it $ gitInstall Ruby (Already installed) Checks Ruby version, already installed on OSX $ ruby -vInstall RVM RVM is for multiple Ruby on Rails environments for different projects. $ curl -sSL https://get.rvm.io | bash -s stableInstall RVM Requirements $ rvm requirements NOTE: RVM tries to install gcc46 which is an older version of gcc on OSX. Mavericks already has gcc installed so install the list that appears except gcc. It also can install but take a VERY long time so just be patient and see.Tell RVM where OpenSSL is $ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usrCreate .gemrc This fi...

Getting Started with Programming by Eric on February 1, 2020

A friend of mine called me up recently to ask me how to get started with programming. I've gotten these requests more and more as the demand for programmers rises. I'm going to compile a list of resources to help anyone get started with what I feel are the basis for what anyone who wants to program will need. This list is by no means comprehensive and while this will get you started you should not feel like you can go from knowing nothing to building the next Facebook simply by following this guide. It will, however, give you a solid foundation with which you can build and grow to the point where you could potentially build something like Facebook or Instagram on your own or working with a small team.Which Language Should I Learn? This depends entirely on what you are trying to do. Some people want to make their work life more efficient by writing small programs to automate their daily tasks while others may want to create websites and web applications. For the first I suggest Pytho...

What's Coming in Rails 5 by Eric on February 1, 2020

Rails 5 As has become tradition, a new full version release of Rails is coming just two years after the release of Rails 4. This new version progresses the platform by bumping the underlying minimum Ruby version and adds a slew of neat features to keep Rails feeling fresh and new.Ruby 2.2.2Ruby 2.2.2 is required in Rails 5 because Rails 5 will take advantage of the new Symbol Garbage Collection found in Ruby 2.2. There is also rumor of Rails 5 using the Incremental Garbage Collection found in Ruby 2.2. They have decided to use Ruby 2.2.2 since Ruby 2.2 had a major security vulnerability that is patched in 2.2.2. https://github.com/rails/rails/pull/19257 Ruby 2.2.1 PR https://github.com/rails/rails/commit/32f7491808d2c4e097ed7b3ee875e4d1cea8c442 Ruby 2.2.2 Commit Rails APIMany Rails developers these days are finding themselves using Javascript Frameworks more and more. Whether DHH likes that or not it's a fact of life. Before Rails 5 developers turned to the ruby-api gem which h...