Max ▷ Elixir (@elixirboy) 's Twitter Profile
Max ▷ Elixir

@elixirboy

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.

ID: 1643462385959849985

linkhttps://mxgrn.com calendar_today05-04-2023 03:55:56

992 Tweet

641 Takipçi

184 Takip Edilen

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

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.

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

AI won't create anything fancy itself. It's good at producing building blocks, though, from which you, human, can build the fancy.

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

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).

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

At work, just submitted my first PR which is 100% vibe-coded. It literally saved me a couple hours of codebase research and coding. AMA.

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

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

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Me: What's your current favorite escape hatch when LiveView doesn't quite cut it? Chris McCord: Web components with Lit. #ElixirConfEU cc Adam Kirk

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

A very nice, concise introduction to Elixir and BEAM. Share it with anyone who's willing to understand why you're so lucky to work with the tech. youtu.be/_5B_B_IgtAg

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

It's easy to keep nudging the AI until it 'fixes' the tests, and it feels like achieving something, while the value of such tests may be plainly negative. Seeing too many false positives like that lately.

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Want to disable all unmocked HTTP calls from Req at once during #ElixirLang tests? Simply add this to test/test_helper.exs: Req.default_options( adapter: fn req -> raise "Unmocked call to #{req.url}" end ) (replace `raise` with a log warning if that's more useful)

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Neovim geeks 🫶 — this helps me debug in #ElixirLang: With the cursor inside a function, :ElixirCopyFuncFqn copies its fully qualified name (FQN) to the clipboard — ready to paste into IEx, local or remote. github.com/mxgrn/dotfiles…

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Are you learning a foreign language by any chance? And what are the odds you use Telegram too? 🤔 I’ve been building a Telegram bot that finally makes vocabulary learning with spaced repetition fun for me, thanks to LLMs. Maybe it will for you, too: t.me/lexicornbot?st…

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Just downloaded ChatGPT Atlas, and I see how direct browser-ChatGPT integration can be very useful. It just walked me through creating a free-form Google Analytics report, which I had no knowledge of. Previously, I had to send ChatGPT screenshots of where I was, it was tedious.

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

Want a supervised task to finish (not get killed) during rolling The Elixir programming language deployments? Trapping the exist will give it 5 seconds: Task.Supervisor.start_child( MyApp.TaskSupervisor, fn -> Process.flag(:trap_exit, true) do_work() end )

Adam Kirk (@atomkirk) 's Twitter Profile Photo

I'm hiring a contractor to contribute to The Elixir programming language OSS tooling full-time We're a large The Elixir programming language team and tooling is a big pain point, so we want to hire someone to make it better for us and everyone. Apply here jump.ai/careers?ashby_…

Max ▷ Elixir (@elixirboy) 's Twitter Profile Photo

I don't know who needs to hear this, but this works in #ElixirLang (new line after :foo is key): if true, do: (:foo :bar) Can you guess what it returns?