How to use loop/recur in Clojure: with a practical example!

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • In this video let's talk about the most powerful looping mechanism in Clojure: loop & recur. It's not something you have to use daily but one time could save your life (maybe during a coding interview).
    We will also talk about tail call optimization (TCO) and will implement a practical example from 4clojure to check if we got a sequence of balanced brackets: 4clojure.oxal....
    If you liked this video and want to support my channel, please consider buying me a coffee ☕. Your contribution helps me create more content like this.
    You can donate at:
    👉 Ko-fi: ko-fi.com/andr...
    👉 Buy Me a Coffee: www.buymeacoff...
    Please also subscribe to my other resources:
    👉 Telegram channel: t.me/andreyfad...
    👉 Substack newsletter: andreyfadeev.s...
    I'm truly grateful for your support, and thank you for watching! 🙏

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

  • @andrey.fadeev
    @andrey.fadeev  10 หลายเดือนก่อน

    If you liked this video and want to support my channel, please consider buying me a coffee ☕. Your contribution helps me create more content like this. You can donate at:
    👉 Ko-fi: ko-fi.com/andreyfadeev
    👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev
    I'm truly grateful for your support, and thank you for watching! 🙏

  • @pappapez
    @pappapez 10 หลายเดือนก่อน +1

    Thanks! It’s surprisingly fun matching brackets. 😀

  • @Sanjaygupta-uq1ss
    @Sanjaygupta-uq1ss 10 หลายเดือนก่อน +1

    Hi Andrey!
    I wanted to know why don't Lot of Big tech companies use Clojure and tend to prefer Go, python, java etc.
    Is it because of :
    The learning curve?
    Or the readability (due to lots of parentheses)?
    Comparatively smaller community size or 3rd party packages?

    • @FrancescoPischedda
      @FrancescoPischedda 10 หลายเดือนก่อน

      There is a job opening at Docker right now, Clojure have been (is being) used at Cisco, NuBank is a great user of Clojure, and these are just the first that came to my mind without any thinking effort ;)

    • @andrey.fadeev
      @andrey.fadeev  10 หลายเดือนก่อน +2

      Hi, that could be an interesting topic to start on Reddit or maybe there is something similar already. My assumption is that it's just more convenient to hire Java/python/go devs on a larger scale. But said that Clojure sometimes appears in big tech as well, I know some examples of bits of Clojure in Amazon, Apple was hiring Clojure dev a couple years ago, etc. Also for smaller companies/startups the development cycle speed is more important so an efficient language like Clojure becomes more valuable :)