Archive | Ruby RSS feed for this section

MakerSquare-6 weeks

One of the lead instructors at MakerSquare gave us a lightning round recap of the things we have learned during the first six weeks of our immersion into web development. Ruby classes modules instances instance variables models views templates controllers mailers routes migrations databases model association git merge feature branches user auth hashes encryption rails […]

Leave a comment Continue Reading →

Asking a question on Stack Overflow

I swallowed hard today and posted my first ever question on Stack Overflow. I have composed many posts before and never hit the submit button.  I always have stumbled into the solution, but alas no such luck this time. So I enclosed as much information as I thought was needed, overcame my resistance about asking […]

Leave a comment Continue Reading →

Kaprekar number

In mathematics, a Kaprekar number for a given base is a non_negative_integer, the representation of whose square in that base can be split into two parts that add up to the original number again. For instance, 297 is a Kaprekar number, because 97² = 88209 and 88+209 = 297. The Kaprekar numbers are named after D. R. Kaprekar. How […]

Leave a comment Continue Reading →

Ruby Inject

As part of my code every day challenge, today I am taking a look at the Ruby Inject method.  I never really understood how the Ruby inject method worked and why one might use it. The  Ruby inject method is useful for aggregating data.  For example a summation could be done with inject (by aggregating […]

Leave a comment Continue Reading →