Chapter 3Refactor and Enhance Elm Applications

In the previous chapter, you learned how to use the Elm Architecture to “like” a photo in the Picshare application. Unfortunately, you accumulated some technical debt in that process. Don’t worry. Elm makes refactoring tech debt safe thanks to static types. In this chapter, you will refactor the application to simplify the code. Regardless of the language, refactoring is a common practice in programming and helps improve understanding and maintainability of codebases.

You will also enhance the application by allowing users to comment on the photo. In any real-world application, your boss will probably request new applications features from time to time, and Elm is well suited to new feature development. ...

Get Programming Elm 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.