What is Phoenix LiveView? Is it similar to React?

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 33

  • @RogerDearly
    @RogerDearly 20 วันที่ผ่านมา +21

    This guy is very underrated.
    Cmon guys, elixir community is great, give this guy support he deserves.

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +6

      My dream is to increase elixir adoption, LET'S GO 🚀

    • @windwardhive7363
      @windwardhive7363 20 วันที่ผ่านมา

      elixir community is non existent. you wanna know whats great? javascript/typescript community

  • @edsterling6943
    @edsterling6943 20 วันที่ผ่านมา +9

    YES! Bring that Phoenix/LiveView content. Been waiting so long for this 🙏

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +2

      There is A LOT of Phoenix content coming, stay tuned 🔥

  • @rebelmachine88
    @rebelmachine88 20 วันที่ผ่านมา +3

    As someone just starting out with elixir and Phoenix, this was very helpful!

  • @ThugLifeModafocah
    @ThugLifeModafocah 19 วันที่ผ่านมา

    Great video, amazing explanation skills. Thank you.

    • @DanielBergholz
      @DanielBergholz  19 วันที่ผ่านมา

      @@ThugLifeModafocah thanks!

  • @swallace21
    @swallace21 19 วันที่ผ่านมา

    excellent walkthough!

  • @wojciechosinski5927
    @wojciechosinski5927 20 วันที่ผ่านมา

    Is there an equivalent of shadcn for Phoenix? I’ve noticed that you use the default select buttons. If you were to customize them, how would you go about it? The way I see it, these little details are where the server-centric approach falls short. What do you think?

    • @wojciechosinski5927
      @wojciechosinski5927 20 วันที่ผ่านมา

      Moreover, '7.8k unique visitors' doesn't represent the number of simultaneous connections at a specific moment in time, does it? It's a general statistic over a certain period. Am I wrong?

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +1

      @@wojciechosinski5927 You are right! It's 7.8k total access for the day, which averaged around 300 to 500 web socket connections simultaneously per hour

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +1

      And regarding Shadcn, unfortunately, we don't have an equivalent in Phoenix. But TBH, I prefer creating all my components "by hand" instead of installing a bunch of components by Radix. Also, by using the default select, you have 100% guarantee that the component will work on all browsers 😄

  • @SuperAppsUSA
    @SuperAppsUSA 20 วันที่ผ่านมา +2

    Seems interesting, but without JS, how are you going to handle all of the functions that come with modern websites? Libraries? Tooling?
    I like the ease of use, but it does not seem very practical for anything other than a 1 page app, or a simple information page. Also, its using websockets!? What happens if the socket disconnects? You lose your frontend?

    • @SuperAppsUSA
      @SuperAppsUSA 20 วันที่ผ่านมา

      Great video though, I really like it! Subscribed!

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +1

      @@SuperAppsUSA Thanks a lot! Answering your questions:
      - You can easily add a node_modules inside the assets folder and use whatever javascript library you want. And Phoenix uses Esbuild to bundle everything
      - If the Web Socket takes longer than 2.5 seconds to connect (this time is configurable BTW) phoenix defaults the client/server communication to Long Polling. If JS is disabled, it defaults to regular HTTP calls. So everything should still work normally

  • @taunado
    @taunado 18 วันที่ผ่านมา

    Thanks. Does it support interctive UI, such as add to cart, remove from cart, animations? A video on where this tool shines and where it doesn't will be helpful.

    • @DanielBergholz
      @DanielBergholz  18 วันที่ผ่านมา

      @@taunado absolutely. The goal of LiveView is to do those things from the server (using web sockets) instead of using a bloated JS framework

    • @taunado
      @taunado 18 วันที่ผ่านมา

      @@DanielBergholz interesting!

  • @prashlovessamosa
    @prashlovessamosa 20 วันที่ผ่านมา +1

    Please cover router v7 too.

  • @felix-na
    @felix-na 19 วันที่ผ่านมา

    great vid! keep em coming 👍

  • @srcrip
    @srcrip 19 วันที่ผ่านมา

    Very good overview!

    • @DanielBergholz
      @DanielBergholz  19 วันที่ผ่านมา

      @@srcrip thanks chief!

  • @aghileslounis
    @aghileslounis 19 วันที่ผ่านมา

    the 7K was not concurrent traffic at a given point in time. It would be so intresting if you can share what was the maximum number of users who were on the page that day at the same time, so we can know how much it handled just with 500mb RAM. Impressive stuff

    • @DanielBergholz
      @DanielBergholz  19 วันที่ผ่านมา +1

      @@aghileslounis yeah I wasn’t super clear about that. But you can see on the graph around 300 to 500 web socket connections per hour

  • @ben53933
    @ben53933 19 วันที่ผ่านมา

    👏

  • @lucasbergholz7582
    @lucasbergholz7582 20 วันที่ผ่านมา

    Great video as always bro! 🎉

  • @smoked-old-fashioned-hh7lo
    @smoked-old-fashioned-hh7lo 19 วันที่ผ่านมา +2

    i really want to like elixir but it's so hard without static types

    • @alexandrecolautoneto7374
      @alexandrecolautoneto7374 5 วันที่ผ่านมา

      I just started learning elixir, and the type system is easily forgettable after you start using pattern match. You kinda don't need the types when you can overload the function with all possible states. You can write a function to the Happy path and one for the errors with the same name. Give it a try, you're gonna like it.

    • @smoked-old-fashioned-hh7lo
      @smoked-old-fashioned-hh7lo วันที่ผ่านมา

      @@alexandrecolautoneto7374 i changed my opinion. i think that elixir doesn't need types because there are not too many features and it's very straightforward. on top of that it's a very well designed language. i think that most languages and paradigms need static types though. even most fp languages/paradigms need static types in my opinion.

  • @amedeoss
    @amedeoss 20 วันที่ผ่านมา

    i would pay for it . just cover every snigle thing about it , this is the future living now , let s do it , muito obrigado from Oslo ;)

    • @DanielBergholz
      @DanielBergholz  20 วันที่ผ่านมา +1

      Muito obrigado! There is much more Phoenix content coming 🚀