Home » JVM Languages » Scala

Scala

Scala forall() Example

1. Introduction In this lesson, we will look at some excellent examples of Scala’s forall() function and how it can be used various scenarios to apply predicate logic over a collection of elements. It is one of the simplest functions to use in Scala and apply a simple logic in terms of functional programming as it allows us to define an ...

Read More »

Scala Tutorial for Java Developers

1. Introduction In this lesson, we will look at some excellent examples with which Java programmers can get started with Scala very fast and learn some important concepts that will help them call themselves as Scala professionals in a very short time. Well, the biggest challenge for any programmer, may he be comfortable with Java, Kotlin, Python or any other ...

Read More »

Scala HTTP Example

In this Example series, we will see how to work with HTTP (Hyper Text Transfer Protocol) through a Web Application in Scala using Scalatra and Scalate. The following table shows an overview of the entire article. Table of Contents 1. Pre-Requisites 2. Environment 3. HTTP 3.1 What is HTTP 3.2 HTTP Request 3.3. HTTP Response 4. Scalatra, a Web Framework ...

Read More »

Scala REST Example

In this Example series, we will see how to have a REST (Web) Application in Scala. The following table shows an overview of the entire article: Table of Contents 1. Pre-Requisites 2. Environment 3. REST 3.1 What is REST 3.2 REST Client 3.3. Common Use Cases 4. Scalatra 4.1 Installing Scalatra 4.2 Pre-requisites – Installing Conscript and Giter8 4.3 SBT ...

Read More »

Functional Programming in Scala

In this Tutorial article, we will see how to work with Functional Programming in Scala Programming Language. According to Wikipedia, the definition of Functional Programming is as follows. In computer science, functional programming is a programming paradigm – a style of building the structure and elements of computer programs—that treats computation as the evaluation of mathematical functions and avoids changing-state ...

Read More »

Scala Tutorial for Beginners

In this Tutorial article, we will see how to work with Scala Programming language, which is similar to Java but has got lot more advancements, as it was designed to overcome the pitfalls/shortcomings of Java programming language. According to Wikipedia, the definition of Scala Programming language goes as follows. Scala (SKAH-lah) is a general purpose programming language. Scala has full ...

Read More »