Clojure Syntax - The odd bits

Поділитися
Вставка
  • Опубліковано 25 гру 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.

  • @Bbdu75yg
    @Bbdu75yg Рік тому

    Your intro is great !!!

  • @alerya100
    @alerya100 2 роки тому +1

    Finally some logic explanations!

  • @onuremreyazgan3911
    @onuremreyazgan3911 Рік тому

    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

  • @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~

  • @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"?

  • @fredoverflow
    @fredoverflow 2 роки тому +4

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

  • @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 роки тому +2

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

  • @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