Recursion Over Lists in Elixir

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

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

  • @alrigotto
    @alrigotto 2 ปีที่แล้ว +2

    Amazing explanation, thank you!

  • @gauravashq
    @gauravashq 2 ปีที่แล้ว +2

    Cool! 🙂

  • @kbrnsr
    @kbrnsr 2 ปีที่แล้ว +2

    Recursion! The eternal enemy!
    I felt like I cheated solving the challenge the way I did, until I saw that your solution was the same. You haven't mentioned those kind of things yet (no spoilers 😄), so I thought the challenge was supposed to solved in the "Elixir" way.

    • @JacobLuetzow
      @JacobLuetzow  2 ปีที่แล้ว +1

      haha I'd love to see your solution, you should join my discord if you haven't already. By the "Elixir" way do you mean guards and pattern matching? Feel free to continue this in discord if you prefer though.

    • @kbrnsr
      @kbrnsr 2 ปีที่แล้ว

      @@JacobLuetzow Yes, that's exactly what I meant! Will be joining the discord asap

    • @JacobLuetzow
      @JacobLuetzow  2 ปีที่แล้ว +1

      I did consider it, but I didn't want to touch on those things before my pattern-matching and guards video.

  • @bakenbard
    @bakenbard ปีที่แล้ว +6

    To understand recursion, you must first understand recursion.

  • @kvatofermer
    @kvatofermer ปีที่แล้ว +1

    Thank you for useful and fun content! :)
    I am interested in Elixir although I am a frontend engineer. :) Can you explain why did you pick Elixir for backend development?
    Elixir is a functional language, uses powerful Erlang OTP and BEAM and so on. But I ask about employment perspective.
    There is not tons of offers with Elixir in EU, but Python/Django or Ruby/Rails.
    Is it reasonable to invest your time in Elixir?
    Thanks :)
    P. S. I like Elixir pretty much. There is also a poster of Jose Valim in front of my bad and I kiss him everytime I go to sleep. (No, there is not :) )Anyway, to become a full stack engineer on Elixir basis looks as a good plan for myself.

    • @JacobLuetzow
      @JacobLuetzow  ปีที่แล้ว +1

      Hey there! I'm thrilled to hear that you're finding the content both useful and enjoyable - it's why I do what I do! :)
      As for why I picked Elixir for backend development, you've already pointed out several key reasons - Elixir is a functional language, utilizes Erlang OTP and BEAM, which provide immense benefits in terms of concurrency, scalability, and fault tolerance.
      Now, regarding the employment perspective, while it's true that Python/Django or Ruby/Rails have more job listings, I wouldn't say Elixir isn't worth your time. It's all about finding your niche. Elixir's performance characteristics and robustness make it a perfect fit for real-time applications, distributed systems, or tasks where concurrency is crucial. This can make you a valuable asset to specific teams or industries, even if they are less common.
      Moreover, becoming proficient in a language like Elixir can certainly differentiate you from other developers who only know more mainstream languages. Plus, who knows where the demand will be in a few years? Just because there's less demand now doesn't mean it will stay that way. Having a diverse skill set is never a bad thing.
      And don't worry, Jose Valim will be happy to know you're considering Elixir, even without the poster kisses. ;)
      Good luck on your journey to becoming a full stack Elixir engineer! It's a unique and interesting path, and I'll continue to provide content to support you on that journey.
      Stay curious and keep coding!

    • @Randych
      @Randych ปีที่แล้ว +1

      GenServer is something else when you realize it

  • @johincck4649
    @johincck4649 5 หลายเดือนก่อน

    boy,my brother,you are my god!

  • @dmitriyobidin6049
    @dmitriyobidin6049 ปีที่แล้ว +1

    Recursion is not that cool, if there is no TCO :)

    • @JacobLuetzow
      @JacobLuetzow  ปีที่แล้ว

      You're absolutely right! Recursion can be less efficient without it.

  • @Randych
    @Randych ปีที่แล้ว

    For sake of lulz I checked if there's a solution to absence of autocomplete.
    And turns out it is fixed in OTP 26.
    Communism!

    • @JacobLuetzow
      @JacobLuetzow  ปีที่แล้ว

      It does seem like the ElixirLS has gotten more stable.

    • @Randych
      @Randych ปีที่แล้ว

      @@JacobLuetzow it doesn't autocomplete new module names for me but hey, I can live with that.
      I wonder if I can make a bot using Alchemy and say make it run in docker on windows, to then effortlessly run it on linux docker or machine, and then run it in parallel compose containers...