Author: Vineet Chauhan

photo of a man programming

Scala’s Fold, FoldLeft, and FoldRight Functions: A Comprehensive Guide

Reading Time: 3 minutes Functional programming is becoming increasingly popular and widely used in today’s programming world. And Scala is a language that fully supports functional programming. One of the most valuable functions in Scala is the fold function, which is available in three forms: fold, foldLeft, and foldRight. This blog post will explore these three functions and understand how they work. Fold The fold function takes an initial Continue Reading

Hands-on read JSON data from any external API with Scala

Reading Time: 3 minutes Hi folks, In this blog, we will write HTTP server + client code which calls the below external API using Scala and play framework Project Setup We must install the SBT command-line tool (at least JDK 8). In this blog, we’re using SBT version 1.7.1 to install Play Framework version 2.8.1. Step 1: First, we need to add some dependencies in the build.sbt file. Step Continue Reading

Hands-on CRUD operation with Scala-Play

Reading Time: 3 minutes Hi folks in this blog, we perform CRUD(Create, Read, Update, Delete) operations using Scala, Play framework, and Postgres Slick Project Setup We must install the SBT command-line tool (at least JDK 8). This Project uses SBT version 1.6.2 to install Play Framework version 2.8.1 and the Postgres database. Now you need to download the hello word template in play scala. Run ‘ sbt new playframework/play-scala-seed.g8’ Continue Reading

two businessmen outdoor using technology

All You Need To Know About SSL CERTIFICATE

Reading Time: 3 minutes SSL certificate is a digital certificate that validates a website’s identity and allows an encrypted connection. Which stands for Secure Sockets Layer. A security protocol that creates an encrypted link between a web browser and a web server. Companies and organizations need to add SSL certificates to their websites to protect online transactions and keep customer details private and secure. In short: SSL keeps internet Continue Reading

GREAT START WITH THE REST API

Reading Time: 2 minutes REST APIs give us lightweight, flexible ways to integrate applications. And have emerged as the most straightforward method for connecting parts in microservices architectures. What is a REST API? API stands for an application programming interface. API is a protocol that defines how applications or devices can connect to and communicate with each other. A REST conforms to the design principles of the REST. REST Continue Reading

Smart Searching Through Trillion of Research Papers with Apache Spark ML

Great start with filter, map, flatMap, and for comprehension

Reading Time: 2 minutes Scala has a very large collection set. Collections are like containers that hold some linear set of values, and we apply some operations like filter, map, flatMap and for comprehension of the collections and manipulate them in a new collection set. filter Selects all elements of the collection that satisfy a predicate. Params: p- It used to test elements Returns: A new collection consisting of Continue Reading

background

All You Need To Know About Auth0

Reading Time: 2 minutes Auth0 provides an authentication and authorization platform for your application. It helps to build and run a secure identity infrastructure including authentication, data protection, and password management. Purpose of Use Auth0 for Authentication in your Application Implementation of authentication and authorization is the problem that developers face constantly in their workdays. And they should create a program that will provide the best user experience. Previously, Continue Reading

GREAT START WITH PLAY FRAMEWORK

Reading Time: 2 minutes In this blog, We’ll learn how to set up the Play Framework, we’re going to create our first project with the Play Framework using Scala. Additionally, we’ll examine its built-in testing capabilities. Project Setup We need to first install the sbt command-line tool (and at least JDK 8). In this blog, we’re using sbt version 1.6.2 to install Play Framework version 2.8.13. Command-line Tools We Continue Reading

Some Important Features of Scala

Reading Time: 3 minutes Scala is a programming language that supports both functional programming and object-oriented programming. It has powerful features. Scala language is based on java language so if you are aware of java it is easy to learn Scala Features of Scala Type inference Singleton object Immutability Lazy evaluations Case classes and Pattern matching String interpolation Higher order function Trait Rich collection set Type Inference There is Continue Reading

scala futures

Simple Guidance For You In Case Class And Pattern Matching

Reading Time: 2 minutes Case classes are like regular classes that have default apply() method which handle object construction. There is no  need to use a new keyword to create an object. Case class provides purely functional code with immutable objects. Case classes are a representation of a data structure with the necessary methods. It support pattern matching. Syntax of case class:- Example:-  When you create a case class Continue Reading