Enterprise applications encounter many common problems that have been known about for a long time, with some solutions being available for these. In some scenarios, design patterns are helpful for choosing the best possible solution—these are approaches that have already been created and optimized to solve recurring problems that are present in the programming world. Design patterns aim to solve some of these common design problems in an optimized fashion. Applying design patterns with Kotlin makes the code more elegant, concise, structured, flexible, reusable, and able to address these problems in an optimized way, which saves a lot of time and effort when developing applications or a piece of software.
The following topics will be covered in this chapter:
- What design patterns are and their benefits
- Different categories of design patterns...