Cristian Álvarez
banner
crbelaus.com
Cristian Álvarez
@crbelaus.com
I write software (mainly #ElixirLang) and I do martial arts. Sometimes I blog at https://crbelaus.com/
Other shows I enjoyed recently are: Yellowstone, The Americans and Ozark.
January 4, 2025 at 7:52 PM
Silo is amazing. Best sci-fi show I've watched lately along with Severance. Others (Fallout and The Expanse) are great but not at the same level IMHO.
January 4, 2025 at 7:48 PM
For example "upcoming_events" may be such a scope that is extracted. Each LiveView or controller builds its own query based on that scope and then applies the required ordering, filtering, etc.
December 28, 2024 at 9:57 AM
This is what we do at work and so far it has worked great. We try to keep an eye on common "scopes" (as Ruby on Rails calls them) that show up in multiple queries and extract them out.
December 28, 2024 at 9:57 AM
I started using it in my day job (about 12 people in the team) and for my personal projects as well.
You can use it on any git repo without forcing others to switch (the rest of the team is using git).
December 26, 2024 at 8:11 PM
This is the way.
December 18, 2024 at 2:57 PM
Por el momento nada, pero le tengo muchas ganas. Todo lo que he visto es brutal, especialmente esto:
bsky.app/profile/giac...
If like me you're in the "ORM bad" camp I have the nicest Gleam library for you. With Squirrel you can stick to good old sql and it will take care of generating the needed Gleam code that is fast, type safe and just works™️
December 14, 2024 at 11:00 AM
Elixir 1.18 improves the type inference and checking and is now able to detect dead code, clauses that will never match, etc.
hexdocs.pm/elixir/1.18....

This will only get better over time. For example upcoming Elixir versions will be also able to do type inference on guards.
Changelog for Elixir v1.18 — Elixir v1.18.0-rc.0
hexdocs.pm
December 12, 2024 at 3:32 PM
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.
December 12, 2024 at 3:32 PM
Just added the book to my reading list. I’ve also found the exercises and will start doing them tomorrow morning.
Thanks for the recommendation @thebrianb.bsky.social !
December 11, 2024 at 9:48 PM
Thanks! I will take a deeper look. I've been also recommended this book: www.goodreads.com/book/show/14...
Healing Back Pain: The Mind-Body Connection
“Dr. Sarno saved me from a life of pain.” — Howard Ster…
www.goodreads.com
December 10, 2024 at 10:44 AM
Good luck! (Or break a leg 😂)
We in the Elixir community are thankful for your work!
December 9, 2024 at 7:34 PM
Looks like I have to learn other things than playing the guard!
December 9, 2024 at 7:32 PM