Ruby Programming – 21 – Hashes and Symbols

Ruby programming tutorial. Ruby Symbols and Hashes.
★☆★ THE BEST EDITOR and IDE FOR PROGRAMMING ► http://bit.ly/Komodo-IDE-Learn-Ruby ★☆★

★☆★ SIGNUP TO GET MY RUBY BOOK FOR FREE ★☆★

http://bit.ly/free-book-signup

★☆★ FOLLOW ME BELOW ★☆★

Twitter ► http://bit.ly/jake-day-twitter

YouTube ► http://bit.ly/jake-day-youtube

Facebook ► http://bit.ly/jake-day-facebook

SoundCloud ► http://bit.ly/jake-day-soundcloud

★☆★ NOTES ★☆★

Comments

Troy Bradshaw says:

I love having background music in vids, great choice at the beginning

JumpinJacks says:

Which album was it playing at the end! 😀

AnonymousWS Toft says:

This happens when I try run it: ruby ages.rb
ages.rb:4: syntax error, unexpected tSYMBEG, expecting ‘}’
    :Johnson => 25,
     ^
endre-c1ml2d4cdty3:ruby elev$ 
 
why?

Jorge Cano says:

Hi Jake,

I’ve been trying to download/purchase your book. I’ve submitted by email twice on your site and it hasn’t sent me a link or anything. Any way you could help, or expedite the process?

Jameson Yount says:

Thanks for the videos I’ve watched 21 of the 24 in the last 24 hours and just wanted to give you props.  You’re videos are well organized and professional and I appreciate the effort you put into them!

Eduardo Lima says:

Loving the jazz too…. great haha

Starbite Productions says:

Loving the jazz.

Jake Day Williams says:

Hello Ariel, It’s Jake from Learn Ruby. Symbols are immutable. Mutable objects can be changed after assignment while immutable objects can only be overwritten.

Definition of Mutable: Liable to change.
Definition of Immutable: Unchanging over time or unable to be changed.

Here is a link with more details and examples that explain it perfectly and concisely. http://www.reactive.io/tips/2009/01/11/the-difference-between-ruby-symbols-and-strings/

Thanks for subscribing!

ariel peña says:

sir, in that case which is faster sym or str? or what is the benefit on use sym instead of str?

TheDerpCard says:

i was going nuts trying to figure out what i did wrong and i left out the coma on every one of them

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!