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

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.

主站蜘蛛池模板: 缙云县| 榆树市| 建瓯市| 湖南省| 女性| 通城县| 白山市| 揭东县| 黑山县| 雷山县| 茶陵县| 阿拉善左旗| 怀柔区| 新巴尔虎左旗| 都兰县| 武冈市| 泸定县| 松溪县| 中卫市| 凤山市| 万宁市| 平南县| 兰州市| 广安市| 扶风县| 资中县| 丰镇市| 封开县| 杭锦旗| 西华县| 衡阳县| 交口县| 资中县| 皋兰县| 司法| 西盟| 鄢陵县| 孝昌县| 桓台县| 汪清县| 化隆|