Gets index out of range exception : "You told me to read these things ... but i'm just gonna panic and not read" Me: 🤣😂 You guys are the best at teaching concepts!!!!
Python is great for this. JS sucks not having introduced such things... edit: In fact, I still wonder why not doing the exact same thing as in another language, if it's already working well. As in python [2:4] [-2]...
Another difference again... destructuring only 2 points. lol. Without autocomplete, it would be a nightmare between several languages. heil IA! instead of creating unity, men create division. I can't wait when language will be done by IA to be intuitive for humans. and why not using the spread operator on lists too... homogenization ! imagine it's done around 2024 when it seems that basic and simple stuffs are the most essential! But Bill Gates is not there anymore, things can evolve again... Sad he is now dealing with depopulation...
2:25 [Ctrl] + [/] is a better commenting hotkey, albeit the one in the video is good to know b/c it is used in other Microsoft platforms such as SSMS.
Gets index out of range exception
: "You told me to read these things ... but i'm just gonna panic and not read"
Me: 🤣😂
You guys are the best at teaching concepts!!!!
Never thought I'd end up ROFLing while learning how to code
These lectures are great
Amazing Tips guys need to see more
Excellent teachers
2:54
Read errors
4:13
var names = new List { "Some", "Name", "LastName" };
Console.WriteLine(names[1]);
Console.WriteLine(names[names.Count - 1]);
Console.WriteLine(names[^1]);
Console.WriteLine(names[^2]);
foreach (var name in names[..^2])
Console.WriteLine(name);
i dont know if im learning c#, how to use vs code or learning english. (im brazilian)
Foda
4:25 "hat tuah"
why can't i say names.length-1? why count-1?
It depends on the object being used. You just have to know which is implemented. Luckily, the editor will help you figure that out.
you use .Length for arrays and .Count for lists
Python is great for this. JS sucks not having introduced such things...
edit: In fact, I still wonder why not doing the exact same thing as in another language, if it's already working well. As in python [2:4] [-2]...
names[^2] looks weird, names [-2] is more cleaner
[-2] is not working in C# sadly, so that's why they used [^2]
@@DasDron my keyboard doesn't even have this ^ character
@@helkade num 6 (shift + num6 = ^)
Another difference again... destructuring only 2 points. lol. Without autocomplete, it would be a nightmare between several languages. heil IA! instead of creating unity, men create division. I can't wait when language will be done by IA to be intuitive for humans. and why not using the spread operator on lists too... homogenization ! imagine it's done around 2024 when it seems that basic and simple stuffs are the most essential! But Bill Gates is not there anymore, things can evolve again... Sad he is now dealing with depopulation...