Posts

Spring Framework

Image
 Spring Framework Overview of Spring Framework A complete Java platform aimed at enterprise application development. Simpler application configuration and development comparing to other enterprise application framework like EJB. Most famous for its inversion of controller container for dependency injection. The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications. A key element of Spring is infrastructural support at the application level. Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments. Features of Spring Framework Core technologies - dependency injection, events, resources Testing - mock objects, TestContext framework Data Access - transactions, DAO support Spring MVC and Spring WebFlux web frameworks Integration - remoting, JMS, JCA, JMX Languages - Kotlin, Groovy Advant...

React Component Lifecycle and Methods

Image
  Overview Each component has several “lifecycle methods” that you can override to run code at particular times in the process. Initializing props state Mounting constructor() static getDerivedSatteFromProps() render() componentDidMount() Updating static getDerivedSatteFromProps() render() componentDidUpdate() shouldComponentUpdate() getSnapshotBeforeUpdate() Unmounting componentWillUnmount() Error Handling static getDerivedStateFromError() componentDidCatch() Life Cycle Methods Constructor() The constructor() method is called before anything else, when the component is initiated, and it is the natural place to set up the initial state and other initial values. If you don't initialized state and you don't blind methods, you don't need to implement constructor for your React component. The constructor() method is called with the props, as arguments, and you should always start by calling the super(props) before anything else. we don't use  setState() method in the constr...

React JS

Image
  What is React JS? React JS is java script frontend library. And also it is developed and maintained by Facebook and Instagram . It is an open-source, component based frontend library responsible only for the view layer of the application. React first deployed on Facebook's newsfeed in 2011 on Instagram in 2012. It suitable for large web application which use data and change over the time without reloading the entire page. It aims at Speed , Simplicity and Scalability . It is currently one of the most popular JS libraries and has a strong foundation and large community behind it. It encourages the creation of reusable UI components, which present data that changes over time. React implements one-way react data flow, which reduces the boilerplate and is easier to reason about than traditional data binding. React Advantages It uses virtual DOM which is a JavaScript object. This will improve apps performance, since JavaScript virtual DOM is faster that the regular DOM. It can be used...

NodeJs

Image
  What is NodeJS? NodeJS is an open source, cross platform runtime environment for server-side and networking applications. And also it is free. NodeJS runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.). It is developed by Ryan Dahl. And created with the aim of creating real-time websites with push capabilities (websockets). NodeJS runs on V8 engine, the core of Chrome's JavaScript engine, outside of the browser, single threaded, non-blocking. NodeJS uses JavaScript on the server, an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. "NodeJS uses asynchronous programming". NodeJS comes with several JavaScript libraries that help basic programming. 'npm' is the largest in the world for open source libraries. Example: NodeJS Application Features of NodeJS Asynchronous and Event Driven -  All APIs of Node.js library are asynchronous, that i...

JavaScript

Image
  Introduction JavaScript is the world's most popular programming language of the Web and it is easy to learn. By default, it run using a single thread. Though there are ways to create new threads. but it is considered as single threaded language. JavaScript does not wait for I/O operations to get completed, instead it continues the execution of the program. This is called as non-blocking I/O. JavaScript is asynchronous because of the NIO nature. JavaScript enables interactive web pages and is an essential part of web applications. It has application programming interfaces (APIs) for working with the text, dates, regular expressions,  standard data structures and the Document Object Model (DOM). JavaScript engines were originally used only in web browsers, but they are now core components of other runtime systems, such as Node.js and Deno . These systems are use to build servers and are also integrated into frameworks, such as Electron and Cordova , for creating a verity of a...

NoSQL

Image
  What is NoSQL? "NoSQL is an accidental term with no precise definition" NoSQL concept was introduced Carl Strozzi in 1998. NoSQL is a non-relational data management system Schema free (doesn't require fixed schema) Easy to scalable and replication Eventually consistent Open source No transaction support NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.  NoSQL database includes simplicity of design, simpler horizontal scaling to clusters of machines and finer control over availability. NOSQL systems are also sometimes called "Not only SQL". The data structures used by NoSQL databases are different from those used by default in relational databases which makes some operations faster in NoSQL. Why use NoSQL? Remove the burden of data structures mismatch between application in-memory and relational databases. NoSQL databases concept become popular with inter...