O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required