Elixir + Phoenix overview for JavaScript developers

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

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

  • @DanielBergholz
    @DanielBergholz  6 месяцев назад +19

    Please note that I'm not an Elixir expert by any means, I'm still learning the language and just wanted to show how cool it looks and a couple of similarities with React

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

      Thank you for explaination! I know the basics of Elixir, but Liveview real-world examples are very helpful for me! Does your project open for contribution?😊

    • @DanielBergholz
      @DanielBergholz  6 месяцев назад +1

      @@kvatofermer yes! You can get the link to TechSchool GitHub on the homepage of TechSchool

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

      @@DanielBergholz 🙌

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

      Is elixir taste good? I've never felt what elixir tastes like, because as far as I know it use FP which focuses on pure and advanced math. 😶‍🌫️🤯😞

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

      @@jatlineur Looks like you messed up Elixir with Haskell😄 I guess, Elixir is the most friendly FP platform ever. You also can find OOP here, Elixir "process" is an instance of some entity, which has independent state and behaviour. "Processes" send messages to each other. Is this description applicable to OOP?😄

  • @nickross4059
    @nickross4059 6 месяцев назад +9

    You've been killing it with quality content. Thanks a ton for doing this work

  • @kalist8938
    @kalist8938 6 месяцев назад +11

    Elixir looks like Ruby but with the strong type and without oop.
    Seems to be a fun language and framework

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

    Nice video!
    I agree that Liveview feels a lot like React. Assigning values to socket feels a bit like using setState. The event driven model also feels familiar if you have worked with Redux or similar.
    It's going to be interesting to see if more JS devs start migrating to frameworks like Phoneix, Rails, Laravel. Their frontend story is starting to looking very compelling after years of churn in the React world.

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

      Probably only high-level developers, because they have the experience and they can invest time in "not popular" technologies

  • @nicolasteofilo
    @nicolasteofilo 6 месяцев назад +3

    Nice video Daniel, i'm using your videos to practice my listening in English and also to follow your content which is very good.

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

      Nice, thanks! And I'm also practicing my english on the videos 😅

  • @Randomguy48279xyz
    @Randomguy48279xyz 6 месяцев назад +14

    Nice to know about something other than JS from someone who is already fed up of JS 👏

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

    Great video!!! I just started learning Elixir myself too so videos like this are helpful to expose me to availble libraries/frameworks. btw, your editor color theme looks nice, may i know what theme are you using here?

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

      @@abdulrahmanmohamed8298 thank you! I’m using bearded arc

  • @rafakwolf
    @rafakwolf 6 месяцев назад +5

    So if I got this straight the "rich" part of the UI is made by communicating via socket with the backend, correct? There is one framework that does the same which is blazor, you can write C# instead of javascript, but you still have interoperability with javascript if you need to. Really nice video Daniel

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

    If i understand well:
    1. The form is triggering a POST request with the params as the request body.
    2. The handle_event "redirects" to to the same url we're in but with the search params as url query params built through the build_url function.
    3. The new query params are parsed by the handle_params function applying the search filters, delivering the updated view

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

      Yes! Just one small correction, all the communication between client and server are happening in a web socket connection that was established in the first render. There is no HTTP POST

  • @semyaza555
    @semyaza555 6 месяцев назад +1

    your videos have inspired me to branch out.

  • @simonswiss
    @simonswiss 6 месяцев назад +1

    Great video - really good onboarding to Elixir/Phoenix for a JS dev ✨ This video is just missing some Miguel action IMO.

    • @DanielBergholz
      @DanielBergholz  6 месяцев назад +1

      Fair enough! Next time I'm only gonna start recording once Miguel shows up on the webcam 🐈

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

    I would love to see more elixir content, like this :)

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

    Super helpful video, thanks for posting this 👏👏👏

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

    How did you get socket |> noreply() instead of {:noreply, socket} ? Did you defined a function for that?
    Looks cleaaan .

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

      Yes! I created these two functions:
      def ok(socket), do: {:ok, socket}
      def noreply(socket), do: {:noreply, socket}

  • @silloi
    @silloi 6 месяцев назад +1

    I like you say "as you can imagine", which were the exact things I imagined

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

    Nice work Daniel!

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

    Hi Daniel. What extensions for vscode do you use for Elixir/Phoenix development?

  • @prashlovessamosa
    @prashlovessamosa 6 месяцев назад +1

    Great please make more stuff on it

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

    Valeu Daniel, sou de clojure to indo pro elixir por framework/produtividade e a promessa do LiveView que pode empurrar a decisão de front typescript bem mais pra frente. hopefully never :)

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

      E eu que uso react e typescript no meu dia a dia posso dizer com confiança que o LiveView é um equivalente sinistro, até melhor que o react em outras áreas como escalabilidade

  • @gustavofelix9101
    @gustavofelix9101 6 месяцев назад +1

    Parou de fazer video em pt?

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

    Gostei do vídeo, parabéns! Qual tema é esse ?

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

    Top quality content

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

    "CSSex" misspealing is so awesome!😅 Pipe |> is not weird, it's fantastic! I write React code in functional manner and miss pipe so much. It's perfect to avoid nesting functions on the language level.

    • @DanielBergholz
      @DanielBergholz  6 месяцев назад +1

      I just said it was weird because it’s a new concept for a lot of people, but I absolutely love the pipe operator! I hate not being to use it in JS

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

      @@DanielBergholz there is a pipe proposal in ECMA for years, if I remember right.

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

    Hey love the video, could you make a same for Ruby on rails?

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

      Well, I don’t know Ruby on Rails 🤷

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

    Queria o vídeo em português… falta conteúdo em português de Elixir

    • @DanielBergholz
      @DanielBergholz  6 месяцев назад +1

      Pesquisa por Elixir Phoenix Lubien no RUclips, o cara é foda

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

      @@DanielBergholz assisti uns vídeos dele, muito foda! Valeuuuu

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

    This feels more similar to angular

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

    Elixir é vida