cleancode共105篇
Static Factories: When Static Methods Shine (And Why They're Not Always Evil)-拾光赋

Static Factories: When Static Methods Shine (And Why They’re Not Always Evil)

Static Factories: When Static Methods Shine (And Why They're Not Always Evil),In my recent article (Static X OOP), I suggested that regular classes and interfaces are more effectiv...
kity的头像-拾光赋kity11天前
0457
Static x OOP-拾光赋

Static x OOP

Static x OOP,As Java developers, we are continually aiming to create cleaner, more maintainable code. Recently, while working on a project, I faced a typical problem: how to effect...
kity的头像-拾光赋kity16天前
0349
Code Smell 291 - Mutable Keys-拾光赋

Code Smell 291 – Mutable Keys

Code Smell 291 - Mutable Keys, Code Smells (292 Part Series) 1 Code Smell 01 - Anemic Models 2 Code Smell 02 - Constants and Magic Numbers ... 288 more parts... 3 Code Smell 03 - F...
kity的头像-拾光赋kity21天前
02714
Streamlining Exception Handling in Spring Boot-拾光赋

Streamlining Exception Handling in Spring Boot

Streamlining Exception Handling in Spring Boot,Have you ever found yourself wrestling with a tangled web of try-catch blocks scattered across your Controller, Service, and Reposito...
kity的头像-拾光赋kity24天前
02312
Code Optimization for Game Development-拾光赋

Code Optimization for Game Development

Code Optimization for Game Development,Game development is a battlefield. Either you optimize, or you lose. I don’t care if you’re an experienced developer with 10 years of exper...
kity的头像-拾光赋kity28天前
03214
Thinking about Exceptions-拾光赋

Thinking about Exceptions

Thinking about Exceptions, Let's Think a Little Bit About Exceptions What Is an Exception? An exception is an event that occurs unexpectedly and disrupts the normal flow of a progr...
kity的头像-拾光赋kity31天前
03810
Enums in Java: The Key to Cleaner, Safer Code-拾光赋

Enums in Java: The Key to Cleaner, Safer Code

Enums in Java: The Key to Cleaner, Safer Code,Have you ever struggled with magic numbers or hardcoded strings in your Java projects? Enums provide a powerful way to write cleaner, ...
kity的头像-拾光赋kity33天前
0497
𝗨𝗻𝗹𝗼𝗰𝗸𝗶𝗻𝗴 𝘁𝗵𝗲 𝗣𝗼𝘄𝗲𝗿 𝗼𝗳 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗜𝗻𝘁𝗲𝗿𝗳𝗮𝗰𝗲𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮: 𝗦𝗶𝗺𝗽𝗹𝗶𝗳𝘆 𝗬𝗼𝘂𝗿 𝗖𝗼𝗱𝗲 𝗧𝗼𝗱𝗮𝘆!-拾光赋

𝗨𝗻𝗹𝗼𝗰𝗸𝗶𝗻𝗴 𝘁𝗵𝗲 𝗣𝗼𝘄𝗲𝗿 𝗼𝗳 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗜𝗻𝘁𝗲𝗿𝗳𝗮𝗰𝗲𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮: 𝗦𝗶𝗺𝗽𝗹𝗶𝗳𝘆 𝗬𝗼𝘂𝗿 𝗖𝗼𝗱𝗲 𝗧𝗼𝗱𝗮𝘆!

𝗨𝗻𝗹𝗼𝗰𝗸𝗶𝗻𝗴 𝘁𝗵𝗲 𝗣𝗼𝘄𝗲𝗿 𝗼𝗳 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗜𝗻𝘁𝗲𝗿𝗳𝗮𝗰𝗲𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮: 𝗦𝗶𝗺𝗽𝗹𝗶𝗳𝘆 𝗬𝗼𝘂𝗿 𝗖𝗼𝗱𝗲 𝗧𝗼𝗱𝗮𝘆!,Java developers, let's talk about ...
kity的头像-拾光赋kity1个月前
0357
𝗠𝗮𝘀𝘁𝗲𝗿𝗶𝗻𝗴 𝗘𝗻𝘁𝗶𝘁𝘆 𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗻𝗱 𝗖𝗹𝗲𝗮𝗻 𝗖𝗼𝗱𝗲 𝗶𝗻 𝗦𝗽𝗿𝗶𝗻𝗴 𝗕𝗼𝗼𝘁-拾光赋

𝗠𝗮𝘀𝘁𝗲𝗿𝗶𝗻𝗴 𝗘𝗻𝘁𝗶𝘁𝘆 𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗻𝗱 𝗖𝗹𝗲𝗮𝗻 𝗖𝗼𝗱𝗲 𝗶𝗻 𝗦𝗽𝗿𝗶𝗻𝗴 𝗕𝗼𝗼𝘁

𝗠𝗮𝘀𝘁𝗲𝗿𝗶𝗻𝗴 𝗘𝗻𝘁𝗶𝘁𝘆 𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗻𝗱 𝗖𝗹𝗲𝗮𝗻 𝗖𝗼𝗱𝗲 𝗶𝗻 𝗦𝗽𝗿𝗶𝗻𝗴 𝗕𝗼𝗼𝘁,In the world of backend development, managing entity transactions eff...
kity的头像-拾光赋kity1个月前
04914
Just Stop Writing Python Functions Like This!-拾光赋

Just Stop Writing Python Functions Like This!

Just Stop Writing Python Functions Like This!,Writing clean, readable, and efficient code is a skill that every developer strives to improve. In Python, function writing can make o...
kity的头像-拾光赋kity1个月前
0278
5 Common Code Smells in Java and How to Fix Them-拾光赋

5 Common Code Smells in Java and How to Fix Them

5 Common Code Smells in Java and How to Fix Them,Code smells are indicators of potential problems in your code that could lead to issues with maintainability, readability, or perfo...
kity的头像-拾光赋kity1个月前
03915
Refactoring 021 - Remove Dead Code-拾光赋

Refactoring 021 – Remove Dead Code

Refactoring 021 - Remove Dead Code, Refactorings (21 Part Series) 1 Refactoring 001 - Remove Setters 2 Refactoring 002 - Extract Method ... 17 more parts... 3 Refactoring 003 - Ext...
kity的头像-拾光赋kity3个月前
04514