Fading Coder

One Final Commit for the Last Sprint

Building a Lightweight SMS Platform Service from Scratch

Motivation In 2018, while serving as an architect, I participated in the reconstruction of an SMS platform. The SMS sending scenarios included repayment business, CRM, promotional activities, and more. Different technical teams used varying client modes to send SMS messages, which lacked standardiza...

Java Fundamentals: Common Pitfalls and Best Practices

Java Fundamentals: Common Pitfalls and Best Practices
Recommended Utility Libraries Guava Guava library maps.filterkeys - CSDN blog https://github.com/google/guava Overview (Guava: Google Core Libraries for Java HEAD-jre-SNAPSHOT API) Hutool Hutool reference documentation Core Concepts Q: What is the memory structure of an object? Original: https://www...

Building a RESTful CRUD API with Spring Boot and Redis

Redis is an open-source, high-performance key-value database known for its versatility and speed. Key characteristics include data persistence by saving in-memory datasets to disk, support for multiple data structures such as strings, lists, sets, and hashes, and high availability via master-slave r...

Building a Community Epidemic Prevention and Control Platform with Spring Boot and Vue.js

Technical ArchitectureThe backend service is powered by the Spring Boot framework. This framework leverages an embedded Tomcat container, removing the need for manual WAR file deployment. Its auto-configuration mechanism adapts application settings based on detected classpath dependencies, significa...

Java Inheritance and Object-Oriented Principles

Defining Subclasses In Java, inheritance is established using the extends keyword. A derived class (subclass) inherits fields and behaviors from its base class (superclass) and can introduce new functionalities. public class Supervisor extends Worker { // extended behaviors and state } Method Overri...

Introduction to Real-Time Stream Processing with Apache Storm

Apache Storm is an open-source distributed computation system designed for processing real-time data streams. Often compared to Hadoop for batch processing, Storm excels in unbounded data scenarios where low latency is critical, such as real-time analytics, online machine learning, and continuous co...

Implementing Robust Global Exception Handling with Unified Response Objects in Spring Boot

A centralized mechanism for error propagation ensures consistent client feedback without cluttering individual controllers. The solution relies on four pillars: defining standard business states, wrapping payloads into a generic DTO, utilizing custom runtime exceptions for expected failures, and int...

Java Language Basics: Data Types, Variables, and Constants

This post covers the foundational concepts of Java programming, focusing on data types, variables, and constants. The content is based on the book "Java from Beginner to Expert," skipping the first two chapters. 3.1 Java Main Class Structure A Java main class typically includes: Package de...

Formatting Time as Chinese Text in Java

Retrieving and Formatting Time in Chinese Using Java Java provides multiple modern and legacy APIs for handling time. To display the current hour, minute, and second in Chinese characters (e.g., "14时35分22秒"), developers can choose between java.time and java.text approaches. Modern Approach...

Core Principles of State Protection and Module Boundaries in Java

Fundamentals of Encapsulation Encapsulation serves as a foundational pillar of object-oriented design, responsible for bundling data fields and operational methods into a single unit while restricting direct external access. The primary objectives are safeguarding internal state integrity and decoup...