TDD, Phoenix, LiveView,

& You

by Jake Prem

Who am I?

  • Software Engineer at TaxJar
  • Previously at SmartColumbus OS
  • Other stuff

Why this talk?

  • LiveView is "the new hotness"
  • Evaluating testing strategies
  • TDD can be helpful
  • Understanding the Phoenix ecosystem

What is TDD?

  • Basically write tests before code
  • Better designed code
  • Validates assumptions
  • Makes it easier to jump into unfamiliar code

What is Phoenix?

  • HTTP Requests and sockets
  • HTML generation utilities
  • Ecto?

Phoenix LiveView

  • Pages update in "realtime"
  • Lower friction than SPA
  • Write idiomatic Elixir code
  • Similar to GenServer
  • Leverages sockets and javascript under the hood

Have you ever tried testing Phoenix?

Let's write a few tests

So Floki?

Let's add a LiveView!

Testing LiveView

TDD

By jprem

TDD

  • 221