New Discussion

Notifications

You’re not receiving notifications from this thread.

Strings in Ruby Discussion

9
General

Thanks for this lesson

Thanks for watching, Carlos!

Awesome! Thanks Collin! Looking forward to reviewing 'String' instance methods!
(https://ruby-doc.org/3.2.2/String.html)

I appreciate your focus on good terminology! : )

Summary of Topics:

  • Single and double quotes
  • Escaping characters
  • Interpolation
  • String class vs String literals
  • Concatenation
  • String instance methods with arguments
  • String predicate methods => returns a boolean response
  • Method chaining
  • String indexing (zero-based indexing)

It's so cool that Adam Driver is teaching Ruby now

It's a lot of work going back and forth but oh the things we do for love ;)

Can you share the link to the video? Thanks in advance.

Which link are you looking for?

Well the video is on YouTube, there is a button "watch on youtube"

puts "great work".upcase

In this lesson you tell about brackets usage for better understanding that methods take arguments.
puts "text".count "a" - looks like syntax sugar, and it seems like this can lead to misunderstanding in the future.
Does it make sense to do it like in the following example instead?
puts( "text".count( "a" ) )

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 88,440+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.