Posts for: #Theory/Code

Hibernate Notes

List of Challenges in Hibernate Solves in ORM

  1. Problem of Identity

  2. Problem of Granularity

  3. Problem of Inheritance

  4. Problem of Associations

  5. Problem of Navigation

  6. Problem of Object Lifecycle

  7. Problem of Data Duplication

  8. Problem of Lazy Loading / Performance

  9. Problem of Object Graphs and Cycles

  10. Problem of Data Type Mismatch

  11. Problem of Transactions

  12. Problem of Concurrency

  13. Problem of Querying

  14. Problem of Cascading Operations

  15. Problem of Batching & N+1 Queries

  16. Problem of Schema Evolution

Read more →

React Notes

Introduction to React

React is a JavaScript library for building user interfaces, particularly single-page applications where you need a fast, interactive UI.

Installation

To create a new React app, use:

npx create-react-app my-app cd my-app npm start

JSX (JavaScript XML)

JSX allows writing HTML elements inside JavaScript and placing them in the DOM without using methods like createElement.

Example:

const element = <h1>Hello, React!</h1>;

React Components

React components are reusable pieces of UI. There are two types:

Read more →

Selenium Notes

Important Libraries

from selenium import webdriver 
from selenium.webdriver.chrome.service import Service 
from selenium.webdriver.support.ui import Select 
from selenium.webdriver.common.by lmport By 
from selenium.webdriver.support import expected_conditions as EC 
from selenium.webdriver.support.ui import WebDriverWait 
import time 
from selenium.webdriver.common.action_chains import ActionChains 
from selenium.webdriver.chrome.options import Options 
from selenium webdriver.remote.webelement import WebElement
  1. webdriver

imports the webdriver module from the Selenium library, which allows you to automate browser actions like clicking, typing and navigating.

  1. Service

Service is used to manage the lifecycle of the chromedriver.exe process (starting, stopping, and communication).

Read more →