Home » JVM Languages » Page 2

JVM Languages

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 ...

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 ...

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 »

Groovy Script Tutorial for Beginners

In this article we will see how easy it is to write scripting in Groovy, with a practical example that serves a common use case. As you would probably know, Groovy is a JVM Language which is defined to run on top of Java Virtual Machine. Having said that it borrows all Java’s capabilities alongside providing its own extra features ...

Read More »

Groovy Dictionary Example

In this article we will see how to have a Dictionary in Groovy. Groovy does not have a built in dictionary like Python language. However we can use the Map data structure for manipulating a Dictionary. To understand this article, the reader should have a better understanding of how Map works in Groovy. You can read this Groovy-Map-Example for the ...

Read More »

Groovy Json Example

In this article we will see how to manipulate JSON data in Groovy. JSON (JavaScript Object Notation) is the much preferred data format these days for the exchange of data between the interested parties (client and server), due to its light weight nature and ease of use. Groovy has a built in support to work with JSON data – be ...

Read More »

Grails on Groovy Tutorial

Grails is a web development framework integrated with JVM that lets developers to develop applications by using built-in features like integrated ORM, DSL (Domain Specific Languages), runtime and compile time meta programming, and concurrent programming. In this tutorial, I will show you how to develop Grails application step by step with extra theoretical informations about Grails. Table Of Contents 1. ...

Read More »

Groovy String Example

1. Introduction String related manipulations have been always important in almost all programming languages. If you are using Groovy, you will do String manipulation in an easy way. In other words, it is very easy to split, add, manipulate, initialize, escape Strings in Groovy. In this tutorial I will show you how to use Groovy String efficiently.       ...

Read More »

Groovy Closure Example

1. Introduction A closure is an anonymous code block that can take arguments, return value, and also can be assigned to a variable. When it comes to Groovy, a closure can contain a variable scope defined outside of the closure expression. Groovy offers extended features to formal closure definition. By using this features, we can write our code more dynamically ...

Read More »