The Power of Recursion - How To Think Code Clearly

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 13

  • @Mahmoudahmed-r2t
    @Mahmoudahmed-r2t 7 місяців тому +3

    OMG! I searched on the channel today for something about Recursion and in the evening found that, thanks!

  • @avalagum7957
    @avalagum7957 7 місяців тому +1

    Your videos (and Kit Langton's) always make me want to go back learning Scala 🙂

  • @HelloForeignWorld
    @HelloForeignWorld 7 місяців тому +2

    Senior developer here 🙋‍♂️
    I am pretty sure my junior coleagues know more about sorting algorithms than me 😅😅😅
    Great inspiration to try and implement this excercise in F#
    ❤❤❤

  • @yaroska
    @yaroska 7 місяців тому +1

    Great tutorial! Thank you ! ❤❤❤

  • @MartialBoniou
    @MartialBoniou 7 місяців тому

    Is there TCO in JVM?

    • @rockthejvm
      @rockthejvm  7 місяців тому

      Not on the JVM natively but in the languages (Scala, Kotlin)

  • @sergeibatiuk3468
    @sergeibatiuk3468 7 місяців тому +1

    One-liners (or not-so-many-liners) look nice but can be very challenging to write or read.

    • @rockthejvm
      @rockthejvm  7 місяців тому

      with minimal practice, this style can become second nature and you can plow through code

    • @sergeibatiuk3468
      @sergeibatiuk3468 7 місяців тому

      @@rockthejvm However, an imperative algorithm with loops will probably be faster. Many algorithms in Scala collections seem to use imperative algorithms rather than recursion

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

      ​@@sergeibatiuk3468the point of functional programming is not strictly performance

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

      @@piraloco5864 What is it?

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

      @@piraloco5864 I mean of course there is much more to it - more clear code, better composition, better testability and things like that. However, this is mostly about higher-level code, like business flow imho. Low-leve things like sorting algorithms ARE about performance, aren't they?

  • @sergeibatiuk3468
    @sergeibatiuk3468 7 місяців тому +1

    Wow