Ruby has a lot of methods that aren’t used very often mostly because they don’t have very many use cases. As a result, for the cases where they are useful, a lot of people might simply not know about them because they never used them.

I decided to put together a list of ruby methods that aren’t so common. This way if you ever want to know if Ruby has a method that can help your program, or if you see a method you aren’t familiar with, you can come to one easy place and find the information you need.

My friend: Congratulations you learned Ruby on Rails!
So now you can make a website for me?

Me: Of course! What do you need a website for?

My friend: Well, I had this great idea, I want to make website where people can upload their photos and share them with their friends!

Me: Umm, well, umm, you see, umm…

My friend: What’s the problem, didn’t you learn all about databases? What’s so hard about storing photos?

Me: Well, I don’t really know how to store photos, I only learned about storing text…

You see, this isn’t a conversation that I…

In Ruby there are different ways you could pass arguments into a method. When I learned about the different ways, I came away a little confused, and I know it’s possible that others might have had/be having a similar experience.

So I want to discuss 3 kinds of arguments that can be used, explain a little about the difference between them and how to assign default values for each of them.

  1. The universal way to pass arguments that will work with practically any language. I’m going to call these “Standard Arguments” (they can also be called positional arguments).
  2. Passing arguments…

As a beginner to Javascript I was introduced to the concept of Object Oriented programming. Part of that introduction was the idea that different languages implement OOP in different ways. While many of the languages have their own spin on it, in general it can be split into 2 main types.

  1. Class-based
  2. Prototype-based

…And that was about as far as I got.

The lesson went on to explain the differences between the 2 types and the pro’s and con’s of each one, but the more I read the more and more lost I became. …

Yisrael Gurkow

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