Netto
nettinho.github.io
Netto
@nettinho.github.io
#ElixirLang developer.
Brazil |> Portugal |> Spain
I wrote this right after listening to @thinkingelixir.com 😆
December 17, 2024 at 4:56 PM
Hello. I'm also an Elixir dev
December 4, 2024 at 10:55 PM
Just did. It does work! You can also do a generic:
```
def call(assigns) do
~H"""
<.live_component module={__MODULE__} {assigns}/>
"""
end
```

Maybe you can put that in your `MyAppWeb.live_component\0` and have it available for all your components.
December 3, 2024 at 7:16 PM
The same thought came to my mind when creating some entity dropdown selectors. xD I'd guess that <.live_component is necessary to manage the life cycle, since the component needs to be mounted and stuff. Still wonder if there could be a syntax sugar to make it transparent.
December 3, 2024 at 5:40 PM
Do you mean without the `<.live_component` ?
December 3, 2024 at 5:06 PM
I saw a couple of nice alternatives. One from @binarymuse.net using NimbleParsec, a library for text-based parser combinators. And @bcardarella.bsky.social did it directly with Elixir's binary pattern matching.
December 3, 2024 at 5:01 PM
Very cool!
December 3, 2024 at 9:24 AM
Thanks for pointing that out. I just merged a commit that fixes the issue you were encountering.
December 1, 2024 at 10:24 AM
To use it you only need to install the dependency and select the "Smart Advent of Code" option in the Smart Cell'ss dropdown. You will have a code editor below, to develop your solution. You can also toggle if you want to run it with the example input and/or your actual input from AoC
November 26, 2024 at 1:48 PM