Make Your Code Better With Pipes

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 56

  • @Abakum1
    @Abakum1 2 дні тому +78

    Too little metal pipe sound effects

    • @vimjoyer
      @vimjoyer  2 дні тому +26

      Only 2. I initially wanted to add it every time I said pipe, but didn't want to overdo it

    • @stefanstammberger3781
      @stefanstammberger3781 День тому +2

      ​@@vimjoyerfeared your helmet fell off

  • @AVeryCooIName
    @AVeryCooIName 2 дні тому +19

    I was tired and read the title as "make your coke better with pepsi"

    • @pupip55
      @pupip55 2 дні тому +1

      both versions would be true

  • @brianlogan4740
    @brianlogan4740 2 дні тому +13

    Honestly I think making Nix more readable is a critical thing to get right in order to foster more adoption. While the functional declarative simplicity is great for logical clarity it requires some up front learning to understand.
    I think this piping is a good example of how the functionality can remain the same but we add some syntax sugar to make it look more like declarative config and less like spaghetti code.
    I'm for logical simplicity though.

    • @wumi2419
      @wumi2419 18 годин тому

      I still have an xmonad config somewhere, but that one has too little spaghetti instead. It's basically a write-only config because it was written in one sitting while I remembered argument counts and operator precedence.

  • @Folvin-x1o
    @Folvin-x1o 2 дні тому +16

    vimjoyer pipeline

  • @kokomema
    @kokomema 2 дні тому +9

    Vimjoyer knows how to handle that heavy pipe!

  • @alunarnova
    @alunarnova 2 дні тому +8

    i like the more subtle background :) the one before was a bit distracting for me

  • @jpalharini
    @jpalharini 2 дні тому +3

    Just like threading (first and last) in Clojure, which I use a lot. Great addition!

  • @Redyf
    @Redyf 2 дні тому +4

    This is HUGE The pipe operator is so good ❄️🙌

  • @doce3609
    @doce3609 День тому +1

    This video actually explains pipes the best I have ever seen.
    Now I act

  • @borisoid
    @borisoid День тому +3

    Make your bets, what's gonna be stabilized first: pipes or flakes?

    • @vimjoyer
      @vimjoyer  День тому +5

      Hahaha, flakes and stabilized in the same sentence

  • @Arcensyl-f6h
    @Arcensyl-f6h 2 дні тому +5

    Based pipe wrench

  • @bastiana3611
    @bastiana3611 2 дні тому +4

    Awesome video! I can't lie I was missing pipes a bit from other functional languages, awesome they're coming to Nix. I can't lie, I was doing that let expression variable nonsense a bit for some of my more complex Nix modules.

    • @vimjoyer
      @vimjoyer  2 дні тому +1

      Yes, I too have already found a ton of places where I could use them in my configuration

    • @bastiana3611
      @bastiana3611 2 дні тому +1

      @@vimjoyer Do you have your config in a public repo btw? I'd love to take a look. :)

    • @vimjoyer
      @vimjoyer  2 дні тому +1

      ​@@bastiana3611 Yes, it's on github:vimjoyer/nixconf

  • @Familex
    @Familex День тому +1

    wow, when I searched this in 2023 I thought they would never be added

  • @Avec-jv9bh
    @Avec-jv9bh День тому +1

    The feature that I miss the most is adequate errors. I’m not only talking about these atrocious stack traces, the errors are just not pleasant to work with, mostly because of functional nature of nix

  • @teamwolfyta6511
    @teamwolfyta6511 2 дні тому +3

    New Video, Let's goooo.
    Edit: I want and need this feature.

  • @barboza-dev
    @barboza-dev 2 дні тому +3

    Thanks for the video!

  • @phageweb
    @phageweb День тому +1

    amazing video, thank you. What do you use as presentation tool? (very nice), a lot of good work

    • @vimjoyer
      @vimjoyer  День тому

      I'm using "motion canvas"

  • @starving207
    @starving207 2 дні тому +3

    Crazy boy and Crazy pipes

  • @LudwigConnell
    @LudwigConnell День тому +1

    pipenjoyer

  • @HaveANceDay
    @HaveANceDay 2 дні тому +3

    I'd like to learn to self-host web applications using Nix and/or NixOS

    • @HaveANceDay
      @HaveANceDay 2 дні тому +1

      Also, great video 👍

    • @vaisakh_km
      @vaisakh_km 2 дні тому +1

      Ya i too wanted to learn this.. as a better (or worse) alternative to hosting in docker.. i have no clue how to make flakes of dbs and all

    • @vimjoyer
      @vimjoyer  2 дні тому +1

      I plan to make a video about services soon, so that's probably going to help

  • @Scio_
    @Scio_ День тому +1

    Scale-like underscore placeholder parameters next please

  • @АндрейЧерабаев-э1ь
    @АндрейЧерабаев-э1ь 21 годину тому +1

    Finally!

  • @Bvngee
    @Bvngee 2 дні тому +1

    If only we could have statically typed nix

  • @dev_insights783
    @dev_insights783 2 дні тому +2

    Bro plz make a video on how to contribute to nixpkgs

  • @prunkles_d
    @prunkles_d 2 дні тому +2

    F# mentioned 🎉

  • @RichardJActon
    @RichardJActon День тому +1

    mmh love a good pipe operator. Would be nice to see a placeholder syntax as well though. This is why in R I kept using magrittr package's pipe until we got a native placeholder. Can't pipe to a positional argument easily without it. This was simple with magrittr pipe `%>%` and `.` placeholder: `f % f(1, .)`. Not as simple with native pipe `|>` when there was no placeholder, now it's `_`.

  • @pyw_4539
    @pyw_4539 2 дні тому +1

    04:35 Pun intended? : ^ )

  • @scuttlecrab8075
    @scuttlecrab8075 День тому +1

    Which nix version is required for this operator to be available?

    • @vimjoyer
      @vimjoyer  21 годину тому

      I'm using the latest version available in the unstable branch for this video

  • @PstMrtem
    @PstMrtem 2 дні тому +1

    Yesssss

  • @matthiasbendewald1803
    @matthiasbendewald1803 2 дні тому +2

    Noice!

  • @tomaintaround
    @tomaintaround 2 дні тому +2

    Wait… is this a monad?

  • @___xdesna___4345
    @___xdesna___4345 2 дні тому +3

    10k subscribers? 5:29

    • @vimjoyer
      @vimjoyer  2 дні тому

      Yeah, I need to update that

    • @AnirudhTammireddy
      @AnirudhTammireddy 2 дні тому

      He didn't do rebuild-switch after editing config on youtube

  • @Pierre-zh3ed
    @Pierre-zh3ed 2 дні тому +1

    Inspired by Gleam?

  • @lomenzel
    @lomenzel День тому +1

    is there an easy way to concat functions? like the haskell . operator?