CS 208 C# webserver #3

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 7

  • @ServantKing72
    @ServantKing72 Год назад +1

    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!

    • @jaimespacco924
      @jaimespacco924  Год назад

      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.

  • @ServantKing72
    @ServantKing72 Год назад

    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!

    • @jaimespacco924
      @jaimespacco924  Год назад

      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!

  • @ServantKing72
    @ServantKing72 Год назад

    If your using the latest c#, no need to do backing fields, they are done for us with properties!

    • @jaimespacco924
      @jaimespacco924  Год назад

      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.

    • @jaimespacco924
      @jaimespacco924  Год назад

      Anyway, thanks for your feedback! It's always interesting to see that people other than my students sometimes find and watch these videos!