Tagged articles
DRY Principle
10 articles · Page 1 of 1
The article demonstrates how to correctly apply the DRY principle by refactoring seven duplicated notification service classes in Spring Boot 3.5.0 using the template method pattern and a NotificationMessage value object, consolidating 40 lines of repeated validation, logging, and error handling into a single abstract base class.
DRY PrincipleJavaNotification Service
0 likes · 12 min read

The article shows how duplicating 20‑40 lines of request‑building code for each low‑code table operation leads to maintenance risk, and demonstrates extracting two generic Java methods that encapsulate invariant logic while parameterising fields, tables, and apps, dramatically reducing code and clarifying responsibilities.
API DesignDRY PrincipleJava
0 likes · 8 min read

The article argues that classes and functions serve as fundamental structural elements rather than mere tools for reuse, contending that excessive reuse can increase complexity while intentional redundancy simplifies maintenance, and advocating deep modules over shallow ones, illustrated by examples from Supercell, DingTalk, and a trivial shallow‑module code snippet.
DDDDRY Principlecode reuse
0 likes · 8 min read

The article argues that while code reuse and DRY can boost productivity, over‑abstracted, duplicated logic often inflates maintenance costs, so developers should apply DRY cautiously, favor YAGNI and heuristics like the Rule of Three, and prefer clean‑architecture boundaries to keep complexity manageable.
DRY PrincipleYAGNIcode reuse
0 likes · 12 min read

This article explains what a design system is, its evolution and composition, distinguishes components from controls, breaks down a button into foundational elements, and shows how atomic properties of color, symbol, and position combine to create reusable UI components following DRY principles.
Component ArchitectureDRY PrincipleUI components
0 likes · 7 min read

This article examines why many programmers fall into repetitive CRUD tasks, explains the hidden drawbacks of high‑efficiency plateaus, and offers practical strategies—pattern recognition, new technologies, role changes, and thoughtful job moves—to break the cycle and sustain long‑term career growth.
DRY Principlecareer developmentprogrammer productivity
0 likes · 7 min read

This article explains how to write robust Java code by applying defensive programming techniques such as guard clauses, proper exception handling, validator usage, assertions, and the DRY principle, while illustrating each concept with clear code examples and practical guidelines.
DRY PrincipleException HandlingJava
0 likes · 20 min read

The article explains how defensive programming in Java—using guard clauses, validators, and side‑effect‑free assertions—prevents errors, outlines proper exception handling by distinguishing checked from unchecked exceptions, and reinforces the DRY principle, urging developers to abstract repeated logic after three occurrences.
DRY PrincipleException HandlingJava
0 likes · 18 min read

This article explains how to write robust Java code by applying defensive programming, using guard clauses, proper exception handling, validator patterns, assertions, and the DRY principle, offering concrete code examples and practical advice for building reliable software.
DRY PrincipleException HandlingJava
0 likes · 19 min read

The article explains that a programming language serves as a system to encode, name, and organize algorithms, discusses the misuse of the term “algorithm,” illustrates classic algorithms like Dijkstra’s and Euclid’s with code examples in Forth, PostScript, and Python, and emphasizes the DRY principle and efficiency concerns in software development.
AlgorithmsCode ExamplesDRY Principle
0 likes · 8 min read
