Why is EVERYONE Learning Phoenix?

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

КОМЕНТАРІ • 44

  • @vedi0boy
    @vedi0boy 9 місяців тому +20

    I'm sorry but that's not what liveview is. You need to do more research before posting an informational video.
    LiveView is a newer concept where the server will send DOM patches to the client over WebSocket to update elements of the page without the entire page reloading and no need for JavaScript to call an API to get data and update the DOM. The development advantage of LiveView is that the developer doesn't need to write any JS code at all to make their page interactive, it's all done in elixir with HEEx templated that are smart enough to know what small portion of html changed and needs to be replaced on yhe client. It's more similar to HTMX than anything.
    Live updates to the page while developing is a much older feature that most frameworks support, even outside the Elixir world. Most JS frameworks do that too, it's nothing special.

    • @AxelRizo-py4tb
      @AxelRizo-py4tb 9 місяців тому +2

      Also in Phoenix you can simulate SPA's pagination, you dont need to have two states, one in the server an another in the client, Idk, but I think liveviews are some powerful

    • @AxelRizo-py4tb
      @AxelRizo-py4tb 9 місяців тому

      And also, can you name the js framework that can do updated via websockets, pls, i dont know any, Next use http request, isnt?

    • @BumyMobile
      @BumyMobile 8 місяців тому +1

      I came for this comment

    • @natemaher1389
      @natemaher1389 6 місяців тому

      ​@@AxelRizo-py4tb there are probably 100s of JS frameworks out there now to do this, and I would recommend using them with LiveView. LiveView is intended to make things easier, as you said, to have state managed entirely on the server and not on the client at all. If you want to use a JS framework, then you can make an elixir API backend for http request from the front-end.
      But I really recommend giving LiveView a shot! It's very fast to have all development done in one language on the server side. I recommend using Tailwind CSS to style your webpage since you won't have access to a UI framework that might come out of the box with something like Next. I made a project recently in Elixir, Phoenix LiveView, HTML and Tailwind CSS. It was great having such a simple tech stack that was so powerful and made it quick for me to develop my app.

  • @sanctuary_of_soul
    @sanctuary_of_soul Рік тому +29

    who the fuck is "everyone"?

    • @legendrags
      @legendrags 10 місяців тому +3

      smart people

    • @ITSecNEO
      @ITSecNEO 8 місяців тому +3

      @@legendragsNo the opposite xD Elixir is only useful for distributed systems but so is Rust and Go too. There is literally no reason to use elixir over the other ones. Elixir is even way slower, the other ones are more general purpose and so on. The syntax of elixir is cryptic too, so I dont see a big adoption for it

    • @Krow-n3o
      @Krow-n3o 7 місяців тому

      @@ITSecNEO only a sociopath would use rust instead of elixir for a crud web server, and it is way better than some alternatives like django if you're looking for performance.

    • @Feronom
      @Feronom 5 місяців тому

      everyone is a curios cats who click on this clickbait title

    • @tanoryjakaperdana1419
      @tanoryjakaperdana1419 4 місяці тому

      If its everyone then is isaac newton too?

  • @jorge.barcelos
    @jorge.barcelos 3 місяці тому +1

    Can phoenix split the project in apps like Django does?

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

    That's not what liveview mean. You described Hot reload.

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

      What is live view

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

      @@MalachiRails liveview renders HTML that updates dynamically over WebSockets. Only the block of HTML that needs updates will be replaced with new. Making it look like a SPA.

  • @omkarkumbhar3243
    @omkarkumbhar3243 Рік тому +13

    Bro your content is quite good but can you start making some real youtube courses teaching some concepts from ruby on rails or the Phoenix framework instead of creating these bite sized videos. Still love your content though but we need some good courses.

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

    Mmm yeah.. everyone

  • @RR-et6zp
    @RR-et6zp Рік тому +4

    solid vid

  • @sergrojGrayFace
    @sergrojGrayFace Рік тому +17

    Stupid ad with nothing but marketing slogans.

    • @zed5790
      @zed5790 10 місяців тому +3

      He's literally uttering bs from chat gpt

  • @revenity7543
    @revenity7543 Рік тому +6

    Phoenix is pretty good.
    But being only 2x faster than Express is not something I like. (That means it is slower than Fastify)
    And Fastify is not a fast framework, I can easily make a faster one.
    The thing that I care first is performance, because it affects the app once you start scaling up (That's why I hate middlewares and I don't want people to implement that).
    And we can't just say that hardwares are 'fast' so our program is fast enough.

    • @nabil.saadouni
      @nabil.saadouni Рік тому +6

      Phoenix is faster than any JavaScript framework out there

    • @anasssanba-k5h
      @anasssanba-k5h Рік тому +1

      this is just bs , unless you put it into action

    • @revenity7543
      @revenity7543 Рік тому +1

      @@anasssanba-k5h That's just me
      I will choose a framework if it has decent performance (5x Express).
      I don't really care about DX cuz that thing doesn't really matter for end users (But I do for my framework).
      I care about performance because I don't want to have scaling issues and performance problems mainly. I know it will not be the first problem but I will always treat it like it's the first problem.

    • @hxxzxtf
      @hxxzxtf Рік тому +3

      i would use rust if performance is what i care about.

    • @revenity7543
      @revenity7543 Рік тому

      @@hxxzxtf i don't care about rust
      I use Zig