Mihai Olteanblog.mihaioltean.com·12 hours agoThe Hollywood PrincipleOh boy, when I first understood this principle, I felt like a rockstar. ⭐️ I remember first reading about it in Head First Design Patterns. It was so catchy that it stuck with me since then. If you haven't heard of it, you might know it as Inversion...Discusssoftware development
Maxi Contierimaximilianocontieri.com·Jul 18, 2024Code Smell 259 - Testing with External ResourcesTL;DR: Tests must be in full control. Problems Unreliable tests Difficult debugging Unexpected changes Coupling to External dependencies Mistery Guests Flaky tests Slowness Solutions Generate the file in the test Mock it Use hardcoded st...DiscussCode 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 9, 2024Code Smell 257 - Name With CollectionsTL;DR: Drop "collection" prefix for clarity. Problems Redundant Naming Verbose Code Reduced Readability Refactoring Challenges Coupled to implementation Solutions Use Simple Names Remove 'collection' from the name Use plural names without ...DiscussCode SmellsGeneral Programming
Ragavi S Pragavi.hashnode.dev·Jul 8, 2024Refactoring content for GenAI readiness: Best Practices and GuidelinesRefactoring content is a must, given the proliferation of GenAI tools in the market. Most of the GenAI vendors have scrapped the internet to train their Large Language Model (LLM).Public knowledge vendors likely already use public GenAI bases, and cu...Discussgenai
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
Azeez Ibrahimdevazeeez.hashnode.dev·Jun 28, 2024Refactoring an E-commerce Backend for Multi-Variant PricingWith over four years of experience as a software quality assurance engineer specialized in API and frontend automation, I have a thorough grasp of the software development lifecycle. This has fuelled my interest in backend programming, prompting me t...Discuss·1 likee-commerce
Christian Bonzeletcremich.cloud·Jun 25, 2024Don't let Technical Debt sabotage your product roadmapIntroduction Picture this: Your development team is humming along, shipping features at a breakneck pace. But beneath the surface, a looming threat is growing – technical debt, an invisible force that can derail your product roadmap and sabotage your...Discuss·123 readstechnical-debt
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