Cristian Álvarez

Cristian Álvarez

@crbelaus.com

I write software (mainly #ElixirLang) and I do martial arts. Sometimes I blog at https://crbelaus.com/

738 followers128 following64 posts

Pinned

Over the last few months I've been in charge of deep data structure refactors on a big #ElixirLang application. I'll write a detailed blog post with the lessons learnt, but the most important takeaway is to rely on pattern match and guards as much as possible.

I got a small PR merged into Plug. You could use Plug.RequestID multiple times with different options but it always set the same logger metadata, overriding the previous value with each call. This is configurable now. github.com/elixir-plug/... #myelixirstatus #elixirlang

github.comCustomize the Logger metadata key name by crbelaus · Pull Request #1267 · elixir-plug/plugIn certain scenarios we may want to use the Plug.RequestID plug multiple times with different headers or assigns. While this is possible, the issue is that every call adds a :request_id key to the ...

The #elixirlang ErrorTracker has just surpassed 40k downloads. Codebase has been slowly improving and stabilising since the initial release. We just need a logger handler and then it can be considered "done". github.com/elixir-error...

github.comGitHub - elixir-error-tracker/error-tracker: 🐛 An Elixir-based built-in error reporting and tracking solution🐛 An Elixir-based built-in error reporting and tracking solution - elixir-error-tracker/error-tracker

Amazing to see how well the ErrorTracker and @ash-hq.org work together 🤝

Flavio Escobar@flavioescobar.bsky.social

I just configured ErrorTracker (hex.pm/packages/err...) on my project that uses @ash-hq.org and found it’s super easy to restrict the error dashboard to logged in users. If you use Ash Authentication and its Phoenix extension, you only need to pass the `on_mount` option. It just works! #ElixirLang

After using it daily for a few weeks I can confidently say that jj is to git what Tailwind is to CSS. I went from "I don't think this adds any value over vanilla git" to "I don't know how I ever worked without this".

Just compiled my job codebase to #ElixirLang 1.18 rc.0 and it already found dead code (four unused function clauses which were the only callers of some other private functions) and a typing violation (min/2 comparison between two structs).

Over the last few months I've been in charge of deep data structure refactors on a big #ElixirLang application. I'll write a detailed blog post with the lessons learnt, but the most important takeaway is to rely on pattern match and guards as much as possible.

This allows the compiler to understand which data structures you are using an helpfully warn you if you try to access non-existing fields. This makes it so much easier to move fields around and rename them confidently.

He doesn’t recommend me using a standing desk, but I have a strong feeling that switching between sitting and standing while working would benefit me. Anyone with a similar problem has tried the standing desk? Thoughts?

Cristian Álvarez reposted

So nice to see close collaboration between libraries 👏 Thanks @zachdaniel.dev for your awesome work on @ash-hq.org ❤️ And thanks to @crbelaus.com who is co-maintaining ErrorTracker and made the changes to support it 🧙‍♂️

Zach Daniel@zachdaniel.dev

Awesome stuff! Great for @ash-hq.org users, but you can also get bread crumbs for your errors for free using our standalone splode library: hex.pm/packages/spl...! In anticipation of this release, I went through and added a bunch more breadcrumbs to Ash errors 😎

Cristian Álvarez reposted

Awesome stuff! Great for @ash-hq.org users, but you can also get bread crumbs for your errors for free using our standalone splode library: hex.pm/packages/spl...! In anticipation of this release, I went through and added a bunch more breadcrumbs to Ash errors 😎

hex.pmsplodeSplode helps you deal with errors and exceptions in your application that are aggregatable and consistent.

We've just released the ErrorTracker v0.5.0 🐛! It includes a new feature to store breadcrumbs, improved support for @ash-hq.org applications, better mobile experience and minor fixes. You can check it out here: github.com/elixir-error... #ElixirLang

The @ash-hq.org integration would not have been possible without @zachdaniel.dev help. He is incredibly responsive and helpful. The #ElixirLang community is incredible.

We've just released the ErrorTracker v0.5.0 🐛! It includes a new feature to store breadcrumbs, improved support for @ash-hq.org applications, better mobile experience and minor fixes. You can check it out here: github.com/elixir-error... #ElixirLang

Cristian Álvarez reposted

Another milestone reached! So proud of being one of the maintainers of this little but useful library ⚗️💻 #ElixirLang

I've been using Qwen2.5-Coder for #ElixirLang through Ollama and Zed. It works surprisingly well for such a small model and is very competent both at writing new code and explaining existing code.

Simon Willison@simonwillison.net

Wrote up some notes on the new Qwen2.5-Coder-32B model, which is the first model I've run on my own Mac (64GB M2) that appears to be highly competent at writing code simonwillison.net/2024/Nov/12/...

You are up to date.