protoss: evil and powerful protocols

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • This video is a release announcement for protoss, which is a library designed to make your Elixir Protocols easier to read, understand, and debug.
    hexdocs.pm/protoss/Protoss.html

Komentáře • 8

  • @elixirfun
    @elixirfun Před 19 dny +1

    Beautiful, thanks for the lib!

  • @nickross4059
    @nickross4059 Před 17 dny

    Alright! I dig it. So visually and ergonomically it's more akin to how one would implements in Java

  • @bradhanks7837
    @bradhanks7837 Před 19 dny

    When I first saw my subscription notification, I thought this was going to be a Starcraft review. :)

  • @NicholasFunnell
    @NicholasFunnell Před 17 dny

    Here for the starcraft references :-D

  • @BrettBeatty
    @BrettBeatty Před 2 dny

    I enjoy trying to extend Elixir in interesting ways, and I love me a good StarCraft reference (I've named throwaway mix projects things like Zergling, SCV, and Firebat), but I can't help but think you're looking for behaviours instead of protocols. You implement their callbacks directly in modules implementing the behaviour, and there are no hidden modules being created behind the scenes. You do lose the automatic dispatch provided by protocol consolidation, but your behaviour module can do whatever it wants in its functions before calling implementations of its callbacks.

  • @elixirfun
    @elixirfun Před 19 dny +1

    I often wonder how reliable libraries that plug so deeply into the "basics" are, though, and whether I'm not going to face some hard-to-figure side effects.

    • @isaacyonemoto
      @isaacyonemoto Před 19 dny +2

      No side effects in this one! It's just protocols with a tiny bit of added code (the use statement only applies to its lexical scope)