Tagged articles

DRY principle

9 articles · Page 1 of 1
samdeepthink
samdeepthink
Jun 11, 2026 · Fundamentals

Why Code Reuse Matters When Integrating with Low‑Code Platforms

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 principlecode reuse
0 likes · 8 min read
Why Code Reuse Matters When Integrating with Low‑Code Platforms
DaTaobao Tech
DaTaobao Tech
Oct 21, 2024 · Fundamentals

The True Purpose of Classes and Functions: Beyond Reuse

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 principleSoftware Design
0 likes · 8 min read
The True Purpose of Classes and Functions: Beyond Reuse
DaTaobao Tech
DaTaobao Tech
Oct 11, 2024 · Fundamentals

Rethinking Code Reuse: Balancing DRY, YAGNI, and Maintenance Costs

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
Rethinking Code Reuse: Balancing DRY, YAGNI, and Maintenance Costs
Java Interview Crash Guide
Java Interview Crash Guide
Jan 13, 2021 · R&D Management

Breaking the Repetitive Work Trap: How Developers Can Grow Beyond CRUD

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
Breaking the Repetitive Work Trap: How Developers Can Grow Beyond CRUD
Youku Technology
Youku Technology
Aug 3, 2020 · Fundamentals

Mastering Defensive Programming: Guard Clauses, Exceptions, and DRY in Java

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 Handlingcode quality
0 likes · 20 min read
Mastering Defensive Programming: Guard Clauses, Exceptions, and DRY in Java
Youku Technology
Youku Technology
Jul 17, 2020 · Backend Development

Defensive Programming, Exception Handling, and DRY Principle in Java

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 HandlingSoftware Engineering
0 likes · 18 min read
Defensive Programming, Exception Handling, and DRY Principle in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 14, 2020 · Fundamentals

Write Robust Java Code: Defensive Programming, Smart Exceptions & DRY

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 Handlingcode robustness
0 likes · 19 min read
Write Robust Java Code: Defensive Programming, Smart Exceptions & DRY
Qunar Tech Salon
Qunar Tech Salon
Sep 16, 2015 · Fundamentals

A Programming Language Is a System for Encoding, Naming, and Organizing Algorithms

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.

AlgorithmsDRY principleProgramming Languages
0 likes · 8 min read
A Programming Language Is a System for Encoding, Naming, and Organizing Algorithms