Peter Ullrich Newsletter logo

Peter Ullrich Newsletter

Subscribe
Archives
October 6, 2024

Update 03

Hey folks!

Another busy week lies behind us. I hope it was as productive for you as it was for me. Here's what I've worked on:

I wrote another blog post

I wrote a rather extensive post about how to use the Saga Pattern in Elixir. It's a pattern useful for handling multi-step use cases that don't fit into a single transaction. You can read it here:

The Saga Pattern in Elixir

Explore the Saga pattern in Elixir for managing complex, multi-step processes. Learn about choreography and orchestration approaches, with code examples for implementing long-lived transactions.


I shared an Elixir tip

I shared a tip about the differences between logical operators (and, or, &&, and ||) in Elixir. Basically, unless you want to allow only boolean values in your conditional statements, like if ... else ..., then you should use && and || outside of Ecto Queries, because and and or will throw a BadBooleanError if you try to evaluate non-boolean values, like if nil do or if :foo do.

logic operators.png


I continued to live-stream!

I live-streamed 3 times this week and we worked on our current project: Build a Twitch-Clone in Elixir. We managed to stream a video to our website and added a basic chat system. Next week, we'll round off the live-streaming part and will try to transcribe the stream using the Whisper model. I'll stream on Monday and Friday for sure and another day in between. Check my Bluesky or Twitter accounts to get notified when I go live. You can join the stream on these platforms:

YouTube: https://www.youtube.com/@peterandcode Twitch: https://www.twitch.tv/pjullrich LinkedIn: https://www.linkedin.com/in/pjullrich/ Twitter: https://twitter.com/pjullrich


And that's it! I wish you a productive next week 👋

Best, Peter

The human Ice Popsicle (it's cold in the Netherlands!)

Don't miss what's next. Subscribe to Peter Ullrich Newsletter:
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.