Ruby vs Some of Them

@alvinkatojr 

When purpose is not known abuse is inevitable

Algebra minus why

  • teachers always said move the negative side to the left i.e interchange

  • So we do

  • Doesn n't look right, so let's rearrange it.

  • But why have you done that? 

3 + x = -1
3 + 1 + x = 0

4 = -x
x = -4

Commutative law of addition

  • A sum is not changed by rearrangement of addents.

  • If you add the same number on both sides the equation's result is balanced. 

  • You will get the same answer as before.

3 + x = -1 
3 + x + 1 = -1 + 1

4 + x = 0
x = -4

Every language has a reason behind its creation. Ignore it at your own peril. 

>> import this

Ruby vs Python

>> The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

Python

  1. There should be one way of doing things
     
  2. It may not be obvious unless you are Guido Van Rossum

Ruby

  1. There should be many ways, do not limit creativity.
     
  2. Principle of least suprise, you should n't be shocked beyond your eyeballs

Before Python..... after Python

Ruby vs Javascript

 

Javascript

  • Created in 10 days
  • Syntax had to be similar to Java
  • Meant to be a 'Glue' language

Ruby

  • Work started Feb 24th 1993
  • Alpha release December 1994
  • Used ideas from Perl, Python, C and C++ and took only the best features from each language
  • Anything language

Javascript

  • No guiding philosophy
  • Design issues that are still unchanged to date
  • Multitude of web frameworks

Ruby

  • Programmer productivity
  • Design involved with new changes
  • Fewer web frameworks

Before Javascript...after Javascript

 

Before Ruby...,after Ruby

Ruby's guiding philosophy is fun and programmer productivity

END

Ruby vs All of Them

By Alvin Kato

Ruby vs All of Them

Why Ruby and not other languages

  • 140