Wrapping Up

In this chapter, you saw firsthand the conciseness and expressiveness of Scala in building the net asset application. We used quite a number of features in this program: interaction with standard input and output; reading and writing files; loading, parsing, creating and saving XML documents; extracting values from XML documents using XPath-like query and powerful pattern matching; and getting data from a web service. As a final step we made the program concurrent and got faster response with almost no additional effort.

You’ve learned how to program with Scala, but our discussion can’t be complete without learning about unit testing. Let’s get to that next.

Get Pragmatic Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.