Posts

Showing posts from December, 2023

Exception

Data Structure

  A data structure is a way of organizing and storing data in a computer's memory so that it can be used efficiently. It defines a set of rules for how data can be stored and accessed. The choice of a data structure depends on the nature of the data, the operations that need to be performed, and the efficiency requirements. Linear data structure is the arranging data in a sequential manner. Arrays, LinkedList, Stack and Queue are linear data structures. In these data structures one element is connected to only one another element in a linear form. Non-linear data structure is arranging data in random order. Here one element is connected to n number of elements. Tree and graph are non linear data structure.

CSS

  Cascading Style Sheet (CSS) is to to format the webpage. It describes how the HTML elements are displayed in a webpage.   Its flexibility and cascading nature make it a powerful tool for creating visually appealing and responsive user interfaces. Linking CSS to HTML: Inline: <div style="property: value;">Content</div> Internal: <style> /* CSS code */ </style> within the HTML file. External: Link an external CSS file using <link rel="stylesheet" type="text/css" href="styles.css" > Key Concepts Selectors Selectors target HTML elements to apply styling. element, universal selector (*), id name(#<id name>), class name(.<class name>) Examples: div , .class , #id , :hover . Properties Properties define the style to be applied. Examples: color , font-size , margin . Values Values specify the setting for a property. Examples: #0000FF (color), 16px (font size), 10px 20px (margin). Box Model The box model des...

Docker

 Docker is a platform and contains set of tools that facilitate creation, deployment and execution of the application in a portable and light weight containers. Containers provide isolated environment for your code.  Containers enable developers to package applications and their dependencies into a single unit, ensuring consistency across different environments and simplifying the deployment process. Key Concepts are Containerisation : Docker uses containerisation technology to encapsulate applications and their dependencies into containers. Containers are isolated, lightweight, and share the host operating system's kernel, making them efficient and portable. Docker Image: A Docker image is a lightweight, stand-alone, executable package that includes everything needed to run a piece of software, including the code, runtime, libraries, and system tools. Images serve as the foundation for creating containers. Docker Hub: Docker Hub is a cloud-based registry where developers can ...

Inversion of Control vs Dependency Injection

   Inversion of Control (IoC) :  IoC or  Dependency Inversion Principle (DIP) is one of the SOLID principles of object-oriented programming. It is a design guideline that promotes the creation of flexible and maintainable software by inverting the direction of dependency relationships. The Dependency Inversion Principle consists of two key concepts: High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions. Here's a breakdown of the key concepts: High-level modules and Low-level modules: High-level modules are modules or components that define the main functionality or business logic of an application. Low-level modules are the implementation details or components that support the high-level modules. Depend on Abstractions: Instead of high-level modules depending directly on low-level modules, both should depend on abstractions (interfaces or abstract...

Spring Framework

Image
 Spring is an open source frame work for building enterprise java applications. Spring contains spring core and collection of projects.  Spring Core, often referred to as the core module of the Spring Framework, is the foundational module that provides the essential components and features for building Java applications. Spring Core serves as the foundation for other modules within the Spring ecosystem, such as Spring MVC (Model-View-Controller) for web applications, Spring Data for data access, and more. The key concepts of spring core are: Inversion of Control (IoC):  Spring Core implements the principle of Inversion of Control (IoC), which means that the control of object creation and management is shifted from the application code to the Spring container. This promotes loose coupling and easier maintenance of code. Dependency Injection (DI): Dependency Injection is a core concept in Spring Core. It allows developers to inject dependencies into classes rather than hard...