German Velasco
germsvel.com
German Velasco
@germsvel.com
💧Elixir and 🔥 Phoenix consultant - http://germanvelasco.com
🎥 Short tips - https://elixirstreams.com
🎙 Elixir Friends - https://elixirfriends.transistor.fm/
Sweet #Ecto datetime helpers? Yes, please! 😄

- ago, from_now, date_add, datetime_add 👨‍🍳🤌

#ElixirLang
October 14, 2025 at 12:19 PM
Getting back into recording **short** #ElixirLang video tips by recording a walk-through of @elixirphoenix AGENTS file...

It's ~25 mins long. I think I'm rusty 😅
October 2, 2025 at 3:10 PM
The bracket is set! Tournament is Friday at 3pm @elixirconf.bsky.social
August 25, 2025 at 12:02 PM
We have one new participant! Efx!

"Efx is a small library that does one thing and one thing only very well: Make code that contains side effects testable."

hexdocs.pm/efx/Efx.html
August 15, 2025 at 3:10 PM
They haven't all dueled yet, but the repo where I'm testing them all out is aptly called, ARENA! 😄
August 12, 2025 at 12:01 PM
And last, but not least, the second twin-protocol library, ProtoMock!

"a library for mocking Elixir protocols."

hexdocs.pm/protomock/Pr...
August 12, 2025 at 12:01 PM
Not to be ignored, one of the twin-protocol libraries, Promox!

"Protocol-based mocks and explicit contracts in Elixir."

hexdocs.pm/promox/readm...
August 12, 2025 at 12:01 PM
Up next is a library that tries to do it all! Repatch!

"a library for efficient, ergonomic and concise mocking/patching in tests (or not tests)"

hexdocs.pm/repatch
August 12, 2025 at 12:01 PM
Coming in with great power (and fervent backers) is mimic!

"a library that simplifies the usage of mocks in Elixir"

hexdocs.pm/mimic/Mimic....
August 12, 2025 at 12:01 PM
Up next is the evolution of Mox with even more safety, Hammox!

"a library for rigorous unit testing using mocks, explicit behaviours and contract tests"

hexdocs.pm/hammox/readm...
August 12, 2025 at 12:01 PM
Of course, no list is complete without the blessed Mox!

"a library for defining concurrent mocks in Elixir."

hexdocs.pm/mox/Mox.html
August 12, 2025 at 12:01 PM
Next, one that likes to make light of things -- mockery!

hexdocs.pm/mockery/read...
August 12, 2025 at 12:01 PM
A library that boasts of super powers -- patch!

"Ergonomic Mocking for Elixir"

hexdocs.pm/patch/readme.h
August 12, 2025 at 12:01 PM
Then we. have meck's younger (Elixir) copy. Mock!

hexdocs.pm/mock/Mock.html
August 12, 2025 at 12:01 PM
First up is the OG -- meck!

hexdocs.pm/meck/readme.ht
August 12, 2025 at 12:01 PM
I recently discovered (or rediscovered) several really cool `mix hex` tasks. Really handy when you need them. 👇

#ElixirLang
June 16, 2025 at 10:31 AM
Sometimes, I want a function to take in a list, a single element, or perhaps even `nil`. 🤔

But the operation inside the body of the function requires a list. 😞

For that, I like `List.wrap/1` 🤩

👉 https://www.elixirstreams.com/tips/list-coercion-for-fun-and-profit

#ElixirLang
February 5, 2025 at 12:01 PM
Does anybody else struggle to find their `Logger.debug/1` output in a sea of logs? 😅

One neat trick is to give it some color! 👇
https://www.elixirstreams.com/tips/log-output-with-colors

#ElixirLang
January 29, 2025 at 11:53 AM
I got a chance to talk to @mattwynne.bsky.social last week about living in Canada, being a ski bum, skateboarding at our age, how he got involved with Cucumber, writing books, mobbing, and more!

Incredibly fun conversation. Check it out!👇

🎙️ elixirfriends.transistor.fm/episodes/fri...

#ElixirLang
November 4, 2024 at 1:58 PM