What You May Not Know About `with`

Presented by: Brian Underwood and Adilet Abylov


About this talk

In this webinar, Brian Underwood and Adilet Abylov discuss Elixir’s with clause, a feature that can help simplify control flow. Although many developers have encountered with, it’s often not fully understood or used to its full potential.

Please, accept marketing-cookies to watch this video.

Brian and Adilet discuss:

  • How with is often perceived as expressing the “happy path”, but how it’s a bit more complex than that
  • How else can be used for specific error handling
  • Some of the common mistakes that can occur when patterns don’t match as expected.
  • Practical techniques for managing errors, such as using helper functions
  • The approach of adding context with tagged tuples
  • Deciding when to handle or propagate errors in different layers of an application
  • Single-clause with statements for handling errors or performing side effects like logging

What you’ll learn:

  • How the with clause sometimes simplifies and sometimes complicates control flow in Elixir
  • How the  else clause changes the behaviour of with
  • Approaches for clean and maintainable error handling
  • When single-clause with statements are useful

From Minimum Viable Product to Mission Critical

From Minimum Viable Product to Mission Critical

Camjar Djoweini explains how fintech teams move from MVP to mission-critical systems without breaking under real-world demands.

Messaging in Regulated Markets: Compliance from Day One

Messaging in Regulated Markets: Compliance from Day One

Piotr Nosek explains how compliance-first messaging design helps teams move faster, reduce risk, and build trust in regulated industries.

Selling cats as a develper- Piotr Nosek

Selling Cats as a Developer

In Selling Cats as a Developer, Piotr Nosek explores how to advocate for BEAM technologies by ditching jargon in favour of clarity, benefits and cats.