
Max ▷ Elixir
@elixirboy
Followers
675
Following
2K
Media
46
Statuses
1K
Have *you* fallen for #ElixirLang yet? TILs and reflections from my 9 years with Elixir. Cranking out Elixir for Jump on weekdays. Cooking on my days off.
Kyiv/Himalayas
Joined April 2023
TIL: You can define `fetch/2` in your struct-defining module and have it return anything you want for the `[]` operator:. #ElixirLang
3
6
45
Me: What's your current favorite escape hatch when LiveView doesn't quite cut it?.Chris McCord: Web components with Lit. #ElixirConfEU cc @atomkirk.
2
1
7
Using two screens, I find it tiresome not to quickly see which screen is currently active. I googled it and found HazeOver. Quickly felt relief, recommended. #protip.
1
0
3
When to name your #ElixirLang function with a bang?. Only if the function is *expected* to throw errors during normal execution. Do not simply 'inherit' bangs from what’s inside that function (`Repo.update!`) if those exceptions would signal a bug (that is, should never happen).
2
0
1
Just published my first Hex package—one that no one else should even consider using. It was simply the easiest way to get its documentation into Dash. Am I doing it wrong?. #elixirlang . Still picked a fancy name for it, just in case.
1
0
10
Apparently, there's already put_private for that:.
LiveView pros, have you considered using Process.put/2 and Process.get/1 instead of socket assigns in those cases when that data wouldn't change during the lifetime of a LiveView?. Example: I pass something in a session to a LV that I want to be accessible from its components.
0
0
1
Today is the day I, too, moved to Ghostty. Big thanks to Alacritty for serving me well over the years!. Feel free to discover a cool trick or two from those I've collected in the last few hours:
github.com
Just my dotfiles. Contribute to mxgrn/dotfiles development by creating an account on GitHub.
2
0
6
macOS lovers, just wanted to share a quick list of apps that, after trying a bunch of alternatives, I personally use daily — and absolutely adore:
github.com
Carefully selected top-notch macOS apps. Contribute to mxgrn/best-of-mac development by creating an account on GitHub.
1
3
14