I Built a .NET App Using AI (with Cursor) - This Is Amazing

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

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

  • @MilanJovanovicTech
    @MilanJovanovicTech  27 дней назад +2

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
    Join a community of 1000+ .NET developers: www.patreon.com/milanjovanovic

  • @nothingisreal6345
    @nothingisreal6345 27 дней назад +11

    Milan has magic typing skills. Type three minutes without ever needing to correct anything, while i had to correct myself 20 times writing this comment. The performance and quality of the AI is very impressive. But as Cursor is a standalone commercial product I doubt it will be very successful. They need to integrate it with the standard IDE's as commercial extension. But that means competition with GH Copilot. Not having a compiler or debugger, test-runner etc. is hindering. It would be interesting to see how good it still performs with shorter prompts as I doubt that many people are willing to type that much. Its great there is a strong competitor to GH Copilot. It will push GH to continue improving Copilot.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      I think their main target is the JavaScript/TypeScript ecosystem. It doesn't really matter to me. I like the way the tooling is evolving. I'm hoping something comes up that we can use from VS directly, that would be amazing.

  • @ayanesuarezromero4222
    @ayanesuarezromero4222 27 дней назад +1

    Definitely awesome! It's a pity we don't have such a thing integrated in VS. I like it, it saves you a ton of design time but you'd better review everything and amend to follow best practices or even ask the assistance to help you follow some patterns and constrains.
    What I'm not sue is whether it uses your style of working and code to train the models while JetBrains AI Assistance does not. It keeps your code confidential and secure.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      Let's see if VS or JetBrains integrates something like this first

  • @dennym9213
    @dennym9213 26 дней назад +1

    I actually adopted it a bit differently - I still work in visual studio but I also open solution folder in cursor and refer to it whenever I'm stuck, forgot syntax or just to bounce some ideas off of it. It is indeed an amazing tool.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      Yeah, great way to use it

    • @j2csharp
      @j2csharp 25 дней назад

      Yep, can definitely see the value of using both editors to complete tasks. That was going to be my suggestion as well. We definitely need a Cursor extension for Visual Studio.

  • @j2csharp
    @j2csharp 25 дней назад +1

    This is an interesting demo of Cursor, and it raises some questions for the TDD process. Traditionally, TDD guides feature creation through carefully crafted tests that shape design and functionality. But with AI tools now able to generate entire features, how should we approach TDD? Should we still rely on tests to drive design, or should our focus shift? I'd love to hear others' thoughts on how TDD and design practices might adapt with AI-powered development.

    • @MilanJovanovicTech
      @MilanJovanovicTech  25 дней назад

      I wouldn't bother with TDD and AI (but that's just me). You may want to ask someone who actually uses TDD regularly.

  • @GabrielSoldani
    @GabrielSoldani 26 дней назад +5

    I’m not convinced. If I can’t give it high level business concepts in the prompts, and instead must specify file names and how I want it implemented, it is harder than typing it myself. AI generated completions, on the other hand, increase productivity because you don’t have to switch between writing code and writing natural language.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      It takes context from your codebase. If you already have good examples for the AI to figure out, I think the results would surprise you.

  • @antonmartyniuk
    @antonmartyniuk 26 дней назад +2

    I hope Jetbrain's AI will evolve soon to something like Cursor with much deeper IDE integration.
    I've used this AI and it has some IDE integration but not that near that Cursor has. And for more complex prompts I use ChatGPT Canvas 4o or ChatGPT o1-preview

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      Check out Claude 3.5 Sonnet, it's way better for coding

  • @jayrigger7508
    @jayrigger7508 26 дней назад +1

    It's very powerful tool, The big problem though is so many companies do not want the code base being sent over to AI companies. I presume cursor has no workaround for that at this time

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      Privacy mode terms: "If you enable "Privacy Mode" in Cursor's settings: zero data retention will be enabled, and none of your code will ever be stored or trained on by us or any third-party."

  • @AnotherJanes
    @AnotherJanes 26 дней назад +1

    Have you tried using cursor for Blazor frontend generation yet? Most demos on RUclips are all backend or JavaScript use cases.

  • @guillaumedotnet
    @guillaumedotnet 27 дней назад

    Wonderful video Milan as usual ❤ are you using Cursor paid version? If not, are you using an API key from a model and which one did you chose?

  • @danielcarlsson6711
    @danielcarlsson6711 25 дней назад +1

    Great video, but why should you use cursor instead of copilot in visual studio? Where do they differ?

    • @MilanJovanovicTech
      @MilanJovanovicTech  24 дня назад

      Can Copilot do the things I demoed here?

    • @10Totti
      @10Totti 23 дня назад +1

      @@MilanJovanovicTech Yes.

    • @MilanJovanovicTech
      @MilanJovanovicTech  23 дня назад +1

      @@10Totti I thought it only has completions and side panel chat for the current file. Does it also auto-apply generated code and lets me review the diff?
      I can also choose which LLM to use for code gen?
      And there is a composer-like feature that will create/update dozens of files at once?

    • @10Totti
      @10Totti 23 дня назад +1

      @@MilanJovanovicTech yes to all the answers except that you cannot choose the model.

  • @dnyaneshwarchaudhary8022
    @dnyaneshwarchaudhary8022 24 дня назад

    Hey Milan,
    Can you tell me which is better Codium or Cursor?
    Can you also make a video on Codium?

  • @milutinke
    @milutinke 27 дней назад +1

    Ћао, баци поглед на cursor rules фајл, у њему можеш да наведеш сва правила за пројекат и структуру кода, такође би требало да користиш Chain Of Thought методу, тј. да напишеш пар примера кода, ова метода баш побошљава квалитет генерисаног кода. Фактички то можеш да користиш као шаблон за нове пројекте.

    • @milutinke
      @milutinke 27 дней назад

      PS: Баци поглед на "Prompt Engineering Guide", не могу да накачим линк, јутјуб брише коментаре за то.

    • @vasiliylu8054
      @vasiliylu8054 26 дней назад +1

      Чем больше живу в Сербии, тем больше нравится ваш язык. Разумем, али ёш не кажем)
      On topic, great proposal, thank you

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      Одличан предлог, хвала! Овај видео сам снимао пре месец дана. У међувремену сам наишао на .cursorrules. За сада ми се чини да углавном поштује правила која му задам у оквиру тог документа. Али има ситуација када потпуно игнорише неке инструкције, поготово око стила кодирања.

  • @mikekidder
    @mikekidder 19 дней назад +1

    One of your Patreon followers! Just want to say, enjoy your material and continued work on the videos.
    We need to train an AI on your videos... "Build with Milan" the ultimate pair programming AI.

    • @MilanJovanovicTech
      @MilanJovanovicTech  19 дней назад

      Much appreciated, Mike! :)
      I'm sure someone will do that sooner or later. Then I'll be able to retire.

  • @wdorsett84
    @wdorsett84 27 дней назад

    This was great! I'm going to experiment with Cursor today on a project I've been meaning to start! Thanks Milan!

  • @SamFugarino
    @SamFugarino 26 дней назад

    Changed the game for the worse. I appreciate the productivity increase, but I like thinking too. In a few years we won’t have to think. Oh, well. That said, it is fascinating. Thanks for the video.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      I think developers will move to human-in-the-loop. You'll need a strong engineering background, type most of the code using AI, and validate it yourself either via tests or debugging. Of course, there are cases that AI can't cover will and that's where your expertise comes in.

    • @SamFugarino
      @SamFugarino 20 дней назад

      @it all kind of reminds me of that song by Rush, Temples of Syrinx. 😂 Again, I’m fascinated by it, but AI is eventually, going to put a lot of people out of work including the human in the loop.

    • @fifty-plus
      @fifty-plus 20 дней назад

      Funny because we've been trying to remove humans from the loop for decades because they're always the weak point in a process.

    • @SamFugarino
      @SamFugarino 20 дней назад

      ​@@fifty-plus​Humans are the process. But ignore me, I'm just being silly.

  • @ote8458
    @ote8458 26 дней назад +2

    instead of writing stories and checking what ai generates i would like to write code by myself when i am not working with hello world services or hello world domains as you show here. AI assisted development can also be preferable for the managers who wants to fire developer teams to save money. The last possible usage is for the guys who are not programmers but pretending that they are programmers in order to get easy money. They can try to produce code with ai which normally they can not.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      You are in denial, and I mean this with the best of intentions. I was exactly where you are a year ago, and I've since changed my perspective.

    • @ote8458
      @ote8458 25 дней назад

      @@MilanJovanovicTech I am not denying AI at all i use Copilot + Chatgpt daily while developing code, besides already helped to integrate the products wit Chatgpt Api in my company. I just began to see the things politically after my ex boss fired me off by saying one day he will also fire himself. The big target is always the same for high level programming: bring tools which can replace developers.

    • @ote8458
      @ote8458 25 дней назад

      @@MilanJovanovicTech i don't deny anything, i have been using AI with Copilot/Chatgpt daily in my software development tasks for more than a year. I helped to implement Chatgpt API to improve user experience in my company's products. I just say that: The main target of the industry is to replace the high level programmers (your audience) with ai in order to not give them this monthly 4-5k$. Those type of developers will probable vanish while they are embracing this as a revolution, coolness or whatever it is.

  • @deadcxlm
    @deadcxlm 25 дней назад

    Hello! Could you please explain how, in DDD, business entities like Customer and Courier are related to User (the actual user of the application)? Since business entities do not store authentication information and only hold data for business logic, I’m still having trouble understanding this. :(

    • @MilanJovanovicTech
      @MilanJovanovicTech  25 дней назад

      They can be the same object in terms of persistence. What changes is the behavior and how you use them from the code. We have one ID assigned the User, and the Customer/Courier can use these values.

    • @deadcxlm
      @deadcxlm 24 дня назад

      @@MilanJovanovicTech Will the ApplicationUser identifier be stored in the domain models, such as Customer and Courier? Or is it possible to link a business entity with an auth entity without a foreign key? Or is that what you meant?)

  • @luistrujillo1428
    @luistrujillo1428 26 дней назад

    Can you share the repo for this code? It would be good to review the code

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      This is Patreon-only, cause it's part of a larger series of videos: www.patreon.com/milanjovanovic

  • @padnom4991
    @padnom4991 26 дней назад

    The principle and the idea are great. However, as long as Cursor cannot run, debug, launch tests, display references, or even show errors, I don't think it will be suitable for .NET.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад

      It may come, it may not. This hasn't been a problem for me. I just keep VS open behind, and switch to VS when I need to debug.

    • @uwebaumann3296
      @uwebaumann3296 22 дня назад +1

      As I mentioned above, Microsoft license does not support forks of VS Code (like Cursor). But you can make it work using Samsung's alternative NetCoreDbg.Tried it out yesterday and it seems to do the job.

  • @cnz0183
    @cnz0183 26 дней назад

    How did you solve the debugging. Net issue with Cursor ?

    • @JollyGiant19
      @JollyGiant19 26 дней назад +1

      At this point in time, debugging .NET isn’t supported.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      Just switch to VS

    • @uwebaumann3296
      @uwebaumann3296 22 дня назад

      This is because the official Microsoft license does not support forks of VS Code (like Cursor). But you can make it work using Samsung's alternative NetCoreDbg.

  • @shahrozgul1
    @shahrozgul1 26 дней назад

    Do we have any alternative in Visual Studio?

  • @13odman
    @13odman 24 дня назад

    We're cooked

  • @teeheeeee
    @teeheeeee 27 дней назад +1

    Cursor just changed the game

    • @sneer0101
      @sneer0101 26 дней назад

      It's been about a while

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      It's the underlying AI that's making a difference 😁

  • @itirush2701
    @itirush2701 26 дней назад

    Milian, please make a video about OAuth2 authorization in .net. I will be very, very happy if you implement it yourself and add external providers: Facebook, Google, X. ❤❤❤