This tutorial was fun as advertised. Thank you. I noticed that we could compare at least, 3 lists, using Except and Intersect. Are the lists compared, then 'string.Join'(ed) or joined then compared? For other beginners like me, this is an example of Intersect for three lists... it worked for me: var numList9 = new List() { 1, 2, 3, 2, 3 }; var numList10 = new List() { 2, 3 }; var numList10a = new List() { 2, 3, 4 }; Console.WriteLine($"second list 2,3,4; first list 1, 2, 3, 2, 3; third list 2, 3, 4; Intersect of all three lists : " + $"{string.Join(", ", numList10.Intersect(numList10a).Intersect(numList9))} ");
This is really powerful stuff. I use C# lambdas for everything. I've been using extension methods of IQueryable to build complex queries by chaining reusable chunks of lambdas. This seems to work great with EF deferred execution and helps abstract my business logic from the legacy db I'm working with. Also a tip for someone writing to console a lot: type "cw" + TAB + TAB is a snippet shortcut for Console.WriteLine.
Great video! Helped me understand LINQ code a lot better. Just a small comment on Except(), it returns the set difference of the first list minus the second list (so it's like Distinct() plus also getting rid of the elements in the list argument for Except()). ...same for Intersect() too (returns the set of intersected elements).
@@derekbanas I believe where also returns an IEnumerable so you can use count() straight on that, no need to use ToList(). But Franci's solution is indeed the most elegant one.
Derek, you are the best teacher on TH-cam! I love the way you present information! Are you considering making a video about ReactJS? It looks pretty darn cool!
(Hoping to learn something extra here..) Why did you need to use AsQueryable() when working out the average as Average() sits under the Enumerable class. If you removed the AsQueryable() call and just used .Average() it would have worked, Love the videos as always!
That's because I didn't do it. You were the only person that asked for it so I would have been very lonely :) I'm finishing Inside tonight no matter how long it takes!
Derek, thank you again for taking time to make this video. Can you recommend any literature or youtubers to learn more about web frameworks (ReactJS, html, css)? Thank you so much!
I'm happy you liked it :) Sorry I don't watch other tutorials on TH-cam because I don't like to be influenced. I'm sure the top search results should be good. Amazon is also pretty good at recommending good books.
Derek Banas thanks Derek. You are my go to source for general programming. Love the tutorials. I tell people at my university who need help to watch you
hello Derek, a indeed very interactive video and a very efficient information projeecting, keep the good work. Anyway I was thinking of asking you maybe to start a series about how to build a IOS app? If , of course, you can do it. that would be much appreciated and I think most of us agree that it would amazing to have it.Please share your feedback
Hi Derek. Thank you for another tutorial. I can devote 3 hours a day. Can you please tell me how do I get entry level job as a mobile developer using Xamarin. How long it may take to get skilled if I follow your tutorials regularly?
Hi, I always got jobs by finding people that worked where I wanted to work. I'd ask them what skills I needed, who I should talk to about getting a job, what is asked in interviews, etc. I'll get to Xamarin soon. I personally am I consultant and I don't call myself a Xamarin developer, but rather a mobile developer.
Most of these seem to map to Scheme higher order functions, like map and filter. In the case of aggregate, is a it a foldr or foldl or does it not matter? I see you picked sum but something, like subtract or join, would have vastly different results depending on the order of operation. Any ideas?
Nice video as always Derek :) I was wondering when are you going to upload the swift tutorial and are you still planning to do linux videos? I'm okay with everything you upload :)
I have seen this project before. However, I'm looking more for a video tutorial that helps me to create an interactive map on the web by using API platform (like Google maps Leaflet or OpenLayers).
Why is there a small second cursor when you zoom in? Its really annoying :D Its like when somebody takes up two parking spaces for one car, nothing harmful, but annoying :D :D... amazing videos btw
No C++ doesn't have the tools that make it easy to develop desktop apps, mobile apps, or games. C++ is best used for low level hardware. C++ is made for making graphics engines, but there is no reason to make a graphics engine when you can use someone elses.
AFAIK, count() is a Linq extension method (meaning you need Linq as a dependency) and Count is a property of ICollection (which List implements). If you call Count() method on something that implements the Count property, it returns the Count property. If it doesn't implement Count property, then it will just iterate through the collection and count the objects. This might explain more: stackoverflow.com/questions/4098186/lists-count-vs-count
Hello Derek How you switch on this lines vertical and horizontal which help to see if brackets are in right position? drive.google.com/file/d/0BwOXByyTdDDGX0ZKZTVpcUx2c2c/view?usp=sharing
This tutorial was fun as advertised. Thank you.
I noticed that we could compare at least, 3 lists, using Except and Intersect. Are the lists compared, then 'string.Join'(ed) or joined then compared?
For other beginners like me, this is an example of Intersect for three lists... it worked for me:
var numList9 = new List() { 1, 2, 3, 2, 3 };
var numList10 = new List() { 2, 3 };
var numList10a = new List() { 2, 3, 4 };
Console.WriteLine($"second list 2,3,4; first list 1, 2, 3, 2, 3; third list 2, 3, 4;
Intersect of all three lists : " +
$"{string.Join(", ", numList10.Intersect(numList10a).Intersect(numList9))}
");
I don't miss a single video even on my holiday.
Thank you Derek
I greatly appreciate that :)
This is really powerful stuff. I use C# lambdas for everything.
I've been using extension methods of IQueryable to build complex queries by chaining reusable chunks of lambdas. This seems to work great with EF deferred execution and helps abstract my business logic from the legacy db I'm working with.
Also a tip for someone writing to console a lot: type "cw" + TAB + TAB is a snippet shortcut for Console.WriteLine.
Yes I love all the awesome tools that come built into C# :)
Great video! Helped me understand LINQ code a lot better. Just a small comment on Except(), it returns the set difference of the first list minus the second list (so it's like Distinct() plus also getting rid of the elements in the list argument for Except()).
...same for Intersect() too (returns the set of intersected elements).
Thank you for the input 😁
Honestly, this is the best channel on youtube.
Thank you for the nice compliment :)
Silver. Wow that implementation of Lists really has a lot of power!
Thank you :) We're just getting started with manipulating lists
You could simplify flipList.Where(a => a == 1).ToList().Count() to flipList.Count(a => a == 1).
But then I couldn't use where :) Sorry I was just looking for an excuse to use it. Thank you for sharing
@@derekbanas I believe where also returns an IEnumerable so you can use count() straight on that, no need to use ToList(). But Franci's solution is indeed the most elegant one.
Thank you for doing these. The possession from simple to complex cases is very helpful.
Thank you :) I'm happy you like them
Derek, you are the best teacher on TH-cam! I love the way you present information! Are you considering making a video about ReactJS? It looks pretty darn cool!
Thank you for the compliment :) Yes it is on my list. I want to cover Xamarin first and then I'll present React
Great video! But I think I missed a lesson, which video talked about predicates? Thanks!
(Hoping to learn something extra here..)
Why did you need to use AsQueryable() when working out the average as Average() sits under the Enumerable class. If you removed the AsQueryable() call and just used .Average() it would have worked,
Love the videos as always!
This is late - but you don't :) Lists already implement IEnumerable - and linq expressions work on IEnumerable and IQueryable
What do you need AsQueryable for? When you were looking for the average number?
I truly appreciate your free videos thank you
Thank you very much :) I'm glad you like them
Hey Derek! Thanks for all these amazing videos!
Thank you :) I'm happy you like them
Missed your game play on Sunday. But I had a field time installing Django - so it made up for most part - LOL Have a nice week Derek
That's because I didn't do it. You were the only person that asked for it so I would have been very lonely :) I'm finishing Inside tonight no matter how long it takes!
That's the spirit ! Looking forward to it :)
Silver. Thanks Derek!
Nice video.
I usually find converting everything to a list though isn't worth the overhead.
Thank you :) Yes I tend to cover everything whether it is always the best to do or not
Haha. I noticed. I used to do that a lot too. I was in love with them. I used them everywhere.
Thanks you so much Derek
Thank you for watching :)
linq methodları senle öğrenmek çok güzel.
Your tutorials are awesome like always
Thanks man :)
Thank you very much :)
Could you please create and share a video on smalltalk Pharo.
Thanks for all the awesome lessons.
Thank you :) I'll see what I can do
Thank you very much for uploading!
I'm very happy that you liked it :)
That was very helpful, thanks!
Happy I could help :)
Silver. Two thumbs up!
Thank you for doing that :)
Hi Mr Banas you said for us to create a triangle class for the last vid but you seemed to create it of t type also ?
Good one as usual.
Derek, thank you again for taking time to make this video. Can you recommend any literature or youtubers to learn more about web frameworks (ReactJS, html, css)? Thank you so much!
I'm happy you liked it :) Sorry I don't watch other tutorials on TH-cam because I don't like to be influenced. I'm sure the top search results should be good. Amazon is also pretty good at recommending good books.
Derek Banas thanks Derek. You are my go to source for general programming. Love the tutorials. I tell people at my university who need help to watch you
Thank you very much for telling others :)
Best tutorials, thank you.
Excellent vid!
Thank you :)
hello Derek, a indeed very interactive video and a very efficient information projeecting, keep the good work.
Anyway I was thinking of asking you maybe to start a series about how to build a IOS app? If , of course, you can do it.
that would be much appreciated and I think most of us agree that it would amazing to have it.Please share your feedback
Thank you :) I'll start making iOS apps very soon using Xamarin
That envelope (7:50) reminded me of loading screens in some old war related game (Medal of Honor or Call of Duty), anyone else?
Hey Derek, do you think you could do a MATLAB tutorial?
Yes it is on the list
Is there a programming language you don't know?
Hey Derek, do you already know when Xamarin is coming? btw, awesome tut!
Thank you :) I'm not sure if I'm covering MonoGame or Xamarin next. I may hold a vote
Derek Banas Ok, cool
excellent video!! learned a lot from it! make some more please :)))
I'm happy to help :)
make a video about bubble sort, thats the thing that is most difficult at least for me
I cover the bubble sort here in Java which is pretty easy to translate into C# th-cam.com/video/JUOyKSZScW0/w-d-xo.html
Would you be able to cover Streams at some point ? They've been confusing me recently.
Yes for sure :)
Hi Derek. Thank you for another tutorial. I can devote 3 hours a day. Can you please tell me how do I get entry level job as a mobile developer using Xamarin. How long it may take to get skilled if I follow your tutorials regularly?
Hi, I always got jobs by finding people that worked where I wanted to work. I'd ask them what skills I needed, who I should talk to about getting a job, what is asked in interviews, etc. I'll get to Xamarin soon. I personally am I consultant and I don't call myself a Xamarin developer, but rather a mobile developer.
Most of these seem to map to Scheme higher order functions, like map and filter. In the case of aggregate, is a it a foldr or foldl or does it not matter? I see you picked sum but something, like subtract or join, would have vastly different results depending on the order of operation. Any ideas?
Nice video as always Derek :) I was wondering when are you going to upload the swift tutorial and are you still planning to do linux videos? I'm okay with everything you upload :)
Thank you :) I can make a Swift tutorial fairly easy. I just need to fit it in the schedule. Sorry for the wait
+Derek Banas It's okay:) Thank you very much though.
awesome video like always thanks :)
Thank you very much :)
I am glad to have a teacher like you
Thank you :) I'm happy you find the videos useful
Pretty Cool
Thank you :)
Love your videos
Thank you very much :)
Hi Derek, Could you please do tutorials with Google maps API
Hi Jacob, Have you seen this www.codeproject.com/articles/32643/gmap-net-great-maps-for-windows-forms-and-presenta
I have seen this project before. However, I'm looking more for a video tutorial that helps me to create an interactive map on the web by using API platform (like Google maps Leaflet or OpenLayers).
can you please please make a series on how to make a game engine(with some gui like the paint app )
I'll see what I can do. I already have a How to Make Video Games tutorial series
hi derek big fan will you do delphi video
Thank you :) It is on the list
Why is there a small second cursor when you zoom in? Its really annoying :D Its like when somebody takes up two parking spaces for one car, nothing harmful, but annoying :D :D... amazing videos btw
Thank you :) Sorry my capture software has a bug. I'd use something else, but they all seem to have one problem or another.
Silver!
What are all programming languages to know to make an application or game on PC and what programming languages to make a game on Android
The answer to both questions in my opinion is C#. I'll be making apps and games with C# very soon
Derek Banas how cross platform is c#?
Derek Banas also isn't c++ a better option?
You can develop for any platform with C#
No C++ doesn't have the tools that make it easy to develop desktop apps, mobile apps, or games. C++ is best used for low level hardware. C++ is made for making graphics engines, but there is no reason to make a graphics engine when you can use someone elses.
Is there a difference between count and count() ?
AFAIK, count() is a Linq extension method (meaning you need Linq as a dependency) and Count is a property of ICollection (which List implements).
If you call Count() method on something that implements the Count property, it returns the Count property. If it doesn't implement Count property, then it will just iterate through the collection and count the objects.
This might explain more:
stackoverflow.com/questions/4098186/lists-count-vs-count
Silver! :D
Thank you for doing that :)
Code Snippet is not opening !!
could u reshare the code link here..
Silver
Thanks for watching the whole video :)
Silver :)
Thank you for that :)
Hello Derek
How you switch on this lines vertical and horizontal which help to see if brackets are in right position? drive.google.com/file/d/0BwOXByyTdDDGX0ZKZTVpcUx2c2c/view?usp=sharing
I have line wrap turned on
Lambda? Pff... Sounds like Greek to me.
That's funny :)
Silver :)
Thank you :)