Strings in Ruby Discussion
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"
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" ) )