Introduction

Our industry is moving toward functional programming, but your object-oriented experience is still valuable. Scala combines the power of OO and functional programming, and Pragmatic Scala shows you how to work effectively with both. Updated to Scala 2.11, with in-depth coverage of new features such as Akka actors, parallel colle

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Wrapping Up

Pragmatic Scala — Pragmatic Programmers (134 / 140)

👈 Using Mockito | TOC | Appendix 1 Installing Scala 👉

Even though Scala has sensible static typing and quite a few errors will be caught at compile time, unit testing is still important. It can greatly help to get quick feedback that the evolving code continues to work as expected. You could use JUnit to test Scala code, but ScalaTest is a nice tool for testing both Scala code and Java code. In addition to providing fluency of tests, ScalaTest makes it quite easy to use the mocking libraries popular in Java.

We’ve come to the end of this journey and reached a beautiful shore. You’re now ready to apply the concepts you’ve learned. Enjoy Scala’s concise and expressive power as you begin to create real-world projects in Scala. I sincerely hope you benefit from this book and will be able to apply the concepts for greater good. Thank you for reading it.

Footnotes

Copyright © 2015, The Pragmatic Bookshelf.

👈 Using Mockito | TOC | Appendix 1 Installing Scala 👉

Add a comment

Related posts:

Reduce Cyclomatic Complexity

Cyclomatic complexity was first described by Thomas J. McCabe in his December 1976 paper “A Complexity Measure.”[48] It represents the number of paths through code. Code with just one conditional or…

Use the Moon Phases for Inspiration and Planning

Being flexible and allowing has never been my strong point, I’ve always erred more on the side of control, regime and routine. But I find my desperate need for control subsides when I find real…

Feeling it

I grew up learning music since I was about 7. Always equated music=piano for a long time, and eventually got pretty good at it. The keys helped me process difficult feelings and kept me in company in…