Tag Archives: scala

Class and Object keyword In Scala Programming


Scala is hybrid language contain both functional and object oriented functionality. Scala was created by Martin Odersky. Scala run on JVM, and you can also use java api with in scala program. You can write Scala program with two keyword … Continue reading

Posted in Scala | Tagged , , | Leave a comment

Avoiding Boilerplate with PureConfig


The PureConfig library of Scala avoids boilerplate while loading configurations, which has always been an error-prone and monotonous procedure. The common way that we follow is deserializing each field of the configurations, which is again a cumbersome task. The more … Continue reading

Posted in Scala | Tagged , , , | Leave a comment

Finagle : Controlling the Future Of RPC systems


In this blog we’ll use Finagle to build a very simple HTTP server that is also an HTTP client — an HTTP proxy. So Let’s Begin With Some Introduction to the Finagle. Finagle is an extensible Remote Procedure Call (RPC … Continue reading

Posted in Java, Scala | Tagged , , , , , , | 1 Comment

Akka HTTP vs Other REST API Tools


Hi Folks ! Lately there have been a lot of tools that allow us to build rest APIs like the following : Akka Http Play Scalatra http4s Finch Spray In my blog today, I will be discussing Akka Http and … Continue reading

Posted in Akka, akka-http, Play Framework, Scala | Tagged , , , , , , , | 1 Comment

First interaction Artificial Neural Network


I hated biology in my school days and loved mathematics. After a long period of time I get to learn something which combines both mathematics and biology together, that is Artificial Neural Network short for ANN, inspired by biological Neural … Continue reading

Posted in Scala | Tagged , , , , , , , , , | 1 Comment

Scala Map


Scala Map is a collection of Key-value pair. A map cannot have duplicate keys but different keys can have same values i.e keys are unique whereas values can be duplicate. Maps in Scala are not language syntax. They are library … Continue reading

Posted in Scala | Tagged , , , | 2 Comments

Self type Annotations in Cake Pattern


Self type annotations/references allows you to redefine this and is a way to declare the dependencies required by a component. Using a trait mixin, you can inject various implementations of dependencies In layman terms, Self type annotations/references are to ensure … Continue reading

Posted in Scala | Tagged , , , , | Leave a comment

The Tale of ‘Tail Recursion’


Recursion in computer science is a method where the solution to a problem depends on solutions to smaller instances of the same problem (as opposed to iteration). Recursions are really cool and they are highly expressive. For example consider factorial … Continue reading

Posted in Scala | Tagged , , | 4 Comments

Scala Trait and Mixin – Points to Remember


Trait can be viewed not only as interfaces in other languages, but also as classes with only parameterless constructor. Whenever there is some code in trait, the trait is called mixin. trait Alarm { def trigger(): String } In scala … Continue reading

Posted in Best Practices, Functional Programming, Scala | Tagged , , , , , , , , , , , , , | Leave a comment

Neo4j With Scala: Rest End Points with AKKA HTTP


Hello Folks, Welcome back again in the series of Neo4j with Scala . Let’s start our journey again. But before starting our journey here is the links for recap who join late us in the journey : Getting Started Neo4j … Continue reading

Posted in akka-http, Scala, scalatest | Tagged , , | 1 Comment