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

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours