Image for post
Image for post

In this post, I would like to discuss one use case, out of several use cases, for Ruby’s metaprogramming that I found very helpful while working on building a command line interface application (CLI) with external data for my first portfolio project at Flatiron school. I am referring to the use of mass assignment for the Initialize method. One of the requirements of my project was that my CLI should make only one call to an external source, in my case I used the National Park Service API that returned a large data set in the format of an array of nested hashes. During the early stages of development of my project I found myself ‘mining’ the array of nested hashes for the data I intended to use with my CLI and then compiling a list of variable names for which I knew I was going to have to create at least an instance variable for each of them and, using the attr_accessor macro, a setter and getter method for each them. …


I wanted to become literate in the language that is driving the future, code.

Image for post
Image for post

Some years back I took a series of classes in C++ programming in Pleasant Hill, California and obtained a Certificate of Achievement on Advanced C++ programming and Computer Architecture. This laid the groundwork and really peaked my interest and imagination on what was possible when code and ingenuity are combined. Consequently I was working in the public affairs department of a non-profit which exposed me to the inner workings of their online publishing platform WP and had me working with their content management system. In other words, I was introduced to the world of HTML and how it interacts with CSS. …

Walter Aab

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store