C#: The Basics of Strings [3 of 19]

Play C#: The Basics of Strings [3 of 19]

The Discussion

  • User profile image
    askepot
    This is an interesting subject, and I'm very eager to learn! But what is the target demographic for this course? It's labelled as an intro to the world of C# and .NET but some of the "cutesy" comments give the impression of addressing 10-year-olds new to programming. "Oooh" and "aaah" have no place in a programming introduction/tutorial aimed at anyone over 15.

    And comparing strings to a friendship bracelet??? Oh please...

    I'll try to stick with it to no. 19, but I can't promise anything...
  • User profile image
    Chris

    I am fine with the "cutesy"-ness. I expect many people (young and old, experienced and beginners) will come here to learn C#, and this video was fun and engaging.

    I started watching these videos to see if they'd be good to share with a friend who's brand new to programming. Though it's hard to tell whether the target audience is beginners, or those with some programming experience, I think that both audiences can get what they are looking for in these videos.

    Thanks for putting these together!

    Besides, I think we could all use a few more friendship bracelets in our lives.

  • User profile image
    Tim

    chris i don't know who that first clown is on the reviews. keep up good work

  • User profile image
    siralomarah​med
    I just want to point out that, Mr. Hanselman definition of strings actually gives a clear presentation of how they are created, or came to be.

    Strings are just a sequence of characters, one character after the other. The bracelet example explains that the letters of a name is placed together in sequence with one line.

    The addition of Ms. Havens about the string literal explaining it as the ties at each end of the bracelet line is very descriptive indeed.

    A nice explanation of Strings and String literals.

    Another thing, a property and a method are two different things. It would be better if there was a brief explanation about the subject.
  • User profile image
    Hari7298
    What is dollar $ symbol represents in the line Console.WriteLine($"My Friends are {firstFriend} and {secondFriend}");
  • User profile image
    siralomarah​med
    @Hari7298:

    '$' is a special character that represent string interpolation in this example. String interpolation is an easier and cleaner way to create strings that have references inside them such as variables. In the example "firstFriend" and "secondFriend" is the referenced variable enclosed in curly braces.

    You can also use string concatenation to create a similar effect on the output string. String concatenation uses the '+' plus sign. This concept was explained on the second video at min 3.

Add Your 2 Cents