官术网_书友最值得收藏!

Summary

By now, we have a fair idea about what a design pattern means and how it can affect the way we write our code. We've iterated the most famous design patterns out there, and we have outlined the main differences between them. We saw that in many cases, we could use Scala's features in order to make a pattern obsolete, simpler, or different to implement compared to the classical case for pure object-oriented languages. This book will show you how Scala makes it easier to write high-quality code.

Knowing what to look for when picking a design pattern is important, and you should already know what specific details to watch out for and how important specifications are.

Last but not least, we advise you to run the examples in this book, and we have provided some pointers that should make this really easy. In some cases, creating a complete solution using SBT or Maven might be too much hassle and something unnecessary, but we believe it is a good practice to follow. Additionally, the approaches we explained are used throughout the industry and will be beneficial outside the scope of this book.

In the next chapter, we will get straight to the practical part of this book, where we will look at traits and mixing compositions, what they are useful for, and how and when to use them.

主站蜘蛛池模板: 论坛| 化隆| 扬中市| 仙游县| 如东县| 瑞昌市| 宜宾市| 绵阳市| 永寿县| 望奎县| 乌拉特中旗| 乐陵市| 高密市| 阜平县| 东乡族自治县| 久治县| 沁阳市| 尉犁县| 镇江市| 浏阳市| 高唐县| 红河县| 南京市| 兴海县| 海安县| 哈巴河县| 攀枝花市| 台东市| 东山县| 荔波县| 兴和县| 福建省| 信丰县| 梁平县| 井陉县| 抚宁县| 拜泉县| 嘉善县| 莱阳市| 内黄县| 渭源县|