It’s never to late to learn how to code

And Ruby is the perfect language to start

Image for post
Image for post
my_stocks.each do |stock|
if stock.get_current_price < stock.buy_threshold # shares
tell_me “We bought a 100 shares of #{}”

Consider the possibilities

You can easily learn how to write code like this. Automate basic tasks, create games, and analyze data, just to name a few.

What is the best coding language to learn?

Many people start coding by learning HTML and CSS. This is a fine approach which allows them to quickly create basic web pages. It is easily visible and tangible. However, you have much less power and capability with this language, and therefore less opportunity to learn and explore.

  1. You provide a sequential set of instructions. First, get all of the china plates out of the cabinet and bring them to the table, etc. In this approach, you prescribe exactly how to do it. You specify the instructions and order in what to perform them.

Ruby has an amazing community

Yukihiro Matsumoto, also known as “Matz”, created the Ruby language. Ruby grew in popularity quickly in Japan, and then spread to the rest of the world. Matz is a nice guy, and so the community is also nice. The saying is:

Ruby is a valuable skill to have

Ruby is consistently in Top 10 languages on GitHub.

Computers require more precision than humans

Consider you are taking a hot dish out of the oven. You say to your friend, “Please get the trivet from the drawer and put it on the table.” If your friend doesn’t know what a trivet is, they may ask. A computer will simply stop at that point because it doesn’t know how to proceed. You will get a message informing you that it didn’t understand what the word trivet was, but it’s up to you to change the term or define it.

Ruby code to get the price of Bitcoin

Can you follow this code? Note: it uses helper functions defined here.

Image for post
Image for post
Image from Yes, You Can Code training by the author

President of The Broemmer Group, technologist, and author. Science enthusiast. A desire to inspire through the written word.

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