Fading Coder

One Final Commit for the Last Sprint

Implementing Automatic Reconnection and Subscription Recovery in Eclipse Paho MQTT Java Client

The Eclipse Paho Java client handles MQTT communication through three distinct background threads responsible for sending, processing, and receiving messages. A critical behavior to note is that if an unhandled runtime exception occurs during message processing, the client will forcibly disconnect....

Common String Operations in Java

1. Creating Strings // Direct initialization String str1 = "def"; // Using the constructor String str2 = new String("def"); 2. Comparing Strings: '==', 'equals', 'equalsIgnoreCase' (1) '==': // Compares memory addresses for reference types // String literals are stored in a pool,...

Programmatic PDF Generation and Template Manipulation with Apache PDFBox

Processing PDF documents programmatically involves managing document structures, pages, and content streams. Apache PDFBox is a robust Java library that allows developers to create, manipulate, and extract data from PDF files. When implementing a solution for PDF generation or template filling, the...

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...