What’s New in C#?

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 54

  • @CodingHaribo
    @CodingHaribo 3 роки тому +4

    Always a pleasure to hear these two do a presentation of new C# features.
    These changes are very welcome, records and the "with" syntax are fantastic, even exciting contributions to C#.
    Thank you Dustin and Mads, and thank you to the C# language teams and contributors

  • @kameshp68
    @kameshp68 3 роки тому +3

    Thank you Dustin and Mads. its pleasure to hear the presentation of new C# features.

  • @kblyr
    @kblyr 3 роки тому +23

    The programming language that I loved... I'm loving it more

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 27 днів тому

    The love they have for their product is palpable.

  • @samuelschwager
    @samuelschwager 3 роки тому +20

    I like the main function, it tells me where the program starts ;) So top level statements are just useless syntactic sugar to me.

    • @SiddarthaKopparappu
      @SiddarthaKopparappu 3 роки тому +5

      Not only that, it gives you a sense that everything you do should be part of some class and in a function. that is what OOPS in C# was all about. now it seems like they are trying to loosen up all the rules

    • @alexanderruchkov7629
      @alexanderruchkov7629 3 роки тому

      @@SiddarthaKopparappu They're trying to make it as javascript as possible, or c?
      Whatever, I too am agree that it's not a cool feature they want it appear to be

    • @mzg147
      @mzg147 3 роки тому +1

      It's for learners, not experienced developers.

    • @JohnDoe-qn2ej
      @JohnDoe-qn2ej 3 роки тому

      @@mzg147 shouldn't a learner learn something the proper way first and then they can use this useless feature?

  • @annieorben
    @annieorben 3 роки тому

    Love the new features! I was confused by what the difference is between a init setter and a variable declared with a readonly modifier. A quick Google search returned the C#9.0 specification containing the motivation behind the feature. Love it! Less to type, less to read, and less that can go wrong. All great reasons!

  • @michaelthemanmalloy
    @michaelthemanmalloy 3 роки тому

    C# continues to shed its OOP legacy. I love it.

  •  3 роки тому +12

    Mads, I love your work, but when you're presenting to thousands of developers, maybe consider not doing it with a laptop microphone?

    • @anapatriciamartinez9898
      @anapatriciamartinez9898 3 роки тому

      Gracias ☺️😄💖

    • @natevb9901
      @natevb9901 3 роки тому

      It looked like he was presenting with one of those airpods or whatever you call the Apple iPhone flavored BT earbuds. Not any better, possibly worse for those of us with earbuds shoved into our ears instead of using the built-in speakers of our mobile devices because _nails on chalkboard_
      But the genius tier thinkers/do-ers tend to be absent minded or aloof negate their focus lies in making the next best thing

  • @andresviveros3994
    @andresviveros3994 3 роки тому

    I do front end development as a junior and want to learn backend but they use at my workplace ruby. Is c# a better language with more job opportunities

  • @leandrocasas90
    @leandrocasas90 3 роки тому

    Not sure whether I'm a fan of those inline record declarations or not...

  • @djmLexus
    @djmLexus 3 роки тому

    How about a 3-way 'if' for numerical values ()? Language could really use this.

  • @nunooliveira9465
    @nunooliveira9465 3 роки тому +2

    Remove the top level class...
    Why?
    What is the point...
    You cannot see the closing backet and absets you?
    Is that the hole idea of this new feature?

    • @Argbeil
      @Argbeil 3 роки тому

      No, that was a joke. The idea was, to simplify the language.

    • @nunooliveira9465
      @nunooliveira9465 3 роки тому

      ​@@Argbeil Why remove something that is used across different languages? C++, java...
      Removing things sometimes, doesn't mean simpler...
      Specially when you have the ability to use or not.

    • @Argbeil
      @Argbeil 3 роки тому +1

      @@nunooliveira9465 I dont' get your point. You're saying - it is not simpler. So this:
      using System;
      namespace HelloWorld
      {
      class Program
      {
      static void Main(string[] args)
      {
      Console.WriteLine("Hello World!");
      }
      }
      }
      is simpler than that?
      using System;
      Console.WriteLine("Hello World!");
      I really don't think so.
      Your're also saying that they should not remove ceremony-code that exists in other languages?
      Why not?

    • @Hasi29347
      @Hasi29347 3 роки тому

      You don't have to use the new syntax. You can keep using the old one. I think it's good thing to have two options here , no?

  • @amirchip
    @amirchip 3 роки тому +3

    IMO this language, which used to be simpler, got way to complicated and full of inconsistencies. I used to love this language so much and now I'm moving on to newer more modern languages that don't look like a bunch of patches glued together. So far, F# is my favorite.

  • @IBITZEE
    @IBITZEE 3 роки тому

    yep... that's nice... but just a small and anoretic code-candy...
    just allow the damn "TOP-LEVEL FUNCTIONS" we've have been waiting for so long...
    ah... and PUBLIC by default but accepting the PRIVATE directive (modulewise)
    oh... don't forget to provide a INLINE directive... sometimes is a must...
    if we are going for performance with refs+records... this is the next step!
    also if is not much to ask... how about a pre-processor that allow C-Like MACROS...
    whatever the newbies say,,, this is a great solution for... lots of problems (INLINE would mitigate this,,, but not replace)

  • @KISLAYMOHAN
    @KISLAYMOHAN 3 роки тому

    init setter feels like fusion of readonly property and parameterized constructor.

  • @polkduran
    @polkduran 3 роки тому

    merging F# into C# gradually :P

  • @МаксимЧистяков-ч7ц
    @МаксимЧистяков-ч7ц 3 роки тому +1

    I like the new switch condition, and some lambda functions. but record and others things.... I so much like generic types but there are no updates :(

  • @crist2000a
    @crist2000a 3 роки тому +2

    could not get rid of impression that c# 9 was developed by Python guys. If before I did not take much care what happens in IL but now I would.

    • @Qrzychu92
      @Qrzychu92 3 роки тому +1

      actually, it's "F# guys"

  • @philippelhaus
    @philippelhaus 3 роки тому

    Great Update

  • @voswouter87
    @voswouter87 3 роки тому

    Why is .NET not cls compliant?

  • @TheHako14
    @TheHako14 3 роки тому +6

    Do my idols really use the Light theme :( ?

    • @bigdummyhead2162
      @bigdummyhead2162 3 роки тому +1

      I am pretty sure they are using the experimental version of it

    • @zurvey
      @zurvey 3 роки тому +1

      Groan. Does the world really need another thing to look down on others about? Practically speaking, depending on the lighting in the room and the placement of windows, dark themes can be harder on the eyes than light.

  • @xbot1125
    @xbot1125 3 роки тому

    Ada back?

  • @raymondrizzuto7997
    @raymondrizzuto7997 3 роки тому +1

    Can I code in C# without a beard?

    • @Haapavuo
      @Haapavuo 3 роки тому +1

      No.

    • @kblyr
      @kblyr 3 роки тому

      It is a requirement you have to comply to.. So, it's a NO

  • @hbaldinr
    @hbaldinr 3 роки тому +1

    So record is basically what a Struct is? Why?

  • @acasualdatascientist54
    @acasualdatascientist54 3 роки тому +1

    I will create C#++

  • @marna_li
    @marna_li 3 роки тому

    There should be an option for having top-level statements (and make this default) when creating a new project.

  • @miraj0072004
    @miraj0072004 3 роки тому

    Seems as if C# and PlSQL had a baby

  • @17plus9
    @17plus9 3 роки тому +3

    Or just use F# …

    • @ondrejsvorc8175
      @ondrejsvorc8175 3 роки тому

      What for? Tell me some project, please.

    • @17plus9
      @17plus9 3 роки тому

      @@ondrejsvorc8175 What do you mean by project? There is a whole F# ecosystem, there are OS projects, and it's being used in the industry, though on a smaller scale.

    • @ondrejsvorc8175
      @ondrejsvorc8175 3 роки тому

      @@17plus9 I'm curious about the usage. What is F# better for than C#? What do industries use it for?

    • @17plus9
      @17plus9 3 роки тому +1

      @@ondrejsvorc8175 It has the right defaults everywhere, it's safer therefore. Its syntax is minimalistic. C# has a lot of boilerplate code and very verbose (ugly?) Java-like syntax.
      You would be even better off if you would just use F# like C# but with the improved syntax. For example: constructors, shorter functions, F# extensions, object expressions etc.
      F# is, for example, awesome for domain modeling, DDD, data exploration (REST, JSON, SQL, etc.) via type providers and so on.

    • @ondrejsvorc8175
      @ondrejsvorc8175 3 роки тому +1

      @@17plus9 Okay, thanks. :) I'll think about everything you've just said.

  • @fatihgenc7385
    @fatihgenc7385 3 роки тому

    Cool

  • @manojthecoder412
    @manojthecoder412 3 роки тому

    I spent 10 years in c# programming . lol.

  • @dpv.school1236
    @dpv.school1236 3 роки тому

    C# == F# -> true

  • @wiepcorbier
    @wiepcorbier 3 роки тому

    Again a lot of 'you know'. I hate it.