Code coverage tools are software programs that measure the extent to which a software application’s source code is tested by a test suite. These tools analyze the source code of an application and determine which lines of code are executed during testing and which lines are not. Here are some popular code coverage tools: JaCoCo: Continue Reading »
Ruby on Rails
What is Rails? Rails is a web application development framework written in the Ruby programming language. It aims to simplify web application programming by assuming what every developer needs to get started. It allows you to write less code and do more than many other languages and frameworks. Experienced Rails developers also report that it Continue Reading »
Spring Boot Actuator
The actuator is mainly used to expose operational information about the running application — health, metrics, info, dump, env, etc. It uses HTTP endpoints or JMX beans to enable us to interact with it. Once this dependency is on the classpath, several endpoints are available for us out of the box. The main benefit of Continue Reading »
Various Techniques to minimize code in React JS
There are several ways to minimize code in React JS.. Here are a few tips: Use functional components: Functional components are simpler and require less code than class components. They are also easier to read and understand. Use destructuring: Destructuring allows extracting specific values from objects or arrays. This can make your code more concise Continue Reading »
Generating PDF ( Pdfpro)
Generating a PDF file can be a useful and necessary task in many software applications. PDFPro is a powerful tool that can be used to create PDF files programmatically. In this blog post, we will explore how to generate a PDF file using PDFPro with code, as well as the API that can be used Continue Reading »
Role of equal() and hashCode Methods()
In Java, HashMap is a widely used data structure that stores elements in key-value pairs. It provides constant-time performance for basic operations like adding, removing, and accessing elements. The implementation of HashMap relies heavily on the equals and hashCode methods, which are used to ensure the uniqueness of keys and the efficiency of lookup operations. Continue Reading »
Generating Java Code from Open API
Introduction:- Open API (open application programming interface) Open API Generator can generate code based on an Open API yaml specification. We can generate request models, response models, and controllers of API. Following are the steps to create java code from Open API:- Step 1:-Create a yaml file for your API By using this Swagger.io, below Continue Reading »
Closure in Javascript
As per the definition of Javascript Developer, Closure is defined as the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). But what is meant by the terms “enclosed”, “surrounding state“, and lexical environment? No need to worry, we’ll discuss their terms and closure in this article with Continue Reading »
Spread And Rest Operator
In Javascript, both the spread and rest operators have the same syntax which is three dots(…) but they differ in their function. The main difference between them is that the spread operator expands the array into multiple elements while the resting operator Condenses them into a single element Merge two arrays using the spread operator Continue Reading »
Liquibase
How Liquibase Works? Liquibase is used to track database changes. It is an Open Source Library. We all have worked in systems where the typical database change operation process was to write DDL, and DML scripts in SQL lines which were source-controlled, and database changes were executed by the developer or by some other team. Continue Reading »
Carina Framework
Carina Open Source Testing Tools : Carina is a Java-based test automation framework that unites all testing layers: Mobile applications (web, native, hybrid), WEB applications, REST services, and Databases. Pros ● Carina Framework is built on top of the most popular open-source solutions like Selenium, Appium, and TestNG allowing to reduce dependence on the specific Continue Reading »
Abstract Class And Interface In Java
Abstraction is a process of hiding the internal details of an application from the world and showing only functionality to the user. Example – A man driving a car. The man only knows that applying brakes will stop the car, but he does not know about the inner mechanism of the car or the implementation Continue Reading »
Java 8 Features
Figure 1:Features of Java 8 JAVA 8 is one of the major feature releases of “JAVA programming language” development. It is one of the revolutionary releases of the development of software platforms. The initial version of Java 8 was released on 18 March 2014. It is responsible for upgrading Java programming, tools, JVM, and libraries. Continue Reading »
Single state handles the form in React Js
HTML forms allow users to enter data into input fields that accept text, passwords, emails, numbers, colors, phone numbers, dates, and more. Once all inputs have been collected, the form can be submitted for further processing using the submit button. React Form HTML form elements maintain their own state. Updating this state property is only Continue Reading »
Java’s functional Consumer interface
Quite often, a Java Stream or other component needs an object passed thereto to perform some form of calculation or process, but when the method is complete, nothing returns from the tactic. this is often where Java’s functional Consumer interface comes in handy. According to JavaDoc, the patron interface accepts any object style as input. Continue Reading »
Depth First Search (DFS) – Graph Traversal
Table of contents Definition Conceptual Implementation Java Code & Explanation Applications of DFS Definition Depth First Search (DFS) is an algorithm for traversing Graph Data Structure. The algorithm starts at some arbitrary node in the graph and explores as far as possible along each branch before backtracking. Stack Data structure is needed to keep Continue Reading »
Create Video calls and screen sharing using WebRTC
Hi there, today we are creating a video call app using webRtc, firebase, and react.js. You can also test code available here -> Github 1. Create Room -> First, create a real-time database in firebase and create a room Id using URL params, a randomly created key in the firebase database. // reference of RD Continue Reading »
Derived Query Methods of Spring Data JPA
Use Derived Query Methods of Spring Data JPA Repositories instead of writing your own queries. For the simple jpa queries, we generally use @Query annotation to make the queries, but the best practice says that we should use Derived Query Methods instead. Most developers hardly use one or two derived query methods like findById, and Continue Reading »
Websocket beginner guide
What is WebSocket? WebSocket provides a way to exchange data between the browser and server via a persistent connection. The data can be passed in both directions as “packets”, without breaking the connection and the need for additional HTTP requests. Where can we use WebSocket? we use WebSocket where we need real-time data sharing Continue Reading »
Only Date() you need to go on (A JS developer version)
As you already know everything in JavaScript is an object. One of the objects is so weird in JavaScript called Date(). Today, even experienced devs get nervous with Date() and reach for libraries like ‘date-fns’ and ‘moment’. Yes, you read it at the right moment. which is the most popular library while struggling with date Continue Reading »
JavaScript Arrays
An array is a linear data structure and collection of items stored at a contiguous memory location. Pairs of square brackets [ ] represent an array and all elements are comma (,) separated. An Array can hold multiple values(elements) of any type i.e (String, Number, Boolean, objects, and even other Arrays ) under a single Continue Reading »
Map Method IN Javascript
The map method holds key and value pair, the key can be any datatype. The map method is the function for every array element and returns the new part. The map method does not change the original array. We can create a map method passing an Array to a new Map(). We can set the Continue Reading »
Kotlin Variable
Kotlin Variables are containers for storing data values. The data of variables can be changed and reused depending on conditions. To create a variable we can use var or val, and assign a value to it with an equal sign (=) Variable Declarations Kotlin uses two keywords to declare variables val and var. Example : Continue Reading »
Waterfall Model VS Spiral Model
Waterfall Model:- The Waterfall Model was the first Process Model to be launched. It is also called the successive life cycle model. It is very easy to understand and use. In the waterfall model, each phase must be completed before the next phase begins and there is no overlap in stages. The Waterfall model is Continue Reading »
BLOG ON TIME COMPLEXITY OF ALGORITHM
What is Time Complexity? Time Complexity is the time consumed by the algorithm to complete its execution. Time Complexity is measured by summing the time of all the elementary operations. There are many notations to represent the time complexity like:- (1)Big Oh, O (2)Omega, Ω (3)Theta, Θ But, the most commonly used notation for Time Continue Reading »
HOISTING IN JAVASCRIPT (Variables & Function)
A Person with another programming background is definitely confused with hoisting in Javascript. So let’s deep dive into the hoisting in javascript The Javascript engine creates the global execution context when we execute a piece of Javascript code. Global Execution Context has two phases : (i) Creation Phase (ii) Execution Phase Definition: During the creation Continue Reading »
Software testing tips and tricks
When you hear the term software testing, do you think about one particular type of test — such as functional testing or Non Functional testing — or do you immediately start visualization the complex, interconnected web of test types that comprise the broad world of software testing? Most experienced test engineers and developers understand that Continue Reading »
Access Modifiers in Java
Introduction: In Java, we have to deal with classes, methods, variables, etc. Let’s suppose we have a class and we need to use variables or methods in different classes/packages. OR we want to specify that a variable or method will be accessed within a defined area. To manage the accessibility of any variables, methods, or Continue Reading »
Git Session
“git add .” : is a command used to add a file that is in the working directory to the staging area. “git commit”: is a command used to add all files that are staged to the local repository. “git push”: is a command used to add all committed files in the local repository to Continue Reading »
String handling in Java
The basic aim of the String Handling concept is storing the string data in the main memory (RAM), manipulating the data of the String, retrieving the part of the String, etc. String Handling provides a lot of concepts that can be performed on a string such as concatenation of string, comparison of string, finding the Continue Reading »