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

How to Think About Game Servers (Pt 2)

How to Think About Game Servers (Pt 2)

In his latest game server webinar, Hernan Rivas Acosta explores synchronisation, latency and lag compensation in multiplayer games.

Concurrency, Understanding the BEAM Limits

Concurrency, Understanding the BEAM Limits

Lorena Mireles Rivero explores BEAM concurrency limits and how overload impacts system performance.

Keeping Real-Time Communication Platforms Online During Peak Demand

Keeping Real-Time Communication Platforms Online During Peak Demand

Bartłomiej Górny explores why real-time systems fail under peak demand, and how architecture, scaling, and testing keep them running.