.NET 9's missing feature has me really worried.

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 110

  • @KvapuJanjalia
    @KvapuJanjalia 2 місяці тому +15

    Those templates are intended for beginners and this change makes their first impression of .NET worse.

    • @edandersen
      @edandersen  2 місяці тому +4

      that's the point I'm trying to make. thanks!

    • @flosrv3194
      @flosrv3194 Місяць тому

      I'm completely agree! I come from python and I see all these template and say wtf is all of this!!

  • @faustipez
    @faustipez 2 місяці тому +4

    As a beginner, I 100% agree with you. This is very helpful in university environments where they focus more on theory than practical stuff, so students get lost easily with so many configuration files and other nonsense. I like to get a project up and running quickly and dive into the documentation whenever I need to disable something I don't like. I don't understand the problem of having a template for beginners and another for an empty project.

  • @testg4andmmm129
    @testg4andmmm129 Місяць тому +1

    4:37 "out of the box" experience +1000 🚀🚀🚀🚀

  • @cedricv-p9z
    @cedricv-p9z 2 місяці тому +6

    I'm actually glad swagger is off by default since it can be cumbersome to handle and it has a learning curve as well. Http files have this learning curve too, but at least they're language agnostic and can be version controlled. They also remove the need for dependencies such as postman. I'm a fan.

    • @edandersen
      @edandersen  2 місяці тому +2

      why doesn't the http file automatically update as you add controller actions? am I missing something?

    • @cedricv-p9z
      @cedricv-p9z 2 місяці тому

      @@edandersen Don't think you're missing something. I can imagine the auto generation feature will come to http files eventually

  • @rmbl349
    @rmbl349 2 місяці тому +2

    I'm still searching for the problem here

  • @NOKIA5593
    @NOKIA5593 2 місяці тому +11

    You are very much correct.
    This is more of a bug that has somehow passed qa on their end.
    I hope this video will get a lot of traffic so that the .net dev team will fix this!

    • @edandersen
      @edandersen  2 місяці тому +1

      I think its totally deliberate sadly.

    • @SteveGillett-w8h
      @SteveGillett-w8h 2 місяці тому +1

      @@edandersen I watched a ASP community stand-up (all about Open API with Safia and Jon Galloway) a few months ago and they are moving away from swagger. You are right its intentional.

  • @petrmalecik5661
    @petrmalecik5661 2 місяці тому +6

    I mean you have the HTTP file, seems ok to me. I am always using something like Insomnia or Postman, so I do not see so much value in Swagger. I always turned off the opening of browser because it is so annoying that a new window pops-up every time i run my API. In my humble opinion I do not see it as a bad thing that the swagger is removed. Also the Open API spec is still being generated so you can feed it to whatever you want. What is the issue?

    • @edandersen
      @edandersen  2 місяці тому +1

      how do you get the http file to automatically update? am I missing something?

    • @rdmon746
      @rdmon746 2 місяці тому

      Silly

  • @PrasunOnYoutube
    @PrasunOnYoutube 2 місяці тому +5

    This is acceptable to a certain extent. What isnt acceptable is the .Net maui... That's a mess

    • @edandersen
      @edandersen  2 місяці тому

      I loved Xamarin Forms but yeah I'd agree

    • @ilove2learn783
      @ilove2learn783 Місяць тому +1

      @@edandersen But Maui Hybrid apps are very interesting. Xamarin was a mess. MAUI is a mess. But MAUI as a wrapper is a great concept.

    • @edandersen
      @edandersen  Місяць тому +1

      @@ilove2learn783 yeah its got some potential

  • @petewarner1077
    @petewarner1077 2 місяці тому +1

    I'm absolutely fine with this direction. I only ever enabled swagger UI in dev configuration to produce the swagger doc for the front-end team to have a reference if they didn't want to hunt down the user story tickets that documented it, and it has never been fully OpenApi compatible (nor is the current MS implementation for the record).
    The browser popping open every time I hit run was an annoyance, not an advantage.

    • @edandersen
      @edandersen  2 місяці тому +3

      I'm more concerned about the getting started experience and the corresponding impact on adoption. Thanks for the comment!

  • @josecarlosmacoratti
    @josecarlosmacoratti 2 місяці тому +4

    I completely agree with you

  • @atpayero
    @atpayero Місяць тому

    I totally agree with you, they are making a complete mistake by eliminating swagger and the user experience is very bad, to say the least. I don't know who came up with these brilliant ideas.

    • @edandersen
      @edandersen  Місяць тому

      there must be a reason. thanks for the comment!

  • @kidservice
    @kidservice 2 місяці тому +10

    I pushed like button 5 times, monitor exploded

  • @oliverdickins9764
    @oliverdickins9764 2 місяці тому +6

    I have 0 issues with this. In fact, my personal preference is that I always start from a completely empty project anyway.

    • @edandersen
      @edandersen  2 місяці тому +10

      yep that's great. empty project template remains. my concern is for beginners.

    • @ianmarteens
      @ianmarteens 2 місяці тому

      My concern about beginners is having them far enough from the projects I’m involved in, tbh.

    • @edandersen
      @edandersen  2 місяці тому +3

      @@ianmarteens yeah who cares about the next generation

    • @ianmarteens
      @ianmarteens 2 місяці тому

      @@edandersen , that’s a textbook God complex :)

    • @edandersen
      @edandersen  2 місяці тому +3

      @@ianmarteens it was sarcasm, I actually care

  • @ianmarteens
    @ianmarteens 2 місяці тому

    I won’t shed a tear. Swagger’s UI was a nightmare. I’ve seen a powerful computer struggling just because the UI was prettyprinting JSON. If you’re worrying about beginners that’s a good reason for worrying about.

    • @edandersen
      @edandersen  2 місяці тому +4

      never had an issue with the swagger UI, always got a lot of value out of it. thanks for the comment!

  • @suryazn4575
    @suryazn4575 2 місяці тому

    I think the developers took wrong branch and pushed this changes

  • @duznt-xizt
    @duznt-xizt Місяць тому

    Love your videos mate!
    Please do one about FastEndpoints.

    • @edandersen
      @edandersen  Місяць тому

      Can i call it "pulling a fast one"? Cheers!

    • @duznt-xizt
      @duznt-xizt Місяць тому

      @@edandersen LOL yeah!!! Sounds good 🤣

  • @SalemSaleh-i6i
    @SalemSaleh-i6i 2 місяці тому +3

    Django: full-fledged admin panel
    .NET: let's remove the default api documentation

  • @jimbob1xghtnm
    @jimbob1xghtnm 2 місяці тому

    Personally, I have never used that Swagger UI, so this does not affect me. As a matter of fact, I change my projects to *NOT* spin up that Swagger UI - so it will probably save me time. I use .http files with Rider to save various scenarios for API calls I want to test. For longer-term development, this is easier as I can quickly go back and have a wide variety of scenarios ready to execute against my API with a single keypress. Also, these .http files are saved with the source code in Git, making it available to anyone on the team.
    That said, I can see that some people will dislike this change and find it a step backwards. A question, though: How often do you spin up new Web API projects where this will affect you? Or is your concern more for beginners in that they'll be stuck and not know how to test their API calls?

    • @edandersen
      @edandersen  2 місяці тому

      My concern is that out of the box experience. If a beginner is weighing up .NET vs something else, it needs to be good.
      Thanks for the comment!

  • @natrixnatrix
    @natrixnatrix 2 місяці тому

    The swagger codebase is kind of a mess though. I can kind of understand if the .NET team wants to avoid getting dragged into that.

    • @edandersen
      @edandersen  2 місяці тому

      that's fair but it's not as if the biggest company in the world doesn't have the resources to either fix it or build an alternative

  • @julienchable4752
    @julienchable4752 2 місяці тому

    I think you miss the point of this replacement (performance and it will support AOT which is great, swashbuckle rely too much on reflection which is not compatible with AOT) BUT you're RIGHT this template and this approach sucks for beginners !

    • @edandersen
      @edandersen  2 місяці тому +1

      Thanks for the comment :-) I don't think supporting AOT is worth losing the functionality tbh. But what do I know?

  • @georgeluyckx1437
    @georgeluyckx1437 2 місяці тому

    I guess the philosophy is that by making things harder it will attract more standard nerds to their platform.

  • @AtomSmash3r
    @AtomSmash3r 2 місяці тому +1

    Maybe the Windows 8 Team came out of retirement for .Net 9.

    • @edandersen
      @edandersen  2 місяці тому +1

      Windows 8 was ahead of its time, this isn't. Thanks for the comment!

    • @keyser456
      @keyser456 2 місяці тому

      @@edandersen Yes, yes it was. Trying to force all desktop users to use an OS specifically targeted at mobile/touch was way "ahead of its time" -- and one of the worst decisions in MS history. A group of people all sat around and agreed that removing the iconic Start button was a "good idea". Insanity.

    • @edandersen
      @edandersen  2 місяці тому

      @@keyser456 I mean't the underlying tech, the UI stuff was not good. 8.1 was pretty decent.

  • @mr_don_key
    @mr_don_key 2 місяці тому

    but it's preview mode.. so things will change when it's production ready (even though not lts)

    • @edandersen
      @edandersen  2 місяці тому

      it won't change

    • @mr_don_key
      @mr_don_key 2 місяці тому

      @@edandersen i wouldn't be fully sure about that. considering the habbits of MSFT since past year or so.. with their changes (in rapid successions)

  • @another_random_video_channel
    @another_random_video_channel 2 місяці тому

    It’s only a template change. You can certainly create your own templates

  • @TechieRathore
    @TechieRathore 2 місяці тому +1

    I completely agree with you, this step will make beginners first impression of .NET worse. Students already run away from learning and using .NET and associated technologies because of it convoluted framework setup and step like these will discourage them more.

    • @edandersen
      @edandersen  2 місяці тому +2

      i think they are deliberately making the MVC and web API projects worse to steer people towards the stuff they want them to use (Blazor)

    • @TechieRathore
      @TechieRathore 2 місяці тому

      @@edandersen unfortunately they have made a bigger mess there with so many deployment options confusing the beginners more.

    • @edandersen
      @edandersen  2 місяці тому +1

      @@TechieRathore Yeah its not easy these days

  • @kcbrown74
    @kcbrown74 2 місяці тому +1

    100% AGREE!!

  • @botyironcastle
    @botyironcastle 2 місяці тому +1

    good point

  • @LashithB
    @LashithB 2 місяці тому +2

    Some of the people in the comment section is missing the point. This makes things difficult for a ""Beginner" . It's easy for a experienced developer to turn it of if they hate it, than for a inexperienced person turn it on. I started .NET about an year ago and you have no idea how much that swagger UI helped me.

    • @edandersen
      @edandersen  2 місяці тому +2

      Bingo
      and without beginners coming into the ecosystem it will eventually die

  • @drenswe
    @drenswe 2 місяці тому

    I'm just starting to study ASP .NET should I just wait for the .NET 9?

    • @edandersen
      @edandersen  2 місяці тому +2

      No, start with .net 8 now, it's good

    • @Grumpicles
      @Grumpicles 2 місяці тому +1

      Start now. There are always changes coming so that shouldn't stop you from starting. .NET 9 will be far from the last version we see.

  • @hero3616
    @hero3616 2 місяці тому +1

    Agreed

  • @emiliowildberger7151
    @emiliowildberger7151 2 місяці тому +1

    something is wrong

  • @BobMcAllan
    @BobMcAllan 2 місяці тому

    Who are the competitors? Cause.. that would determine the direction.

    • @edandersen
      @edandersen  2 місяці тому

      For new projects Laravel, Rails, Next.js etc etc. All focus on out of the box experience

    • @BobMcAllan
      @BobMcAllan 2 місяці тому +3

      ​@@edandersen Maybe MS does not have the same view.. I would expect Java, Go & Rust to be C# direct competition, and they do not have similar OOB experiences.

  • @vinylwarmth
    @vinylwarmth 2 місяці тому +3

    Do you honestly care that much about this?

  • @doonhamer74
    @doonhamer74 2 місяці тому +2

    This is so sad. We can make the facepalm emoji. What else can we do to influence "the machine" that this is a bad idea?

    • @edandersen
      @edandersen  2 місяці тому +1

      I don't know, other than beg on UA-cam I'm out of ideas. Thanks for the comment!

    • @Wfmike
      @Wfmike 2 місяці тому

      No one is stopping you from adding swashbuckle in. It's just not added by default anymore which i think is a good thing.

  • @metaltyphoon
    @metaltyphoon 2 місяці тому

    Having the browser open every time you run or do dotnet watch is very annoying. This is a classic .NET dev problem, look at other ecosystems. Most devs I encounter know what a HTTP file is.

    • @edandersen
      @edandersen  2 місяці тому

      I dunno most frontend frameworks I've used launch the browser by default

  • @amitkumdixit
    @amitkumdixit 2 місяці тому

    It is actually good

  • @AlFasGD
    @AlFasGD 2 місяці тому +1

    Their product management team is completely out of touch with the community and it has shown multiple times (hot reload flashbacks), I am not entirely sure whether it's just genuine incompetent blunders or actual business-oriented decisions that they're doing their best to sweep under the rug

    • @edandersen
      @edandersen  2 місяці тому

      I wouldn't say they are completely out of touch, they do do good stuff. However my favourite is the tooltip that still says "(Swagger)". Thanks for the comment!

  • @watherby29
    @watherby29 2 місяці тому

    who cares about beginners, life does not have to be easy

    • @edandersen
      @edandersen  2 місяці тому +2

      bleak

    • @watherby29
      @watherby29 2 місяці тому

      @@edandersen I mean, in the old days, if you wanted to do anything on a computer you would have to be a "hacker" right from the start. And that was all the fun. Now everybody focuses on the "beginners". Most of tutorials on youtube start from scratch and I have to scroll 3h into a video to get any valuable information. I think there should be more focus on presenting advanced topics. Beginners are well taken care of I think.

    • @edandersen
      @edandersen  2 місяці тому +1

      @@watherby29 there is no point in teaching advanced topics on here as the audience is too small. Maybe Nick Chapsas has some stuff I don't know.
      My concern is around adoption. If we don't get new projects being started in .net it will eventually disappear.

  • @TheEvertw
    @TheEvertw 2 місяці тому

    Microsoft making the user experience worse, and refusing to back Open Source initiatives? That is _sooo_ M$.
    There is a reason I don't trust them. That has its origin in the way M$ treated users and companies depending on it in the nineties and naughts. It is also the reason why I haven't learned C#. For the last 10 years or so, it looked like M$ had changed its ways. But big money and lots of power will still corrupt any company.

    • @edandersen
      @edandersen  2 місяці тому +1

      I think it's more recent. the more I dig into it the more I suspect it's a way of tying this new http file thing to visual studio licenses.

    • @TheEvertw
      @TheEvertw 2 місяці тому

      @@edandersen Sure, this particular example is recent.
      But I fully expect them to make us pay for using VS, either by licensing it at some point, or by using it as a data mining tool. As in how they are using GitHUB to train their AI's.

    • @edandersen
      @edandersen  2 місяці тому

      @@TheEvertw most companies pay for VS already

  • @stepanhakobyan
    @stepanhakobyan 2 місяці тому

    Dumb decision from ms.

    • @edandersen
      @edandersen  2 місяці тому

      they've made worse

    • @keyser456
      @keyser456 2 місяці тому

      @@edandersen Like Windows 8

  • @RoyZASTEROiD
    @RoyZASTEROiD 2 місяці тому

    thank you.