Maxi Contierimaximilianocontieri.com·Jul 20, 2024Code Smell 260 - Crowdstrike NULLTL;DR: Using null pointers in critical code can crash your system Problems Memory access violation Unpredictable behavior Null Pointer Dereference Unexpected program termination System instability No healing/recovery strategy Security Risk ...Discuss·79 readsCode SmellsGeneral Programming
Maxi Contierimaximilianocontieri.com·Jul 13, 2024Code Smell 258 - Secrets in CodeTL;DR: Use a secret manager to avoid hardcoding sensitive information. Problems Security risk Hard to update by operations teams Code exposure Data breaches Audit Fails Solutions Use a secrets manager Use Environment variables outside the c...Discuss·26 readsCode SmellsGeneral Programming
Maxi Contierimaximilianocontieri.com·Jul 5, 2024Refactoring 014 - Remove IFTL;DR: Remove all your Accidental IF-sentences Problems Addressed Code Duplication Possible Typos and defects Related Code Smells https://maximilianocontieri.com/code-smell-07-boolean-variables https://maximilianocontieri.com/code-smell-36-switc...DiscussRefactoringsrefactoring
Maxi Contierimaximilianocontieri.com·Jun 29, 2024Code Smell 256 - Mutable GettersTL;DR: Don't expose your internals and lose control Problems Mutability Unexpected Changes Ripple Effects Thread unsafety Encapsulation Principle violation Solutions Return shallow copies of your collections Context Immutable objects are es...DiscussCode Smellscode smell
Maxi ContieriforClean Code Cookbookcleancodecookbook.com·Jun 23, 2024Source Code AvailableTL;DR: How to navigate, test and use the book's source code The sources were always available but there were no pointers from this site. I am adding it explitly. The code is live. I keep improving it with your comments and erratas, changing formatti...Discussbooks
Maxi Contierimaximilianocontieri.com·Jun 21, 2024Code Smell 255 - Parallel HierarchiesTL;DR: Parallel hierarchies lead to duplication and tight coupling. Problems Increased complexity DRY / Code Duplication Maintenance Nightmare Coupling Ripple Effect Potential for inconsistencies across different hierarchies Solutions Merge...Discuss·27 readsCode Smellshierarchies
Maxi ContieriforClean Code Cookbookcleancodecookbook.com·Jun 17, 2024Clean Code KochbuchTL;DR: German version is available https://content-select.com/de/portal/media/view/65f163cf-c4a0-45f2-b50f-4c4eac1b0007 Beschreibung Entwickler, Software Engineers und -Architektinnen, die mit einer umfangreichen Codebasis arbeiten, müssen ihren Cod...Discussbooks
Maxi ContieriforClean Code Cookbookcleancodecookbook.com·Jun 13, 2024Clean Code With AITL;DR: This is my talk at Tech Excellence on combining Artificial Intelligence and Clean Code Recipes Summary How can you leverage ChatGPT, Gemini, Copilot, and other assistants to write clean code? What instructions should you provide them? How do ...Discussbooks
Maxi Contierimaximilianocontieri.com·Jun 3, 2024Code Smell 254 - Mystery GuestTL;DR: Be explicit when creating tests to ensure clarity and maintainability Problems Readability Coupling to external databases, global state or singletons, static methods or external services Maintenance Difficulty Debugging Complexity Hidden...Discuss·27 readsCode SmellsProgramming Tips
Maxi Contierimaximilianocontieri.com·May 24, 2024Code Smell 253 - Silent TruncationTL;DR: If you limit text lengths, enforce them everywhere! Problems The Fail Fast Principle Violation Corrupted and Missing Data Bijection Fault UTF-8 Truncation The Least Surprise principle violation Separation of Concerns of the UI and the M...Discuss·46 readsCode SmellsGeneral Programming