Tagged articles
handler
17 articles · Page 1 of 1
The article shows how typical Go HTTP/gRPC handlers repeat five steps of decoding, validation, type conversion, business call, and encoding, and demonstrates a generic Wrap adapter that extracts the repetitive pipeline, leaving handlers thin, type‑safe, and focused solely on business logic.
GenericsGoService Layer
0 likes · 7 min read

This article explains how to redesign a Java NIO server by introducing a Netty‑style pipeline that separates decoding, logging, authentication, and business handling into independent handlers, improving extensibility, maintainability, and performance while providing complete sample code and initialization steps.
JavaNettyPipeline
0 likes · 15 min read

This article explains the Chain of Responsibility design pattern, demonstrates its application in a product creation workflow with concrete Java code, shows how to configure and assemble handlers dynamically using Spring, and discusses the pattern's advantages, drawbacks, and testing scenarios.
BackendChain of ResponsibilityDesign Pattern
0 likes · 20 min read

The team maintains an ‘opt’ branch for daily‑collected crash fixes, classifies unrecoverable system, device, SDK and framework errors, and employs a Handler‑based whitelist that catches and swallows known crashes while logging others, complemented by null‑safety, concurrency, database and OOM monitoring to keep Android app crash rates manageable.
AndroidExceptionhandler
0 likes · 18 min read

This article explains how Go's net/http package leverages function types combined with interfaces—particularly the Handler and HandlerFunc types—to create concise, flexible HTTP servers, reducing boilerplate, improving code reuse and testability, and demonstrates practical examples and underlying implementations.
Gobackend developmentfunction types
0 likes · 9 min read

This article provides a comprehensive guide to MySQL stored procedures, functions, custom functions, variables, control‑flow statements, cursors, and condition/handler definitions, illustrating creation, invocation, inspection, modification, and deletion with concrete SQL examples.
CursorStored FunctionStored Procedure
0 likes · 15 min read

This article explains the Chain of Responsibility design pattern, showing how to refactor order processing in a Spring 5.2 Java 8 application by defining abstract handlers, implementing concrete handlers, configuring bean ordering, and extending the chain for new order types.
BackendChain of ResponsibilityDesign Pattern
0 likes · 7 min read

This article explains how to build a code clone detection service using a CodeBERT classification model, create a custom TorchServe handler, package the model with torch-model-archiver, launch the service, and test it with example code pairs to demonstrate clone and non‑clone predictions.
PyTorchTorchServeclone detection
0 likes · 8 min read

The article dissects Android’s Handler‑Looper‑MessageQueue architecture, explaining ThreadLocal‑based Looper binding, various Handler constructors, async versus sync messages, barrier handling, IdleHandler, HandlerThread and IntentService usage, and the differences between Handler.post and View.post for responsive UI development.
AndroidLooperMessageQueue
0 likes · 29 min read

This article examines why DialogFragment can cause memory leaks in Android apps, analyzes the role of HandlerThread messages and Looper processing, and presents several mitigation strategies including avoiding dismiss listeners, using weak references, and custom fragment implementations to safely release resources.
DialogFragmentLeakCanaryLooper
0 likes · 11 min read

This article explains Netty's channel pipeline lifecycle—including how the responsibility chain is created during channel initialization, how handlers are added and removed, and how the pipeline is torn down during channel closure—while providing detailed source‑code excerpts and diagrams to illustrate each step.
ChannelPipelineEventLoopJava
0 likes · 16 min read

This article explains why performing UI updates—even on the main UI thread—can still trigger CalledFromWrongThreadException when a Dialog is created on a background thread, by analysing ViewRootImpl, Handler, Looper, and the view hierarchy with practical code examples.
CalledFromWrongThreadExceptionDialogLooper
0 likes · 16 min read

This article explains Android's Handler and Looper mechanism, shows why creating a Handler in a non‑Looper thread triggers a RuntimeException, and walks through the relevant source code—including Handler constructors, Looper.myLooper(), ThreadLocal operations, and the required Looper.prepare() call.
ANRAndroidConcurrency
0 likes · 10 min read

This article explains the internal representation and meaning of MySQL Handler_read_* status variables, demonstrates how InnoDB implements each handler, and shows practical query tests that illustrate how these counters reflect full table scans, index scans, range scans, and join operations.
InnoDBMySQLStatus Variables
0 likes · 18 min read

This article explains the design and implementation of Android's Handler mechanism, detailing how Handlers, Messages, MessageQueue, and Looper work together to enable thread communication, avoid memory leaks, and manage message sending, queuing, and processing, with source code examples and best practices.
AndroidLooperMessageQueue
0 likes · 21 min read

The article examines Android Toast crashes, explains the system‑level window and drawing lifecycle, and proposes safer alternatives by replacing Toast with a Snackbar or custom view hierarchy, using parent‑finding logic, weak‑reference management, and a protective handler wrapper to prevent exceptions.
AndroidLifecycleToast
0 likes · 17 min read

This article analyzes a frequent Android crash caused by posting delayed Runnables to a Handler, explains why it is hard to reproduce, and presents a solution that extends the delay to reliably trigger and then mitigate the issue using message‑queue manipulation.
AndroidMessage Queuecrash
0 likes · 9 min read
