Akka, as a mature concurrency solution in production environment, must have a set of perfect error exception handling mechanism. This article mainly discusses the supervision...
Scala is a multiparadigm programming language, a Java-like programming language designed to implement a scalable language and integrate features of object-oriented and functional programming. Scala...
Formally speaking, Scala is a multi-paradigm programming language that combines the features of object-oriented programming with functional programming. Scala, like Java, runs on a Java...
Since static defined classes and objects violate the integrity of the object-oriented programming specification, Scala was designed without the concept of the static keyword. Static...
Akka is an Actor model-based concurrency framework built on top of the JVM, improving the platform for building scalable, resilient and responsive concurrent applications. This...
Experience functional data structures and protocol operations and how to implement them elegantly through tail recursion, including trying to take full advantage of Scala's language...
Functional programming comes at a time when Moore's Law is failing and high concurrency is the way of the future. But concurrency is inherently plagued...
In Java, the creation of functions (functions declared in a class, which we prefer to call methods, behaviors) depends on a class, an abstract class,...
Java uses the interface keyword class to declare an interface. When a concrete class implements the interface, the implements keyword is used. The existence of...
1. Method 1.1 Definition method Syntax Example Implement an addition operation Reference code 1.2 Return Value Type Inference When defining a method, generally omit the...
This chapter mainly introduces how to implement Scala class inheritance, and the concepts derived from inheritance such as superclass, abstract class, overwrite, supertransition object and...
Implicit conversion is a common operation in Scala's advanced applications. It is essentially based on the OCP open close principle, and it can be used...
Type checking and conversions are implemented in every language, such as Instanceof and isInstance in Java, as well as Scala, but Scala has powerful pattern...