Glenn Engstrand

Scala vs Java

Both Scala and Java are programming languages that target the JVM. Scala was originally invented with the intention to become a better Java yet eighteen years later many more developers write code in Java than Scala. What happened? In this blog, I cover the lessons learned by one technology company that chose to standardize backend microservice development on Scala instead of Java. Here you will learn about the various programming language features and patterns exclusive to Scala that give it an edge over Java. You will also learn about the difficulties that Java developers face when learning Scala. We will go over the differences between Scala and Java: the good, the bad, and the ugly.

The article itself will display at the bottom of this topic. Here are the references with links to online resources used in the making of this evaluation.

type of sourcereference link
article belowScala vs Java
online dashboardIEEE Spectrum Programming Language Ratings
online dashboardGoogle Trends
official introductionCase Classes
official introductionMatch Expressions
official introductionType Inference
blogHigher-kinded types: the difference between giving up, and moving forward
overviewCats
blogFor-Comprehension Free Monads in Scala
home pageZio
blogType Classes
documentationAkka Streams
blogExtension Methods
home pageCirce
blogThe Magnet Pattern
source codeMongo DB Java Driver
book chapterDSL
blogScala Build Tool
book chapterShapeless
home pageWhat is Apache Spark?
blogTagless Final
blogCake Pattern
blogdiamond dependency in multi-inheritance
tutorialRuby Mixins
online dashboardStack Overflow Trends
official introductionScala Implicit Conversions
blogLifting
referenceSpecial Symbols
source codeScala on Scalatra
source codeJava on Spring

Scala vs Java

Having trouble viewing the embedded document? Feel free to download the PDF for offline viewing.

Here are some resources that I ran across after publishing this blog. Last year, Forbes published an article entitled Why Scala Is Seeing A Renewed Interest For Developing Enterprise Software which covers more historical context. Quite recently, Stack Overflow published their 2022 Developer Survey where the loved vs dreaded section for programming languages revealed that 50.3% of developers surveyed loved Scala while the remaining 49.7% dreaded it. By comparison 45.75% of developers surveyed loved Java while the remaining 54.25% dreaded it.

Comments are closed.