Today we learn about arrays and what they’re good for. Your adventure in programming is just getting started and it’s about to get even funner.
★☆★ 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 ★☆★
Starting with this lesson you will begin to understand the ethos of programming languages. Do not worry if you don’t have a perfect understanding just yet. Going forward the pieces to the puzzle will begin to fall in place. We talked about this a little is the first and second episode; the need to keep pressing forward. If you ever feel a little confused on a method, do not spend too much time trying to fully grasp it. Just keep moving forward through the lessons. It’s in retrospect that you will begin to understand what these methods are capable of accomplishing. We will stumble upon instances that make you go “oh yes, I think I remember hearing something about this. I swear there is a way to do this.” That’s when you’ll either get it, or look around until you stumble upon that concept again. That’s when you pat yourself on the back.
Amazon Auto Links: No products found.
You really love sting more than string. lol. Very awesome videos though. thanks!
I’m enrolled in dev bootcamp and your videos are pulling me through it! So glad I found your videos!
sounds like you like dr. Pepper 🙂
should we be memorizing everything as we go through each lesson, or is a basic understanding for each concept fine?
You know of course you do not have to drag the file to the command prompt every time right? You can just press the up arrow and enter to execute the same file, even after it is saved.
+Jacob Williams or anyone who knows. I’m trying to target certain letters within a target to capitalize. For example when i write mountain dew I want to target the m and the d to capitalize when i execute the variable.
Just getting into Ruby and your videos make everything easier to understand! Thank you for this resource!
It would be a Real Good Thing to have a condensed form of these tutorials for people who are already familiar with most programming concepts (I can see reasons for both, no argument).
I have been programming for a very long time, and, for me, you could cover these topics in 1/10th the time and I’d absorb it just fine.
No snub of people who need more time and input, it’s a matter of both experience and natural feel for programming.
for -2 it gave me orange soda instead of dr pepper
Hi Jake. I programmed in proprietary languages for years then quit to raise a gaggle of kids. I’m coming back because it’s in my blood. Your videos are excellent and very easy to follow. Basic and easy. Thanks for putting them up!
I dont understand why montain dew is the in the [2] should it not be coke?
I could not resist changing Dr. Pepper to Barqes Root Beer at 10:50.
Just want to thank you for making these very helpful videos and putting humor with them (yeah the sting one haha)
I’m a beginner in programming and ruby seems to be an interesting language to learn and you’re right, learning other languages is a good idea…
Thank you so much for your videos – can you explain why soda_type[2] on line 10 returns “mountain dew” from the array and not integer 6? First I thought that the numbers added to calling an array referred to each letter, not each word, like soda_type[2] would refer to the “p” in sprite! But then when I realize they refer to the words not the letters I expected it to be the second entry in the array…but when I saw mountain dew I assumed it skips integers and sticks to strings? except then … why is Dr.Pepper [4] and not [3]??
Quick Question, I have noticed that sometimes you put $end at the end of your .rb files and sometimes you don’t. What is the purpose of $end? Does it only serve its purpose with certain script lines?
can you create an empty array in Ruby simply typing new_array = []
Thank you! Helped out a lot!
Can you upload all your vids into one?
Jacob, thanks a lot for these videos. I am new to programming and your videos are making it really easy to learn Ruby! Keep up the excellent work!
great one thanks. You might want to edit out the file pull ins. In linux console its simply up cursor.
Why do you choose 1.9.3? I have a mac does that matter?
Wow the array can contains string, integer and float type data, I’m amazed yet a bit confused.. Haha I mean this ruby is very flexible than C++, who agreed with me ? And it’s kind of fully object oriented from the beginning, am I right ?
Wew exciting..
@ 9:21
Why wouldn’t you go with….
soda_type = [“sprite”, “coke”, “pepsi”, “dr. pepper”]
puts “Your favorite drink is #{soda_type[3].capitalize}”
=> Your favorite drink is Dr. pepper
Not perfect but it takes less time and is cleaner.
Thanks
Hey I love the sweet videos, very professional and entertaining. GREAT JOB!
-a usc computer science student
if u dont want drag and drop u can use up arrow key in command prompt guys 😀
What is the symbol/command that you would use if you just wanted to put notes there for yourself?
The puts “# (soda type[4]) tastes” doesn’t work for me. It still thinks its a string. I tried both { and ( with and without the space between the #
I’m just learning ruby (previous dabbling with it over at codecademy) and never knew you could get a item in a array starting from the end of it. That’s awesome!
its understandable
Another way to put the plus sign is puts num1 + ” + ” + num2
After working with the method in a string concept I found that it has to be the # symbol with curly brackets,
example: puts “#{soda_type[4]} tastes delicious!”. I could not get it to work with normal brackets. Maybe this was updated in one of the current Ruby releases? Thanks for the great videos.
Great videos!
You are talking very slow, it is great for beginners anyway. Just for the fact, I am watching your videos at 1.5x speed lol