Also, you should be using Async, firing up threads and such is not good practice, specially when we have async that is developed to handle multi threading!
OK, I'll look into async. The threads ended up being totally unnecessary as we didn't even talk about threads on this assignment. I have no idea why I thought we'd have time to cover so much.
C# is very structured, I find when people place the open bracket on the same line as the field/statement looks clustered! Also to make the most out of coding c#, use VS2022, far superior, better debug!
I guess I should put this in the video description. I'm trying to make an assignment that is somewhat interesting, that students can run on a variety of different types of laptops, and that they can do with only 3 weeks of C# after a year of Java. If I were writing "real" C# code I would need to do many things differently, starting with writing a lot more C# code myself to build up my skills. Anyway, thanks for your comments!
Yeah, that's true, but all of the students are coming from Java, so I wanted to show them code that looks like Java. I should put a disclaimer that this assignment hits students at a particular point in their education, and should not be considered a good example of C# code.
Also, you should be using Async, firing up threads and such is not good practice, specially when we have async that is developed to handle multi threading!
OK, I'll look into async. The threads ended up being totally unnecessary as we didn't even talk about threads on this assignment. I have no idea why I thought we'd have time to cover so much.
C# is very structured, I find when people place the open bracket on the same line as the field/statement looks clustered! Also to make the most out of coding c#, use VS2022, far superior, better debug!
I guess I should put this in the video description. I'm trying to make an assignment that is somewhat interesting, that students can run on a variety of different types of laptops, and that they can do with only 3 weeks of C# after a year of Java. If I were writing "real" C# code I would need to do many things differently, starting with writing a lot more C# code myself to build up my skills. Anyway, thanks for your comments!
If your using the latest c#, no need to do backing fields, they are done for us with properties!
Yeah, that's true, but all of the students are coming from Java, so I wanted to show them code that looks like Java. I should put a disclaimer that this assignment hits students at a particular point in their education, and should not be considered a good example of C# code.
Anyway, thanks for your feedback! It's always interesting to see that people other than my students sometimes find and watch these videos!