Why Developers Already Hate .NET 9

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • Use code MODULAR20 and get 20% off the brand new "Deep Dive into Modular Monoliths" course on Dometrain: dometrain.com/...
    Become a Patreon and get special perks: / nickchapsas
    Hello, everybody, I'm Nick, and in this video, I will address the criticism of The Vision for .NET 9 blog that was posted by Microsoft a few days ago.
    Workshops: bit.ly/nickwor...
    Don't forget to comment, like and subscribe :)
    Social Media:
    Follow me on GitHub: github.com/Elf...
    Follow me on Twitter: / nickchapsas
    Connect on LinkedIn: / nick-chapsas
    Keep coding merch: keepcoding.shop
    #csharp #dotnet

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

  • @ErikLallemand
    @ErikLallemand 7 месяцев назад +298

    If C# developers unite, and if Microsoft laughs at them, we'll have a discriminated union.

    • @Nworthholf
      @Nworthholf 7 месяцев назад +7

      I really, really hope that will never happen. It defies the purpose of static typed language, just as keyed services defy the purpose of DI

    • @malisancube01
      @malisancube01 7 месяцев назад +2

      @@Nworthholf unless if keyed services are based on dynamically loaded modules, where the module may expect specific keys

    • @Mig440
      @Mig440 7 месяцев назад

      Java already has it so... maybe they can do it... though not quite in the same fashion i imagine in dotnet

    • @PierreH1968
      @PierreH1968 7 месяцев назад +1

      I wish some of the arrays, imaging, and data manipulation from python would be included.

    • @stefanalecu9532
      @stefanalecu9532 7 месяцев назад +10

      I feel like the people here in the comments missed your pun

  • @tvardero
    @tvardero 7 месяцев назад +77

    Year 2034, .NET 19 comes out. But we will still maintain vertically scaled .Net Framework 4.7.1 solutions.

    • @tvardero
      @tvardero 7 месяцев назад

      Actually, I should say that most of Azure income is by vertically scaled poop code up to Premium levels. I have worked on a solution with less than 20k users overall, and our team solved performance issues just... by switching to premium 3 tier ...
      No one in the team has heard of async code. No one has heard of caching and data reusability. No one is updating any package unless it shows up in owasp report.
      And we are a big company with many projects, all in azure.
      Just imagine how many other companies do the same.

    • @miendongthao
      @miendongthao 6 месяцев назад +2

      Lol 😂 I still maintain .Net FW 4.5

    • @chittadilsay1
      @chittadilsay1 6 месяцев назад

      Even I am with 4.5

    • @dmitri2366
      @dmitri2366 4 месяца назад

      God damn man im tired of that shit

    • @pabloespinoza9046
      @pabloespinoza9046 Месяц назад

      I just made some chamges to a solution made in 4.8

  • @marijnfeijten
    @marijnfeijten 7 месяцев назад +288

    "F# is a language that exists" 😅

    • @amsalamander7521
      @amsalamander7521 7 месяцев назад +17

      hopefully it will bring more attention in the future, it is better than scala in FP terms imo
      too sad microsoft doesn't give it enough love

    • @neociber24
      @neociber24 7 месяцев назад +2

      Does it really?

    • @szymonscholz4646
      @szymonscholz4646 7 месяцев назад +2

      gold 😆

    • @GlibVideo
      @GlibVideo 7 месяцев назад +20

      Well... we have DUs ;-) Looooooooong ago

    • @tymurgubayev4840
      @tymurgubayev4840 7 месяцев назад +7

      I heard a talk recently about F# Myths, and the guy and his team actually adopted F# for production code (for some microservices IIRC), and were happy about it.

  • @TheCzemike
    @TheCzemike 6 месяцев назад +31

    3 years is laughably short for an LTS. Almost nobody switches to a new LTS within the first year of release, making this effectively a 2 year "long" term support. This time frame needs to be increased to 5 years at a minimum. We're not talking about JavaScript front ends that change with the seasons but enterprise back-end code that will likely last 10 to 15 years, if not longer.

    • @RedHotBagel
      @RedHotBagel 29 дней назад

      We prepared and switched all our services to .NET 8 BEFORE it came out. No issues on the release candidates.
      The only thing that took a tiny bit of work was the blazer frontends.
      Not sure what y'all are doing but if you snooze... well, you ain't winning.

  • @tituszban
    @tituszban 7 месяцев назад +98

    Dude. When posting a video like this, essentially just breaking down an article, please link the article in the description.

    • @swordblaster2596
      @swordblaster2596 7 месяцев назад +3

      3 seconds to google it.

    • @dauchande
      @dauchande 7 месяцев назад

      @@swordblaster2596 Shouldn't have to google it!

    • @jackieAZ
      @jackieAZ 5 месяцев назад +4

      @@swordblaster2596still not wrong tho

    • @doltBmB
      @doltBmB 4 месяца назад

      then you wouldn't be forced to watch the video though

  • @kooraiber
    @kooraiber 7 месяцев назад +35

    Please add all links you visited in the video to the description so it's easily accessible to us as well. Thank you.

  • @demarcorr
    @demarcorr 7 месяцев назад +80

    I was on .net framework 4.8, blinked, and now we're on .net 9

    • @SpaceShot
      @SpaceShot 7 месяцев назад +3

      and yet your .net framework is supported as long as windows exists and only .net 6+ is supported (for now). :)

    • @T___Brown
      @T___Brown 7 месяцев назад +7

      Blink? Or a coma?

    • @keyser456
      @keyser456 7 месяцев назад +1

      That doesn't even tell the full story. They went back to v1 w/ Core.

    • @BittermanAndy
      @BittermanAndy 7 месяцев назад +1

      .NET Core was 2016. Sleeping Beauty didn't blink for that long.

    • @nickbarton3191
      @nickbarton3191 7 месяцев назад +1

      Yep, we've still got a lot of FW4 products to upgrade.

  • @jameshancock
    @jameshancock 7 месяцев назад +46

    What I really want is "readonly required record struct" and for everything to support these as DTOs everywhere. The perf and memory improvements for APIs and SignalR, GRPC etc. would be significant. And by using required, that says "every property must have a value" which eliminates an entire class of coding issues of accidental nulls, default values being implied, etc.
    Sadly, SignalR and MassTransit to name 2 don't support structs.

    • @JollyGiant19
      @JollyGiant19 7 месяцев назад +2

      And maybe one day discriminated unions 😢

    • @JustNrik
      @JustNrik 7 месяцев назад +8

      Do you realize that using structs are DTO means that you'll have to copy the struct everytime you pass it? and passing it by ref will not be any different than just using a class. So in terms of performance and memory improvements, you won't really gain anything for using structs over classes. Specially for DTOs which can be really big.

    • @jameshancock
      @jameshancock 7 месяцев назад +3

      @@JustNrik you’re only copying if you’re mutating.
      And it works on the stack which is easier to GC and you have not overhead versus the class as the struct is only the sum of the contents.
      I’ve tested with json doing this by hand with minimal APIs and it’s a 2-3% increase in performance and over time it saves significant GC cycles.

    • @konstantinkurtev3396
      @konstantinkurtev3396 7 месяцев назад

      I am always interested how and where people acquire knowledge about the performance of specific data structures, approaches, and related topics. Could you recommend some books that can help me become familiar with such subjects?

    • @AlFasGD
      @AlFasGD 7 месяцев назад +2

      @@konstantinkurtev3396 the best way to learn about this topic is to learn that books won't help you, and the only source of knowledge is your own experimentation following guidelines from online resources at Microsoft's doc pages

  • @mome3807
    @mome3807 7 месяцев назад +6

    Seems like a memo was received: “write something about AI”
    MAUI and Blazor dropped to the backlog bottom is frankly a slap. We switched from typescript/vue2/3 to Blazor and never looked back. Improve the diamonds you have already

  • @PedroHenrique-us5ks
    @PedroHenrique-us5ks 7 месяцев назад +25

    8:45-8:51 using olympics as a time measure reminding us that Nick is greek after all

    • @EdKolis
      @EdKolis 7 месяцев назад

      He's Greek? I always thought he was German. Well, except at first when I thought he was an Arab but somehow also white. I'm not good with accents.

    • @idk-jb7lx
      @idk-jb7lx 5 месяцев назад

      @@EdKolis i thought he was just american lol

  • @briumphbimbles
    @briumphbimbles 7 месяцев назад +8

    4:32 you just explained exactly why they want to get into this space.
    Personally I know plenty of people doing ML that would prefer to do it in C#

    • @justinian.erdmier
      @justinian.erdmier 7 месяцев назад +2

      Honestly the only reason I haven't gotten into it yet.

  • @buriedstpatrick2294
    @buriedstpatrick2294 7 месяцев назад +31

    I don't mind the promos in the videos and they historically haven't really been much of a problem. But I have to say, lately it's gotten a bit absurd. Over a minute of ads, and in some videos they're even also promoted by other companies in addition to the self promo. Is it possible to tone it down somewhat?

    • @__Tweek
      @__Tweek 7 месяцев назад +2

      Get the sponsorblock extension for your browser.

    • @Efemyay
      @Efemyay 6 месяцев назад

      @@__Tweek I have no idea how it works, how does it know what content is sponsored? Very cool

    • @__Tweek
      @__Tweek 6 месяцев назад +2

      @@Efemyay I think people mark sections of the video that are sponsored and that's how it knows

  • @mciejgda88
    @mciejgda88 7 месяцев назад +15

    I have mixed projects with C# projects referencing domain models and functions written in F# and it works just fine, however there are days where I feel DUs are main reason those F# projects exists, on other days I feel like F# modeling is really superior.
    Overall I wouldn't mind having an easy way to define DUs in C# as they are now then you look up what F# code produces but that is another whole topic, as most people don't know how much working with both C# and F# in same solution improved over last 3-4 years.

    • @AkosLukacs42
      @AkosLukacs42 7 месяцев назад

      Maybe time to revisit F#? Ran into bunch of weird things at .Net 6 mostly with EF core that were just killing my spirit :(

    • @collynchristopherbrenner3245
      @collynchristopherbrenner3245 7 месяцев назад

      I love F# other than lack of "break" and "continue" for loops. You can't test recursive functions very well and sometimes iteration is the best/more practical way to handle algorithms. Please, someone prove me wrong and I will pick up F# again.

  • @matheosmattsson2811
    @matheosmattsson2811 7 месяцев назад +18

    Year 2030, still waiting for Blazor WASM multi-threading... (scheduled initially for .NET 8)

    •  7 месяцев назад +5

      No rush, waiting line is long. I am still waiting for a proper hotreload.

    • @rodrigoserafim8834
      @rodrigoserafim8834 7 месяцев назад +3

      IMHO Blazor is a really bad architecture for 90% of the web challenges. Any client side logic with server side rendering is trying to solve the wrong thing in the wrong place. Rendering is easy on the client side and hard on the server side. Logic is hard on the client side and easy on the server side. Blazor makes the worst possible decision, run the logic on the client side with WASM that sends the state to the server to render the html.
      Sure, you might say you don't have to do this and just render WASM on the client side, but then you need to send your entire DotNet Runtime to the client side, bloating the entire thing.
      Don't get me wrong, I would love for nothing more than to be able to program web in something different than Javascript and building through Node. WASM has great potential.
      But as it is, its just another Silverlight waiting to happen.

    • @litpath3633
      @litpath3633 4 месяца назад

      @@rodrigoserafim8834 why would you send the entire runtime to the client? it just needs to render the UI based on data from the server. in my projects I shared a Dto class library with the clent and the client talks to a web api on the server. It's quite nice to use c# on the client side. works great so far. most of the client logic is based on communicating with the api. Your main logic should always stay on the server for security
      If you are making a website versus a webapp, then i wouldn't use blazor, because it loads way too slow and you get into more the issues you describe where you might want to render on the server and send that to the client.

    • @danfriedman7009
      @danfriedman7009 3 месяца назад

      @@rodrigoserafim8834 Have you heard of Blazor United in .NET 8? Now you can create an app that starts with server-side, downloads the runtime in the background and then switches to client side when it's downloaded. Or you can configure it however else you want. If none of them work for you, then have fun with JS.

  • @Twyzz91
    @Twyzz91 7 месяцев назад +19

    I guess the only thing I really want is the new extensions feature so I can have nice property extensions

    • @EdKolis
      @EdKolis 7 месяцев назад +2

      Kotlin actually has these! Also extensions that don't need to be defined in a static class. It's awesome, you can just put them in whatever scope you want. Why can't C# do the same? Did Jetbrains patent this stuff? 😂

  • @shadowsir
    @shadowsir 7 месяцев назад +9

    "And then, F# is a language that exists"

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад +2

      Very underrated language. Even in a non-production sense it’s good for utilities.
      Two killer features are Type Providers and Units of Measure if you’re doing numerical computing.

    • @shadowsir
      @shadowsir 7 месяцев назад +6

      IMO, thanks to discriminated unions, units of measure and computation expressions, it's lightyears ahead of C# for decent domain modelling.

    • @colejohnson66
      @colejohnson66 7 месяцев назад

      I *want* to like F#, but its syntax is so off-putting it's hard. I get that the syntax came from OCaml, but I'm not a fan of it.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад +2

      @@colejohnson66 Easy enough to get used to and more concise than C-syntax languages.

  • @chudchadanstud
    @chudchadanstud Месяц назад +1

    I went back to Java a few weeks ago. It was absolutely refreshing. Everyone codes normally, no wide spread use of magic syntax. No billions of frameworks. No Visual Studio. No pulling hairs out trying to get it to work on Linux. Code that is truly cross platform. Sure the docs are lacking but they give you enough to get anything done.
    The issue with .NET is the community and Microsoft. They don't push for true simplicity and less bloat. You don't need feature updates. You need performance and bug fixes. Robustness, clarity (as is control flow visibility) and accessibility.

  • @scorpions3834
    @scorpions3834 7 месяцев назад +41

    What about the Blazor?

  • @nicholaspreston9586
    @nicholaspreston9586 6 месяцев назад +2

    "If the focus on AI brings in some Python developers, let us all hope they can actually code"
    XD XD XD

  • @JohnDoe-fe1eq
    @JohnDoe-fe1eq 7 месяцев назад +5

    Microsoft thought they were being clever releasing half baked MAUI with dotnet 6. Its literally frustrated the heck out of anyone wanting to adopt it in last couple of years. Not to forget they launched it twice (once with dotnet 6, and then 8). So these vision articles mean nothing to be honest. MSFT needs to focus on delivering something consumers find useful, rather than spending dev time in making marketing videos for a technology thats difficult to adapt specially when its not a monopoly.

    • @kobiblade
      @kobiblade 6 месяцев назад

      Current Microsoft is unable to finish any of their projects, as they don't commit to any of their products, Windows itself is half baked nowadays.

  • @jackkendall6420
    @jackkendall6420 7 месяцев назад +22

    The fact that people are mad about their platforms actually receiving regular updates and QoL changes in these comments is fascinating to me. I'm personally glad I don't work with a language like C where you have to wait ten years for a committee to approve every change (and then another five years for some compilers to support it, maybe, potentially). If you dislike a new feature in .NET, consider not using it. Microsoft's backwards compatibility promises exist for you.

    • @keyser456
      @keyser456 7 месяцев назад +8

      It's fatigue. It's not a matter of "not using" features. You have to learn and know all of them (and I mean all of them) if you work on a dev team, in case they decide to use them. When you're 20+ years into your career, the breakneck release schedule becomes more of a burden than a bonus. It can almost be seen as technical debt for all .NET developers that keeps getting piled on. You can't just ignore it. In fact, staying up to date almost becomes a full-time job in and of itself.

    • @ilh86
      @ilh86 7 месяцев назад +2

      And then they keep changing how the "startup" works with a million different ways to do application builders, services, etc. I'm still to see how a console app is "supposed" to look these days with DI, etc as the documentation is sketchy.

    • @gbjbaanb
      @gbjbaanb 7 месяцев назад +3

      Don't worry kid, one day you'll be a senior developer and will finally understand why C is still around despite not having an update every few weeks.

    • @jackkendall6420
      @jackkendall6420 7 месяцев назад

      @@gbjbaanb I also understand why the industry is desperate to get away from it, and inventing 'C killer' languages roughly every year to do just that.

    • @chudchadanstud
      @chudchadanstud Месяц назад +1

      ​@@jackkendall6420No one is complaining about C bloat. Just the unsafety. But honestly once you get a hang of C you're pretty much done. 99% of your time is focused on crafting. No version conflicts, no worrying about moving to the next LTS no new keywords getting in the way. Every open source project is straightforward. No need to learn the latest and greatest framework. No 30 layers of abstractions.

  • @stefandebruijn3167
    @stefandebruijn3167 2 месяца назад

    The issue here is that there is so much focus on new features. As a long term .NET developer, what I valued most in the past was that .NET 1.1 DLL's were compatible with .NET 4.8. In other words, you can just make code which will last. No deprecation, no API changes, just new features now and then - and everything continues to work, stable and well. THAT is what the industry really needs, not new features, BECAUSE it means that libraries that are created globally, are cumulative over the years. You must realize that even if Microsoft puts out a million new features, it still pales in comparison to this.
    This does not only hold for C#. It's also the main reason C and C++ are still everywhere. It's also the reason why .NET Framework isn't deprecated yet.
    They made a wrong turn after .NET framework, with tons of features not working anymore nowadays. As a long time compiler developer I totally get why, but it's still a huge mistake.

  • @harbor.boundary.flight
    @harbor.boundary.flight 7 месяцев назад +36

    I always thought one major release per year was too much. Why not one major release every two years, and then an update in the in-between years.

    • @SamJudson
      @SamJudson 7 месяцев назад +16

      That's pretty much what they do, that is why 1 of the releases is long term support, and the other is not. So 6, 8, 10 etc are the major releases (3 years support), and 5, 7 and 9 are the 'minor' releases (18 month support). They don't leave major features till major releases however, so that is why from another point of view there is no real difference between the minor and major releases.

    • @lordmetzgermeister
      @lordmetzgermeister 7 месяцев назад +2

      ​@@SamJudson In .NET they're usually doing their own thing but in C# what they usually do is release a major feature in (a C# version released along) an STS version and then improve and polish it for the following LTS version.

    • @SR-ti6jj
      @SR-ti6jj 7 месяцев назад +2

      They think it's another product like Windows

    • @metaltyphoon
      @metaltyphoon 7 месяцев назад +3

      Because every major language has a faster cadence. It makes no sense to wait years for a feature. Java and Go do it every 6 months, Rust every six weeks!
      Look at where Java and .NET Framework was before a faster release cycle… dying. No one wants another “java 8”

  • @neociber24
    @neociber24 7 месяцев назад +22

    What makes discriminated unions so hard to implement on C#?
    I though they will just be syntax sugar for "sealed abstract class" and generate each class on the union or maybe some magic with structs and an enum to identify the union tag

    • @samalhabash2116
      @samalhabash2116 7 месяцев назад +3

      Same question I had in mind. Can someone give us a clue please? I remember Nick making a video talking about them about a year ago, and they looked really cool.

    • @AlFasGD
      @AlFasGD 7 месяцев назад +9

      The LDT is struggling to figure out what they want to achieve with DUs. Implementing them in any way is very easy by itself, let alone for the devs behind it. What we really care about is whether they will be blazing fast, or if we will sacrifice too much performance. Adding DUs is a commitment, so it has to be a feature that is prepared to stand for a long time in the language. Meanwhile all these other features and expansions are being given time, in other working groups. So it's primarily a matter of longevity and careful planning.

    • @TheMonk72
      @TheMonk72 7 месяцев назад

      We can already do DU using StructLayout and LayouKind.Explicit. There's just no language support.

    • @_profan
      @_profan 7 месяцев назад

      @k72 Only with value types though, you can't have an explicitly layouted struct with an int, float, and a string (or any other reference type) where they overlap for instance.

    • @TheMonk72
      @TheMonk72 7 месяцев назад

      @@_profan you can, but since strong is a reference type you have to be careful about how you treat the value. Same with arrays... although it's useful if you want to do quick and dirty value type conversion to/from byte arrays. Nasty, but it works.

  • @Megha-f7d
    @Megha-f7d 7 месяцев назад +2

    1. May I know, in future Angular and databases can be a part of dometrain?
    2. How can someone, who is new to .net and without being overwhelmed and learn all the courses in a practical sense with building side projects?

  • @UFOCurrents
    @UFOCurrents 7 месяцев назад +16

    I understand the pervasiveness of Python for AI, but I have been writing using large language models using C# just fine. 👽👍

    • @johndenver8907
      @johndenver8907 7 месяцев назад +15

      A lot of the pioneering was done in python because that was what the academics are used to, but the python itself is not the AI. The models are language agnostic. If my entire application is C# then I'm going to need the reliability, type safety and speed of C# for my local AI work loads.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад

      @@johndenver8907But the AI ecosystem is Python, so you have to deal with it. Soon you will get the strongly typed Mojo. But in the meantime if you want to be in the .NET space then go with F# which has a mature data science story with the flexibility of Python.

  • @Synesthesia-r9
    @Synesthesia-r9 7 месяцев назад +6

    I used MAUI for about a year, we started a project with native with XAML, then moved to MAUI Blazor and then eventually ditched MAUI and moved to Angular. Blazor Components are awesome but are still sorely lacking. XAML is horrible, you want to do conditional rendering? Haha, jokes on you... Would love to see more development on Blazor as a whole, not just a way to write SPA type web applications but as a replacement to XAML for MAUI and WPF etc.

  • @queenstownswords
    @queenstownswords 7 месяцев назад +6

    MS needs to declare its ongoing support for MAUI. The lack of MAUI specific documentation for .net 9 is concerning.

    • @chrisbradley3224
      @chrisbradley3224 7 месяцев назад +1

      They need to buy Avalonia and make it first party.

    • @jimfoye1055
      @jimfoye1055 7 месяцев назад +1

      They are probably already working on its replacement, don'tcha know?

    • @mongleFrog
      @mongleFrog 7 месяцев назад

      I rather wish they just dropped it instead of pretending it's viable

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 7 месяцев назад +1

    I toyed with the idea of learning XAML last week (in Avalonia UI which uses WPF and Google's Skia under the hood) after frustrations with MAUI and Microsoft's lack of commitment to really fixing the issues with it. Then I thought based on research and general user experience, WPF and XAML can't be the future, but neither can MAUI unless Microsoft does something about it.
    I kinda wish Microsoft would purchase Avalonia UI and then not make the mistakes that they made with Xamarin, namely not listening to the users that are enthusiastic and use the framework.

  • @somebody_on_the_internetz
    @somebody_on_the_internetz 7 месяцев назад +5

    Just switch to F# if you want DUs

  • @toragodzen
    @toragodzen 7 месяцев назад +1

    I still have many packages .preview-8 and they already moving to 9 ??? There are 314 issues open now - could you please fix everything before moving forward ? I don't need more new features - I need stability and performance !

  • @computer9764
    @computer9764 7 месяцев назад +1

    It's definitely a communication issue that the dotnet stuff is all managed by slightly different teams, but they're all expected to release features in November for the latest dotnet version. My opinion is that they should move to a cadence of releasing things as they're ready. EF, STJ, and MAUI seem like they could benefit from not being tied so much to the dotnet release cycle.
    It's also a little confusing to see a library that was updated to v7 for dotnet 7 but still works with dotnet 6.

  • @mptest7461
    @mptest7461 7 месяцев назад +1

    And seriously about AI: I actually WANT to be able to do it in DotNet and to be able to use as little different programming languages as possible. In terms of language and environment, I prefer DotNet (C#) over Python. So let it happen.

  • @steve.c3578
    @steve.c3578 3 месяца назад

    His Digs at F#, we’re never getting tired of it 😂

  • @JW-lv1fm
    @JW-lv1fm 7 месяцев назад +2

    Static variables at the method level would be wonderful and painless to implement.

    • @FullStackIndie
      @FullStackIndie 7 месяцев назад +1

      I'm am curious why this would be necessary. you can implement static variables in the same class. if your passing a non static variable as a parameter to a static function I understand the frustration, but I think you need to rethink your design. too many static variables == no garbage collection and memory problems/crashes down the road. IMP... but I am junior dev so I may be wrong

  • @jayzjek
    @jayzjek 7 месяцев назад +1

    Lovely sense lf homour man. Keep it coming. Keep us entertained while updated on these daf industrial communications.

  • @lavshyak9640
    @lavshyak9640 7 месяцев назад +6

    I was dealing with machine learning in python. it was a terrible experience, because of the community and library developers, it is not customary for them to make a convenient API and write adequate code. It’s better to write more code in .net than to Google 1 line of python code for 2 hours.

  • @tridy7893
    @tridy7893 7 месяцев назад +10

    MAUI UI is not really cross-platform, still lacking Linux support, and it does not look like it is coming soon at any time. You might take a look at Avalonia UI, which is sort of evolution of WPF into an open-source and more (than MAUI) cross-platform that works on Win, Mac, Linux, Mobile. So, I do not see why you say (7:15) that XAML is "kill it" since MAUI is not XAML and vice versa.
    You said you did not use XAML in MAUI, and the only thing I can assume is that you created the UI using C# MAUI classes. That is possible to do obviously, but my question is why? I mean, we can write code in a notepad and use the command line to compile and run the code, but there is a reason why we agree to pay money for tools like Rider. Maybe the implementation of XAML editor sucks big time in MAUI, (I have no experience with that). But if the UI XAML IDE sucks with MAUI, it is not the fault of XAML but MAUI Editor. To compare, look at how Avalonia/XAML works with Rider, for instance. Kill it? Really?

    • @zoiobnu
      @zoiobnu 7 месяцев назад

      I prefer always Flutter over Avalonia. Avalonia miss a lot of features that is shipped with MAUI, like routing and navigation. At least Flutter and MAUI has a big company behind.

    • @tridy7893
      @tridy7893 7 месяцев назад +1

      Just to make sure, the discussion is about C# and XAML (as in Avalonia and MAUI) and you are bringing Dart and Flutter? I don't think it is fair pears to pears comparison.
      As for the big companies, I am not sure what you mean by that. For example, Silverlight and later UWP had a big company behind them.

    • @zoiobnu
      @zoiobnu 7 месяцев назад

      @@tridy7893 yeah, Microsoft and Google abandon project with lower market, like any intelligent business.
      I loved NET Maui, but lack of Linux support from Microsoft just make me migrate to another language.
      We tryed to use Avalonia a lot, but its just familiar for WinUI/WPF developers. Missing routing funcionality, its not easy to just show a dialog from anywhere.
      Yeah, i mentioned Flutter because its a good alternative to Avalonia.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад

      What about Uno? That is truly cross-platform.

  • @johndenver8907
    @johndenver8907 7 месяцев назад +6

    Working with MAUI daily now. MAUI is amazing. It has bugs though, like hot reload just stops working on Android once in a while for no reason. Usually fixed when I reboot. No other indication of what's going on. But usually I will just switch to using the Windows side of things for stuff I would need Hot Reload for anyhow. That happens fast and then all the code shared between IOS, Windows, Android. Then we have a WPF and Linux version setup in separate projects while still sharing all the major code. Performance of MAUI has been exactly the same as the java version on android. Business App though.

    • @queenstownswords
      @queenstownswords 7 месяцев назад

      Hello, "Performance of MAUI has been exactly the same as the java version on android" - meaning it is slow? Please give more details on issues with MAUI. Thanks

    • @johndenver8907
      @johndenver8907 7 месяцев назад

      Sorry I mean a Java version of the app. The UI looks much different, but then I'm talking about controls and responsiveness of clicks.@@queenstownswords

  • @helshabini
    @helshabini 7 месяцев назад +1

    I don't understand what vision do people want for DU? Since we already have type/pattern matching, you can use that instead to accomplish the same thing. Maybe you can make a video explaining what you think DU should look like?

    • @jimfoye1055
      @jimfoye1055 7 месяцев назад +3

      Plus it will never have the elegance of a DU in F#, no matter how hard they try.

    • @jongeduard
      @jongeduard 7 месяцев назад +2

      For me it's mostly about far better error handling. C# still has a system of throwing exceptions and try catch, which are very problematic, because they form a way of error handling which is not well encoded in the type system, based on method contract it is totally unclear if a method possibly throws anything. DUs make it possible to handle that issue.
      But more generally speaking it is about clear ways of being able to know and handle which variants of a type are possible. The current C# pattern matching based on just OOP inheritance allows for infinite possible values, because an interface or class can have unlimited derived types.
      So pattern matching is very frequently not exhaustive. Unless being done on an enum.
      But enums cannot contain any other direct values. If they did, then you exactly had what we called a DU. And this is exactly Rust has for example. Enums as DUs.

    • @duongphuhiep
      @duongphuhiep 5 месяцев назад +1

      I guess people wanted DUs to be able to use the same error handling as Rust.. but come on! if your function return error as value and sometime throw some exception, then it will become a mess! consumers have to deal with both errors as values and exception handling..

    • @helshabini
      @helshabini 5 месяцев назад

      @@duongphuhiep an easy solution is for all dotnet devs to agree to return exceptions as return values in a tuple. If we all do it at the same time then problem solved. Let’s go. Staring right…..now 😂

  • @mrwensveen
    @mrwensveen 6 месяцев назад

    I'm ambivalent about Discriminated Unions in C#. I love using them in functional or multi-paradigm languages like F# and typescript, but I can achieve the same thing using subclasses in C# (the class's type is essentially already a tag). Especially in combination with C#'s pattern matching which has really advanced the language IMHO.

  • @tibba69
    @tibba69 7 месяцев назад +1

    What is roles extensions?

  • @chrismantonuk
    @chrismantonuk 7 месяцев назад +5

    3 years == “Long Term Support” 🤦🏼‍♂️

    • @krccmsitp2884
      @krccmsitp2884 7 месяцев назад +3

      In IT that's like eternity.

    • @chrismantonuk
      @chrismantonuk 7 месяцев назад

      @@krccmsitp2884 yeah, it’s depressing

  • @Vavagutt
    @Vavagutt 2 месяца назад +1

    Why tf kill XAML?? It was so easy to work with.

  • @zbaktube
    @zbaktube 6 месяцев назад

    I think Native AOT will be pushed in a way that gets easier access to python and vice versa. So, we can benefit from the AI capabilities implemented in python/C. Like rust and Python. What do you think about it?

  • @paulopinto5135
    @paulopinto5135 7 месяцев назад +1

    They surely could do DU like in Java, Scala, Kotlin, or even their own F#.

  • @IceQub3
    @IceQub3 7 месяцев назад

    I found using abstract classes with private constructors useful, like using discriminate unions.
    This is very similar to sealed classes in cotlin.
    What would I like to see are interfaces that are "internaly extensible"
    Which alow user code to depend on interfaces but not to implement them

  • @peep39
    @peep39 6 месяцев назад

    Discriminated unions is the one thing I want. I am predominantly C#, but I go to F# all the time to play with that. It's such a great way to tackle so many things.

  • @aalasso2
    @aalasso2 6 месяцев назад

    Would be great to plug the podcast with Mads Torgersen talking about DU's. Care to add a link?

  • @CharlesOkwuagwu
    @CharlesOkwuagwu 5 месяцев назад

    you understand why some of us are dumping MS for Elixir

  • @IllidanS4
    @IllidanS4 7 месяцев назад +1

    NativeAot is an interesting experiment, but I also consider it too niche and limited in principle. You remove a lot of what makes .NET powerful by ditching the JIT.

    • @gbjbaanb
      @gbjbaanb 7 месяцев назад

      All time JIT does is what nativeAot does, but worse. The theory is what Jit *could* do is just that, theory. AOT can do a lot more optimisations than you would ever get in a JIT.
      C# is just realising all the things it should have had from the start, but were ignored because they weren't cool enough, are good. Whats old is new again.

    • @IllidanS4
      @IllidanS4 7 месяцев назад

      @@gbjbaanb Performance was never the reason ‒ you've had tools like ngen for decades; you can even pick methods for AOT in code by calling PrepareMethod... You don't get anything by removing JIT from a system where both JIT and AOT is already possible.
      You don't pick NativeAOT for performance; you pick it because you are working in a constrained environment where having the CLR is a burden or outright impossible, such as native plugins/libraries or similar. The "AOT" part in the name is a limitation, not a selling point ‒ by removing the JIT, you lose the possibility to run *any* code that the static analysis skipped in a performant manner, having to interpret at best or breaking it at worst.
      You don't get anything in terms of power by downgrading C# to C++. You can't accept .NET assemblies, your reflection is limited, you can't interact with dynamic assemblies, and your generics effectively turn into templates since you can only use them statically. That is not something that may improve over time, that is *by design*.

  • @DE-sf9sr
    @DE-sf9sr 20 дней назад

    I like it, but mainly due to new features available due to Maui Entra External Id

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 7 месяцев назад

    I love F# other than lack of "break" and "continue" for loops. You can't test recursive functions very well and sometimes iteration is the best/more practical way to handle algorithms. Please, someone prove me wrong and I will pick up F# again.

  • @AbuBakrSadiqi-b7t
    @AbuBakrSadiqi-b7t 4 месяца назад

    We need DU for stability on models. please Microsoft, do it!!

  • @foamtoaster9742
    @foamtoaster9742 4 месяца назад

    I would love to see linux support for MAUI, make it truly cross platform

  • @eriklethdanielsen3968
    @eriklethdanielsen3968 4 месяца назад +1

    i still use .net 2.0 :-) prefire QT on Linux

  • @jfftck
    @jfftck 7 месяцев назад +5

    I think adding enums that are able to have multiple types like Rust has would make it easy to have more functional concepts in the language.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад

      Rust enums and pattern matching are awesome.

    • @jfftck
      @jfftck 7 месяцев назад

      Even if it would require a new keyword to use them, it would always be possible because F# has them and both languages have to be lowered to the same base code of .net.

  • @aj-jc4cv
    @aj-jc4cv 7 месяцев назад +1

    4:10 it's nothing like a monopoly as that would be where a single supplier assumes a dominant position. Anaconda groups compatible libraries from many suppliers, they are vast in number and use python bindings written in c or c++ so they are performant too.

  • @klimrod89
    @klimrod89 7 месяцев назад +16

    Unpopular opinion here. I love XAML.

    • @RogueTravel
      @RogueTravel 7 месяцев назад +1

      Fine if you do. But please. React, SwiftUI, Jetpack Compose, Flutter, etc. are superior. I don't think it can be disputed at this point, especially since the latter three all copied React. And so did Microsoft with WinUI 3, and they really just need to get on with it. Or get dusted, as per usual, leaving us dry

    • @71Jay17
      @71Jay17 7 месяцев назад

      React? No thanks. htmx all the way for me.

    • @RogueTravel
      @RogueTravel 7 месяцев назад

      @@71Jay17 If you prefer htmx, I'm guessing XAML is a hard pass

    • @bondarenkodf
      @bondarenkodf 7 месяцев назад

      Well, it's not very convenient for advance scenarios, but in general, it's not a big issue. The main issue is that the MAUI is still not usable, the MAUI team lacks hardcore developers, MS lacks large MAUI based projects developed not using students and interns.

    • @RogueTravel
      @RogueTravel 7 месяцев назад

      @@bondarenkodf Microsoft uses React and React Native internally. It is sad

  • @neotechfriend
    @neotechfriend 7 месяцев назад +1

    Considering Google's use of Go, is there potential in exploring a combined C# and Rust language (C#Rust)? or maybe improving runtime or AOT 😂

  • @justinian.erdmier
    @justinian.erdmier 7 месяцев назад

    You said discriminated unions clash with things already in C#. That's the first time I've heard this. Would you elaborate?

  • @AmaroqStarwind
    @AmaroqStarwind 7 месяцев назад +10

    My dotNET feature requests:
    - GPU acceleration
    - Distributed computing support
    - Decimal floating point operations
    That's all I ask for, Microsoft.

    • @haha-hk9tx
      @haha-hk9tx 7 месяцев назад

      lol, search for 3. c# floating-point-numeric-types, 2. orleans. why tf would u do GPU acceleration in c#, maybe try Skia

  • @zadintuvas1
    @zadintuvas1 7 месяцев назад

    .NET 8 needs some fixes. We are seeing increased memory usage and even OOM in some of our services which were working fine on .NET 7. May be a leak in unmanaged memory as memory dumps don't show anything.

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat
    @SayWhaaaaaaaaaaaaaaaaaaaaaaat 7 месяцев назад +1

    Good im still using .net 6 :D

  • @MrMatthewLayton
    @MrMatthewLayton 7 месяцев назад +1

    Microsoft killed VS for Mac?

  • @ssquarkgaming1405
    @ssquarkgaming1405 7 месяцев назад

    It seems like everyone wants discriminated unions. And if it's not quite possible to do them like in F#, I would love for a way to use a DU like feature for type constraints. INumber is great and all, but being able to say where T : float | int |MyClass to contrain the incoming data.
    Also Microsoft, should fix up things that don't make sense anymore due to new features. E.g. you cannot cast a Delegate variable to a more specific delegate type because you get a compile error BUT you can do so if you define the same delegate as a type alias?!?

  • @readonlyden
    @readonlyden 7 месяцев назад +3

    It's a shame that you can emulate DU with sealed classes in Java (in Java!!!) and compiler will check it in switch cases etc. But you can't do similar in the C# language.

  • @justinian.erdmier
    @justinian.erdmier 7 месяцев назад

    "F# is a language that exists" Nick, they're our sisters, mate. We're all in the same family 😋

  • @local9
    @local9 7 месяцев назад +7

    "understatement of British Proportions" that was direct, and it hurt because its true.

  • @killymxi
    @killymxi 7 месяцев назад +1

    XAML is fine. MAUI flavor was a mistake. Microsoft bought the wrong thing to get to the market quickly and just poisoned itself forever.

  • @AndrewMortimer
    @AndrewMortimer 7 месяцев назад

    "getting a new feature every... Olympics!... " 😂😂

  • @julianocs87
    @julianocs87 7 месяцев назад +4

    Nothing about Blazor? Are they already killing it?

    • @krccmsitp2884
      @krccmsitp2884 7 месяцев назад +3

      No, in the contrary. It just wasn't in the scope of the team writing that article.

    • @marko5734
      @marko5734 7 месяцев назад

      Means there will be some improvements for Blazor too? ​@@krccmsitp2884

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 7 месяцев назад

    5:40 "And F# is a language that exists." lol

  • @collynchristopherbrenner3245
    @collynchristopherbrenner3245 7 месяцев назад

    Become truly multiplatform.

  • @71Jay17
    @71Jay17 7 месяцев назад

    AI development on Microsofts platform is nothing short of hilarious.
    Mojo is fast becoming the standard and python.

  • @octaviandobre
    @octaviandobre 7 месяцев назад

    Title actually : "Why Nick Chapsas already hates .Net 9"

  • @Max_Jacoby
    @Max_Jacoby 7 месяцев назад +15

    I skipped .NET 7 entirely and just recently tried .NET 8. They are already talking about .NET 9. Gosh, couldn't they slow down a bit and release only long term versions? I hate all new sugar-syntax additions as well. Code looks like a poem where you can write the same line with dozens variations depending which syntax you like more. It shouldn't be like that. It makes in more difficult to work in teams and keeping all the new useless information in head.

    • @AlFasGD
      @AlFasGD 7 месяцев назад +4

      What does .NET have to do with C#'s syntax improvements?

    • @Max_Jacoby
      @Max_Jacoby 7 месяцев назад +2

      @@AlFasGDyou know what I meant. Usually new .NET and new C# comes hand in hand. It's just an oversimplified comment, not an technical article.

    • @AlFasGD
      @AlFasGD 7 месяцев назад +2

      I know what you meant, you don't know what you're talking about. C# has taken the evolutionary direction and it's up to you to take the train or not. If you want a lower language version in a more modern .NET version, you can do that. If you want to stay in .NET Framework 4.8, it's up to you again.

    • @keyser456
      @keyser456 7 месяцев назад +1

      @@AlFasGD You'll get burned out too. You just don't realize it yet.

    • @AlFasGD
      @AlFasGD 7 месяцев назад

      ​@@keyser456 I've already gotten burnt out in the sense of learning all the features. I just make use of whatever comes, as long as it's designed properly and it fits the domain that I use it in.
      Not to mention that I've argued against the infamous null-arg check shorthand (!!), wanted primary ctors to come with more features baked in, and don't really care about all the moving gears in most new features.

  • @nickbarton3191
    @nickbarton3191 7 месяцев назад +2

    What's wrong with XAML?
    I like it, reminds me of web programming using AngularJS without the nauseous Javascript.

  • @killymxi
    @killymxi 7 месяцев назад

    The distinction between dotnet, C# and all other teams is understandable. But it gets me every time with these blog posts.
    If they have a checklist for things to be accounted for on every post, starting with a clarification and directions section should be in it!
    Like "this post is about X, the post about Y will be/is there; and look at that other place to find out more about other projects..."

  • @tc05698
    @tc05698 7 месяцев назад

    "F# is a language that exists" lol!

  • @johndenver8907
    @johndenver8907 7 месяцев назад +4

    We don't need DU's just like we don't need Enums that can have code and behave like classes. I imagine there is some DU framework out there somewhere that would allow you to create a base class for your discriminated Union results. I think the pattern matching system more than compensates for that.

    • @11clocky
      @11clocky 7 месяцев назад +1

      Enums that can have methods like classes would be great. The current workaround of using extension methods is pretty cumbersome.

    • @kallebysantos5167
      @kallebysantos5167 7 месяцев назад +1

      The Rust DUs and pattern matching are the best examples of these implementations.
      I'd tried a little bit of F# and missed the "If.. let" and "let .. else" operators. By the other hand C# allows to define guard clauses using type matching. If they combine some features from F# with C# then it will be the best language.
      Rust is the best example for inspiration. The way they have the Enum is very useful. If the current C# Enum has a way to store generic values it would be very great.

  • @Coen22
    @Coen22 7 месяцев назад

    MAUI improved a lot in .NET 8 with many bug fixes, but the features are still very limited compacted to Jetpack Compose or SwiftUI.

  • @rapzid3536
    @rapzid3536 7 месяцев назад

    Roles/Extensions is hawt.

    • @tibba69
      @tibba69 7 месяцев назад

      What is it?

    • @StephanLeclercq
      @StephanLeclercq 7 месяцев назад

      Yet another attempt at making us forget that we still have no mixins nor multiple inheritance

  • @XeonProductions
    @XeonProductions 6 месяцев назад

    Meanwhile, I'm still upgrading projects to .NET Framework 4.7.2 at work... I can't keep up with these .NET versions anymore, and I don't like some of the new features they keep adding to C#. They're turning it into some abomination like Perl.

  • @PritomPurkayastaSunny
    @PritomPurkayastaSunny 7 месяцев назад +2

    I don't get it, why is the content and the title are different? Not cool.

  • @zwatotem
    @zwatotem 7 месяцев назад +4

    You can tell the guy is Greek, if he measures time in olimpics 😂

  • @MAMW93
    @MAMW93 7 месяцев назад

    it'd be nice if .NET 8 is available on Azure App Services and not clear out the tech stack every time because there's a known bug. Microsoft knows it exists but in the github issue they claim that not enough of us are complaining to make it a priority.

  • @marcokummer4956
    @marcokummer4956 7 месяцев назад

    In my opinion, azure is crap. Every time I tested it, it was far more expensive and slower than just renting a full blown virtual server and deploying my apps on there. Shouldn't it be the other way around? If Microsoft starts forcing us to use Azure (either by introducing arbitrary limitations or by making other paths deliberately difficult), then I will turn my back on the MS dev world and consider PHP or other technologies.

  • @rapzid3536
    @rapzid3536 7 месяцев назад

    I think, as I've said many times, the iteration cycle for a lot of .Net official libraries and frameworks is too long. We shouldn't need to wait a year(multiple years) for STJ enhancements like polymorphic deserialization when the type discriminator is not the first field. Or for reusing existing fields as a type discriminator. For stuff like MAUI and Blazor this is also a very long release cycle. Oh, when the hell will SignalR support compression(Microsoft srsly you are the only source of CRIME/BREACH FUD on the internet for over a decade)?!
    It is actively holding back a lot progress and inhibiting contributions. 1 year release is great for the core runtime, but for libraries and frameworks in 2024 this is forever(nvm it gets no official attention, and no outside contributions, so it's kicked out another full year in July).

  • @demokraken
    @demokraken 6 месяцев назад

    After 15 years on .NET left it for Kotlin. Never looked back, despite all the good things. Switched to Mac OS along the way. I wish I’ve done it way sooner. Ecosystem is way more important than syntax sugar here and there, you can figure it out by counting top systems implemented outside MS world. Happy coding, friends.

  • @Bennevisie
    @Bennevisie 4 месяца назад

    "Cloud native"? Not thanks.

  • @divanvanzyl7545
    @divanvanzyl7545 7 месяцев назад

    Nick, I love your content. But, these thumbnails are so CRINGE😂

  • @viko1786
    @viko1786 7 месяцев назад

    When MAUI for Linux? Such a lie that MS "loves Linux", but years pass and no official MAUI support. Only community driven attempts.
    What about a proper supported LSP for C#? We know Dev Kit comes with one. Let us use it for other editors, besides VSCode.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад

      If you want Linux then use Uno instead.

    • @marcs8325
      @marcs8325 7 месяцев назад

      Microsoft likes Linux on the server. On the desktop, not so much (no good RDP client, no Office, etc).

  • @aldelaro
    @aldelaro 7 месяцев назад +2

    The main reason I just cannot care for MAUI is it has no linux support while avalonia exists and supprots it p well..
    I have projects and plans to ship to linux + windows, MAUI not having that kinda kills any excitement I could have tbh.

  • @cn-ml
    @cn-ml 7 месяцев назад +4

    Imagine C#, but with a feature rich type system such as TypeScript

    • @bomret
      @bomret 7 месяцев назад

      That would be my dream. Typescript as a first class .NET lang

    • @zoiobnu
      @zoiobnu 7 месяцев назад +5

      What feature ? I just hate TS because its not a big thing.
      Not really typed, interfaces that actually is just a class, enums which we can't parse in runtime and another problems.
      Yeah, is good to predict common mistakes in JS, but not a great thing.
      I think JS must be replaced by Dart.

    • @bomret
      @bomret 7 месяцев назад +1

      @@zoiobnu You talk about TypeScript as its current "frontend for JavaScript". Image it would stand on its own and compile down to CIL and have access to the .NET standard libs. In that regard it would have a far superior type system than C# and all the other shortcomings you mentioned would fall away. It would be superior to C# in every way.

  • @llothar68
    @llothar68 6 месяцев назад

    I can't find pleasure in all of this worthless yearly updates. The good old times where we had big updates all 3 years were much better. This is more hype then meat now.

  • @joshuagabal9444
    @joshuagabal9444 7 месяцев назад

    .net NEIN

  • @jasonhurdlow6607
    @jasonhurdlow6607 7 месяцев назад +1

    Just give me discriminated unions... I'd take them in exchange for all this stuff.

  • @Albi91vl
    @Albi91vl 7 месяцев назад +3

    What is this AI fever everywhere?!
    AI is for bad developers. Those who cannot build algorithms tend to go towards AI.

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 7 месяцев назад

      No. AI is good for developers.

    • @Albi91vl
      @Albi91vl 7 месяцев назад

      @@kevinmcfarlane2752 only for the good ones.

  • @Joe3D
    @Joe3D 7 месяцев назад

    You just don't say anything.