scala

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

Different methods are used in string operation – Scala

Reading Time: 3 minutes Scala Strings are one of the most important features of scala. Basically, it is a sequence of characters that uses the linear approach to store data. In scala, the string is immutable in nature and hence we cannot change its original state. Scala language provides us various methods to play with strings we can use these methods on strings to get the desired output. If Continue Reading

background

How to learn Scala ?

Reading Time: 2 minutes In this article we will going to cover some introductory part about Scala programming language. Introduction to Scala A contemporary multi-paradigm programming language called Scala was also created to describe common programming patterns in a clear, beautiful, and type-safe manner. Surprisingly It smoothly combines elements of functional and object-oriented languages. Scala as Object Oriented Programming Language Every value is an object in Scala, making it Continue Reading

Visualizing data - abstract purple background with motion blur, digital data analysis concept

Synchronous and Asynchronous Fibers in ZIO

Reading Time: 2 minutes In this blog post, we will discuss operations on fiber both synchronous and asynchronous with the help of an example. ZIO ZIO is a highly concurrent framework, powered by fibers, which are lightweight virtual threads that achieve massive scalability compared to threads, augmented with resource-safe cancellation, which powers many features in ZIO. However, this powerful concurrency model lets you do more with less, achieving highly Continue Reading

Bearded confident maintenance engineer in white shirt is working in database center

Some amazing Thread Methods which will make your task easy

Reading Time: 3 minutes Multithreading is one of the very important concepts in Scala programming. It allows us to create multiple threads in our program to perform various tasks. Now Scala Thread class provides us many methods which make our tasks easy. In this blog, we are going to discuss a few of these methods. Scala Thread Methods Scala threads provide us various methods to deal with threads. In Continue Reading

Data centre

Empty values in Scala

Reading Time: 3 minutes There are different values in scala which we used as empty values. In this blog, we are going to discuss these empty values like what are these values, how to use them, etc. Null Type Null extends all the reference types even the classes and traits which are defined by us. We can assign Null to the reference type (List, Option, etc) but not to Continue Reading

What is LRU cache and how to implement it in scala?

Reading Time: 2 minutes In this blog, we are going to know about LRU Cache and how to implement it in Scala Language. What is LRU Cache? Least Recently Used Cache is an algorithm used for cache eviction. As the name is suggesting Least Recently Used item will be evicted here. Basically, it removes the least recently used page/frame when the capacity or size of the cache is full Continue Reading

Computer code on screens

Let’s find out the difference between Thread and Runnable

Reading Time: 2 minutes Multithreading is a process where we are uses multiple threads (threads are the sub-processes, they are lightweight and occupy less space) to perform various tasks simultaneously. Multithreading is used to achieve multitasking. There are two ways by which we can create threads in SCALA By extending the Thread class By extending the Runnable interface Now there is a question that what is the difference between Continue Reading

How To Quality-Check Python Code Using Pylint On CI?

Reading Time: 2 minutes In this article, we will talk about how to quality-check Python code using Pylint on CI. Code Quality Through CI As we know, code quality is an important aspect of any project. It is the responsibility of every developer to quality-check the code before pushing it to the repository. However, to enforce this and implement the concepts of Continuous Integration (CI), we need to have Continue Reading

Metaverse digital Avatar, Metaverse Presence, digital technology, cyber world, virtual reality

Introduction to ZIO Fibers and Fiber Data Type

Reading Time: 3 minutes In this blog post, we will discuss fibers in ZIO, and how are they different from threads. Introduction ZIO is a highly concurrent framework powered by fibers that are lightweight virtual threads. They enable tremendous scalability compared to threads and are reinforced with resource-safe cancellation, which supports several features in ZIO. What are Fibers? Fibers are lightweight equivalents of OS threads which represent an ongoing Continue Reading

two businessmen outdoor using technology

How To Achieve Concurrency in ZIO?

Reading Time: 2 minutes This article is about ZIO’s support for asynchronous, parallel and concurrent programming and we will see how we can achieve concurrency using fibers model. Since ZIO is built on a fibre concept, we will start by studying what fibres are and how they vary from threads. We will learn the basic operations on fibers including forking them, joining them,and interrupting them. What are Fibers ? Continue Reading

Why cache is a better way to store data?

Reading Time: 4 minutes Hi everyone I hope you are fine and learning every day. So in the previous blog, we learned about RabbitMq and learned how we can send messages from applications from one to another. If you have not read that blog till now then you can read it using this link. Today we are going to learn about a new topic in this blog which is Continue Reading

background

SOLID Principle in Scala

Reading Time: 3 minutes Introduction SOLID is one of the most popular design principles in object-oriented software development. Adopting these practices can prevent code smells, refactoring code, and Agile or Adaptive software development. It was promoted by Robert C Martin and is used across the object-oriented design spectrum. It’s a mnemonic acronym for the following five design principles : I’m going to try to explain SOLID Principles in the Continue Reading