Chapter 4. Talking to servers

This chapter covers

  • Using decoders to validate and translate JSON
  • Handling descriptive errors with results
  • Communicating over HTTP with commands

We’ve made great progress! Users of our Photo Groove application can now do quite a bit:

  • Select a thumbnail to view a larger version
  • Choose Small, Medium, or Large thumbnail sizes
  • Click the Surprise Me! button to select a random thumbnail

Our manager is impressed with our progress but has even more in mind: “It’s time to take Photo Groove to the next level. The highest level. The cloud level. That’s right, we’re going to have Photo Groove start getting its photo information from our servers!”

As with last time, our manager has one more minor feature request: “There’s ...

Get Elm in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.