After searching for what seemed like hundreds of C# beginner intro tutorials so I understood basic stuff so I could get more confident in diving into the docs, I wanted to say that this series has been a lifesaver. You two are great at what you do. Don't stop! Keep making even more tutorials together whether it be certain things about C# or continuing this series. You two just have such a great chemistry where you switch roles between student and teacher and often ask questions to each other we are thinking to ourselves while we are learning. Fantastic job guys.
Best part about this video is “IEnumberable is the question and not the answer.” Such a great point, and helps to understand the movenext concept under the covers.
Thank you I'm coming from TypeScript and Java and the basic concepts are same but you guys explain details, syntax sugar and etc really well. I wish Blazor is also that easy as React.
Is LINQ slower in operation than simply iterating through the original list? For most instances I guess it doesn't matter but for a larger dataset and perhaps several where clauses is it significant?
i don't know why, it will ber very readable if the LINQ Query update to "select score in scores where score > 80 order score descending" because it use multiple time "score" from score, at the end select score. uhh so weird 😒
It's easier to look at it as: the from clause includes, the where clause excludes, the select clause outputs. Or, the from clause decides which box we are getting from, the where clause filters what's in the box, and the select clause shows us the results. Using that paradigm, the select clause should come last, because it is the last operation.
List names = ["Sam", "John", "Xavior", "Ash", "Mick"]; names.Sort(); IEnumerable namesQuery = from name in names select name; Console.WriteLine($"There are {names.Count()} names"); foreach (string s in names) { Console.WriteLine($"The name {s} has {s.Length} letters "); } this was really fun to write but how do i get only name with more than like 4 letters
Inside your foreach, you can add an IF statement enclosing the console writeline foreach (string s in names) { *if(s.Length > 4)* Console.WriteLine($"The name {s} has {s.Length} letters "); }
After searching for what seemed like hundreds of C# beginner intro tutorials so I understood basic stuff so I could get more confident in diving into the docs, I wanted to say that this series has been a lifesaver. You two are great at what you do. Don't stop! Keep making even more tutorials together whether it be certain things about C# or continuing this series. You two just have such a great chemistry where you switch roles between student and teacher and often ask questions to each other we are thinking to ourselves while we are learning. Fantastic job guys.
Best part about this video is “IEnumberable is the question and not the answer.” Such a great point, and helps to understand the movenext concept under the covers.
Congratulations David and Scott for this material. The way you explain all these concepts so simply is just amazing! You guys rock!
Thank you I'm coming from TypeScript and Java and the basic concepts are same but you guys explain details, syntax sugar and etc really well. I wish Blazor is also that easy as React.
Grazie mille per questa lezione!
part 16. till this part i didn't see any ads appears in video 😂. what a focus learning 🤗
I'm a senior dev I don't know how LINQ works hahaha thank you !
what
what
Thank you Gentlemen!
Is LINQ slower in operation than simply iterating through the original list? For most instances I guess it doesn't matter but for a larger dataset and perhaps several where clauses is it significant?
LINQ is faster. In most instances, the speed it not really noticeable anyway.
i don't know why, it will ber very readable if the LINQ Query update to
"select score in scores
where score > 80
order score descending"
because it use multiple time "score" from score, at the end select score. uhh so weird 😒
It's easier to look at it as: the from clause includes, the where clause excludes, the select clause outputs. Or, the from clause decides which box we are getting from, the where clause filters what's in the box, and the select clause shows us the results. Using that paradigm, the select clause should come last, because it is the last operation.
they're so cool
First time hearing David Fowler talk... definitely not what I was expecting him to sound like 😅
But great lesson though.
😅
List names = ["Sam", "John", "Xavior", "Ash", "Mick"];
names.Sort();
IEnumerable namesQuery =
from name in names
select name;
Console.WriteLine($"There are {names.Count()} names");
foreach (string s in names)
{
Console.WriteLine($"The name {s} has {s.Length} letters ");
}
this was really fun to write but how do i get only name with more than like 4 letters
Is Linq still applicable if you use Strings like me?
Inside your foreach, you can add an IF statement enclosing the console writeline
foreach (string s in names)
{
*if(s.Length > 4)*
Console.WriteLine($"The name {s} has {s.Length} letters ");
}
good stuf