• Using The Faraday Gem

    Introduction When consuming data made available by a 3rd party API (I’ve always disliked the confusion introduced when saying ‘consuming an API’), the Faraday gem is a very popular and concise way to create the connection to the API data. This article will attempt to succinctly describe how to use...
  • So Many Steps To Setup The Independent Challenge

    Table of Contents Setup The list of steps Conclusion Setting it Up If you’re a student from Turing School of Software and Design and you’re working on an IC, you’re in the right place. I wrote this article while I was in mod 2 (2208-BE, ‘sup?), because there were a...
  • What The Heck Is A Rake Task

    Introduction To create a rake task, it would first be helpful to know what a rake task is. A rake task is a small piece of code that is run when it is called from the command line. It’s written in Ruby, and it can do just about anything you...
  • Split An Array In Two

    One way to split an array in to two separate Arrays Working on a simple recursion problem, and the need to split an Array in two arose. How the heck is this done simply? Of course there’s many ways to do it…. arr_a = [1, 2, 3, 4, 5, 6,...
  • How To Collect Things In A Hash As An Instance Variable

    How to collect things in a Hash, as an instance variable of an Object Objects have state and behavior. State is like the current state of your car. Your car’s current state is “parked”. State is represented with an instance variable. Behaviors are the things you can do to or...
  • The Importance Of Floating

    Floating-Point Arithmetic Recently I subtracted a float and an integer in Ruby 3.2 - 3 > 0.20000000000000018 Wait a minute… Shouldn’t the return value simply be .2? Not so fast…. The actual problem at hand included extracting the decimals from a float 2.23 Naturally, turned to StackOverflow The variety of...
  • Select Method In Ruby

    Intro I’m trying different uses for this blog of mine, to see how I can use it for learning exhaust. Consider this article as an extension of the official documentation. While being able to read documentation is a skill, liking the vernacular used to write that documentation is something completely...
  • Rails Forms

    How to build forms in Rails Rails offers three ways to build a form. It’s possible, depending on the version of Rails being used, that I may see any of these tags for forms: <%= form_with %> <%= form_tag %> <%= form_for %> # deprecated This article will be a...