Ruby Programming - 4 - Formatting: capitalize, upcase, downcase, reverse, length

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 58

  • @tsenevir
    @tsenevir 10 лет назад +1

    Excellent set of videos. I am a programmer and coming with loads of C/C++ Java coding experience. My objective was to get up to speed and run. These articles met my objective. Also I think the material will help someone with minimum programming experience. Well Done!!.

  • @aditipaul6836
    @aditipaul6836 8 лет назад +4

    what is the difference between end and $end ?
    In Codeacademy i had to use end not $end.
    when to use which end?please explain me .
    thanks .

  • @rohandoghi4121
    @rohandoghi4121 8 лет назад

    I like how you motivate us while learning. You are the best tutor.

  • @ichigoflavored
    @ichigoflavored 10 лет назад +5

    thanks for these videos :) been learning about ruby alongside javascript. really enjoy your book recommendations too

  • @sachinpc
    @sachinpc 10 лет назад +2

    Love your videos! they are amazing because of the super interesting stories interspersed in your lessons. Btw I have been 16 years in the industry .. and still find your videos amazingly refreshing and inspiring!

    • @Jake-Day
      @Jake-Day  10 лет назад +2

      Thanks for letting me know you like the stories. I thought they would be a good way to diversify and breath life into the lessons. I plan to continue telling them. It would be cool to create programming lessons that are entertaining and informative like Vsauce and RadioLab.

  • @quecodamaniac3060
    @quecodamaniac3060 7 лет назад +1

    Why did you include the $end syntax ? @this part of the video 1:26 ?

  • @RajeevKumar-xd4gv
    @RajeevKumar-xd4gv 10 лет назад +2

    Thanks Jacob for your hard work.easy to understand.

    • @Jake-Day
      @Jake-Day  10 лет назад

      You're welcome Rajeev. Glad you're understanding it all.

  • @BudFieldsPPTS
    @BudFieldsPPTS 10 лет назад

    gotta love that up arrow on the command line, Jake! :) Thanks for the great tutorials.

    • @Jake-Day
      @Jake-Day  10 лет назад +2

      I was taking a lot of smoke breaks in these earlier ones.
      "This is overwhelming, I need a drag."

  • @z0mbiesquidman
    @z0mbiesquidman 10 лет назад +2

    Great tutorials!

  • @mickeymike8589
    @mickeymike8589 7 лет назад

    like how do we target two individual letters in the string ..... for example the 'a' in Han (which you told) and "l" of Luke??? plzzz help.....

  • @the-greatmedia6516
    @the-greatmedia6516 10 лет назад

    please keep the good work going ,hw can i get the paper back of your book as i don't have a kindle yet ? thanks

  • @LosTimeNeos
    @LosTimeNeos 10 лет назад +2

    Thanks for the video!

  • @satyahari65
    @satyahari65 7 лет назад

    Sir.. Ur lesson superb and small doubt why using end statement

  • @kapilbashani
    @kapilbashani 10 лет назад +1

    thank you man thanks a lot for these tutorials...

  • @michaelkarouzos
    @michaelkarouzos 10 лет назад

    i'm having a problem with [15]. it's returning the number 97 to me instead of targeting and returning the "a."
    do you know why this would be? thanks!

  • @GeorgeRawlings4444
    @GeorgeRawlings4444 10 лет назад

    Hello. Great tutorials. Really helping me out so thank you.
    6.37 How do you open and close a block bracket on mac? Really struggling to find it out. Probably a stupid question!
    Thanks.

  • @baddudesa-bomb1316
    @baddudesa-bomb1316 9 лет назад +1

    Is it necessary to leave an empty line after 2. , or he's just doing it because it looks better?

    • @faizbyp
      @faizbyp 7 лет назад

      BadDudes A-Bomb the blank line doesnt matter here. I have tested it without the blank line

  • @tylerbritton5007
    @tylerbritton5007 10 лет назад

    How do I capitalize the first letter of each word in a string? i.e. best_movie = "seven samurai" How would I capitalize both "s" to: print best_movie #=> Seven Samurai?
    Thank you for the videos!

  • @maksym_postument
    @maksym_postument 9 лет назад

    Can you give link to twitter book pls?

  • @leviblevi
    @leviblevi 9 лет назад

    I like your videos have a plus , those 'motivational' parts !

  • @citizensofwhiterun1847
    @citizensofwhiterun1847 7 лет назад

    why is it that when we end this code we have to put "$end" the money symbol as opposed to the other tutorials that just ended the code with "END"?

  • @lekebilen1
    @lekebilen1 10 лет назад

    Heyy love your vids! just wondering how u make that S in send

    • @Jake-Day
      @Jake-Day  10 лет назад

      Don't worry about $end. It isn't necessary.
      ps. It's a dollar symbol.

    • @Autoshotjosh
      @Autoshotjosh 9 лет назад

      Wild Academy I typed end instead, and it told me it was expecting $end could you explain why please?

    • @chevyman882
      @chevyman882 9 лет назад

      Autoshotjosh when you type end, it expects the $ in front of it, but you don't need it at all. Just take the whole entire line out:
      1.my_name = "name"
      2.puts my_name.capitalize
      3.puts my_name.upcase
      4.puts my_name.downcase
      5.puts my_name.reverse
      6.puts my_name.length
      and save it and transfer it to your command prompt with Ruby. He just put the $end in there for tutorial purposes.

    • @chevyman882
      @chevyman882 9 лет назад

      Autoshotjosh when you type end, it expects the $ in front of it, but you don't need it at all. Just take the whole entire line out:
      1.my_name = "name"
      2.puts my_name.capitalize
      3.puts my_name.upcase
      4.puts my_name.downcase
      5.puts my_name.reverse
      6.puts my_name.length
      and save it and transfer it to your command prompt with Ruby. He just put the $end in there for tutorial purposes.

    • @Autoshotjosh
      @Autoshotjosh 9 лет назад

      chevyman882 Thanks!

  • @mickeymike8589
    @mickeymike8589 7 лет назад

    whats the difference between end and $end????

  • @AdilJawed
    @AdilJawed 10 лет назад +2

    why we used $end here ?

    • @Jake-Day
      @Jake-Day  10 лет назад +4

      I made a mistake. $end means the end of the file, rather than an operation. Often when an "end" is missing Ruby will return the message "unexpected $end, expecting keyword_end." This means that the parser reached the end of the file while it was looking for the word "end". I told ruby it was the end of the file. Which was fine in this case because we weren't inside any open-ended statements. Loops for instance. Thanks for calling it to my attention Adil. I will annotate the correction.

  • @abinayaselvaraj7959
    @abinayaselvaraj7959 6 лет назад

    hi...how to capitalize the first letter of each word in a string while the rest of the characters retains it's case

  • @princelisy1765
    @princelisy1765 6 лет назад

    What is the purpose of send

  • @lokeshsai2459
    @lokeshsai2459 5 лет назад

    I am new to ruby programming and my question is how to convert the given string from the user into an array.

  • @longb1913
    @longb1913 8 лет назад

    Do you really need to put '$end' at the bottom of the code? I didn't do this and every worked just fine, I thought you only need to put that at the end of functions/methods...

  • @36tonystarks
    @36tonystarks 10 лет назад

    You're the man bruh

  • @Palacios151
    @Palacios151 9 лет назад

    can some one explain to me why he ended the program with $end instead of just end.

  • @robbeck5380
    @robbeck5380 6 лет назад

    #!/usr/bin/env ruby
    star_wars_seven = "Jar Jar Binks Han Solo Luke lens flare"
    puts star_wars_seven [15]
    execute run returned 97 not a ????
    can you tell me what i did wrong

  • @dpschof9063
    @dpschof9063 8 лет назад +1

    little did he know star wars 7 The force awakens would come out in 2015 and it has Luke and han solo

  • @gauchoconponcho
    @gauchoconponcho 9 лет назад

    SMAILLIWYADEKAJ hahaha, such a great pronunciation!!

    • @Jake-Day
      @Jake-Day  9 лет назад

      Haha. I freakin' nailed it. :D

    • @gauchoconponcho
      @gauchoconponcho 9 лет назад +1

      Wild Academy haha, it's great!!, I wanted to thank you for uploading this videos, they're amazing!! Keep up the good work!!

  • @herr_pouya
    @herr_pouya 8 лет назад +1

    Ruby look like Perl

  • @robertmr3103
    @robertmr3103 6 лет назад

    If you show the real applications of ruby, it will be more helpful!

  • @DiagandFix
    @DiagandFix 10 лет назад +4

    noone cares about the founders of twitter...

    • @Jake-Day
      @Jake-Day  10 лет назад +4

      I do.

    • @DiagandFix
      @DiagandFix 10 лет назад

      It's just frustrating trying to learn this stuff and then having useless information along with it

    • @Jake-Day
      @Jake-Day  10 лет назад

      Andrey Prikhodko Well, you're going to have a lot of frustrations being a developer. The book does have useful information in it.

    • @m3tafunj
      @m3tafunj 10 лет назад +2

      I have to disagree. I find all that info really interesting.

    • @jchoo157
      @jchoo157 10 лет назад +3

      You're seriously complaining about him giving out interesting facts in a FREE tutorial video he's kind enough to share? Stop whining and just appreciate. Douche-bag.