Zaire Sinatra's Technical Documentation
website·Indexed 29 days ago
https://zairesinatra.github.io/A comprehensive collection of technical guides and notes covering full-stack development. Includes JavaScript fundamentals, TypeScript, Vue 3, React, Spring Boot, SpringMVC, MyBatis-Plus, MySQL, Java 9, and Linux administration, as well as algorithm implementations and web request technologies like Axios and Fetch API.
What's inside Zaire Sinatra's Knowledge Base
- SPDY (developed by Google) is an application-layer protocol based on TCP and served as the predecessor to HTTP/2. It operates at the session layer to control data flow while still using HTTP connections. Key features include multiplexed streams, request prioritization, HTTP header compression, push notifications, and server hints.
Overview of SPDY protocol
SPDY (developed by Google) is an application-layer protocol based on TCP and served as the predecessor to HTTP/2. It operates at the session layer to control data flow while still using HTTP connections. Key features include:
- Multiplexed streams
- Request prioritization
- HTTP header compression
- Server push notifications and hints
Overview of Agile and CI/CD Methodologies
Modern development efficiency is driven by these practices:
- Agile Software Development: An iterative approach focusing on rapid response to change, team collaboration, and the creation of testable, maintainable, and scalable software.
- Continuous Integration (CI): The practice of automatically building, testing, and analyzing code after every commit to ensure stability and quality.
- Continuous Delivery (CD): The process of automatically deploying code that has passed CI tests into the production environment.
Overview of MySQL Database Objects
MySQL utilizes several objects to manage data and logic:
- TABLE: Logical unit storing data in rows and columns.
- Data Dictionary: System tables storing database metadata (read-only for users).
- CONSTRAINT: Rules for data validation and integrity.
- VIEW: A virtual table based on the result-set of an SQL statement.
- INDEX: Structures used to speed up data retrieval.
- PROCEDURE: A set of SQL statements to perform a business process (no return value).
- FUNCTION: A calculation that returns a single value.
- TRIGGER: An event listener that executes logic when specific data events occur.
Overview of GoF Design Pattern Categories
Design patterns are standardized best practices for solving common software development problems. The Gang of Four (GoF) categorized them into three main types:
- Creational: Focus on object instantiation (e.g., Factory Method, Abstract Factory, Builder, Prototype, Singleton).
- Structural: Focus on how classes and objects are organized (e.g., Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy).
- Behavioral: Focus on communication and responsibility assignment between objects (e.g., Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, Visitor).
Overview of SPDY Protocol
SPDY (developed by Google) is an application-layer protocol based on TCP and served as the predecessor to HTTP/2. It operates at the session layer to control data flow while still utilizing HTTP connections.
Key Features:
- Multiplexed streams
- Request prioritization
- HTTP header compression
- Server push notifications and hints
Overview of MySQL Database Objects
MySQL utilizes several logical objects to manage data and performance:
- TABLE: Basic storage unit (rows and columns).
- Data Dictionary: System tables containing metadata about the database.
- CONSTRAINT: Rules to ensure data integrity (e.g., Primary Key, Foreign Key).
- VIEW: A virtual table based on the result-set of an SQL statement.
- INDEX: Structures used to speed up data retrieval.
- PROCEDURE: A stored set of SQL statements for business logic (no return value).
- FUNCTION: A stored routine that performs a calculation and returns a value.
- TRIGGER: A named database object associated with a table that activates when specific events (INSERT, UPDATE, DELETE) occur.
Overview of the Bridge Pattern
The Bridge pattern decouples an abstraction from its implementation so that the two can vary independently. In Java, common examples include JDBC (where the standard interface is the abstraction and specific database drivers are the implementations) and ORM frameworks.Overview of the State Pattern for behavior modification
The State Pattern allows an object to alter its behavior when its internal state changes, effectively implementing a finite state machine. This avoids large conditional (if/else or switch) blocks by encapsulating state-specific behavior into separate classes. It consists of a Context, a State interface, and ConcreteState implementations.
Common use cases include:
- React components where the component's behavior changes based on its state.
- Redux stores where the application behavior is driven by the current state.
- Spring State Machine, which decouples state machine definition from execution.
Secure Web Communications with HTTPS
HTTPS (HTTP Secure) combines HTTP with SSL (Secure Socket Layer) to address three primary HTTP vulnerabilities:
- Plaintext Communication: HTTPS encrypts the content so it cannot be read in transit.
- Lack of Identity Verification: SSL uses certificates issued by trusted third parties to verify the identity of the communicating parties, mitigating risks like DDoS or spoofing.
- Lack of Integrity Proof: HTTPS ensures that the message has not been tampered with during transmission.
Understand Spring AOP Proxy Mechanisms
When the Spring container starts, it checks if any beans match defined pointcuts. If a match is found, Spring creates a proxy object instead of providing the raw bean. The type of proxy depends on the target class:
- JDK Dynamic Proxy: Used if the target class implements at least one interface. It creates a proxy implementing the interface.
- CGLIB Proxy: Used if the target class does not implement an interface. It creates a proxy by subclassing the target class.
Secure web communications with HTTPS
HTTPS (HTTP Secure) addresses three primary flaws of standard HTTP:
- Plaintext Communication: HTTPS uses SSL (Secure Socket Layer) to encrypt the communication content.
- Identity Verification: SSL uses certificates issued by trusted third parties to verify the identity of the communicating parties, mitigating risks like DDoS or impersonation.
- Data Integrity: HTTPS provides mechanisms to ensure that messages have not been tampered with during transit.