Clojure Syntax - The odd bits

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

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

  • @LongDayAlone
    @LongDayAlone 2 года назад +4

    Just started a job using Clojure after a few years with Python, thank you for being a great help!

  • @SebastianAnklamm
    @SebastianAnklamm 2 года назад +4

    Very good as always.
    One interesting tidbit about metadata is that is preserves equality. So the number 1 with some metadata is equal to the number 1 with some other metadata.

  • @onuremreyazgan3911
    @onuremreyazgan3911 11 месяцев назад

    Awesome video! I found Metadata and Dynamic Vars section especially useful.
    And a comment, for the -main function, I was thinking that was, to match java function in the generated class. Surprised it's just a convention to make it unique. I find it an odd design decision honestly, complexity for a no good reward, not quite Clojure style

  • @Bbdu75yg
    @Bbdu75yg Год назад

    Your intro is great !!!

  • @alerya100
    @alerya100 2 года назад +1

    Finally some logic explanations!

  • @nbme-answers
    @nbme-answers 2 года назад +5

    Short, sweet, useful.
    Very nice, Daniel
    ^meta is very interesting. I always wondered about that and what uses it can be put to.
    Please give us a Patreon link to support these awesome Clojure run-downs

    • @onthecodeagain
      @onthecodeagain  2 года назад +1

      Thanks a lot Peter! Patreon... Maybe one day :p

  • @zmou2412
    @zmou2412 2 года назад +4

    realy like your style~

  • @fredoverflow
    @fredoverflow 2 года назад +4

    The section where you talked about the keyword :this gave me JavaScript PTSD.

  • @icylace
    @icylace 2 года назад +1

    As someone who doesn't use Clojure I found this to be a good and helpful overview.
    I have a suggestion about your `times-fn` example at 6:40. Instead of `(times-fn 1 2 3)` use something different like `(times-fn 2 3 4)` to make the parameter usage clearer because both 2*3 and 1*2*3 equal 6.

  • @chrislyu7211
    @chrislyu7211 Год назад

    Why there is no sound effect in my lein when I typed "on the code again"?

  • @tufflax
    @tufflax 2 года назад +2

    The "-" actually means something. Read the gen-class docstring.

  • @RogueTravel
    @RogueTravel 2 года назад +1

    Is Clojure used in any new projects? My concern is that I can't professionally request this language to any client.

    • @onthecodeagain
      @onthecodeagain  2 года назад

      There are lots of apps built in Clojure. Not nearly as many as some other languages but still a lot. Dont just use Clojure to use it. See if it at actually has benefits that other languages might not offer. At my company we use Clojure for a bunch of different microservices because repl development makes them quick and easy to test and Clojure is quite performant

  • @tufflax
    @tufflax 2 года назад +1

    .toUpperCase is not a function, try evaluating it by itself.

    • @onthecodeagain
      @onthecodeagain  2 года назад

      I think I didnt make myself clear. Its a method on available on strings