Recent posts tagged refactoring

Level UI • 21 hours • in Articles • 9 min read
Somewhere in the last year, "do we need an MCP server?" joined the list of questions that arrive in a brief before anyone has said what the thing is for. It is usually framed as MCP vs API, as though the Model Context Protocol were a newer kind of AP...
post-cover-33074
  • ai
  • api
  • webdev
  • security
Aqib Javaid • Oct 16 • in Articles • 5 min read
Every business with an ageing application eventually faces the same question: do we rewrite or refactor the legacy application? Get it wrong and you either burn a year rebuilding something that already worked, or you pour money into patching a system...
  • legacy
  • refactoring
  • architecture
  • php
Artem Senenko • Sep 22 • in Articles • 12 min read
> TL;DR. Uncle Bob released uml-viewerhttps://github.com/unclebob/uml-viewer, a clickable architecture diagram that draws Dependency Rule violations in red and is meant to be driven together with a coding agent. It only parses Clojure, so I wrote a 2...
  • ai
  • rust
  • architecture
  • refactoring
JamieColeAI • Sep 16 • in Tutorials • 7 min read
The easiest part of forking a production SaaS is copying the repository. The dangerous part is assuming that a successful build means the new product has a clean foundation. I learned this while turning an existing AI generation application into a s...
  • softwarearchitecture
  • refactoring
  • webdevelopment
  • saas
Valentine Shimanovsky • Aug 11 • in Articles • 8 min read
There is a popular idea that refactoring is making code shorter. It is not entirely wrong. Repetition, pointless conditional branches, and dead variables do make code longer for no reason. But the usual topmost problems are when the intentions of a c...
post-cover-24442
  • refactoring
  • software-engineering
  • clean-code
  • codesmell
psypher1 • Jul 28 • in Articles • 2 min read
Towards the midpoint of last year, I rediscovered one of the developers I found when I started my journey - Mark Tellez. I'll admit, back then I was arrogant and didn't take what he was doing in those old videos seriously, and then he just went off t...
post-cover-23668
  • refactoring
  • development
  • learning
Maxi Contieri • Jul 8 • in Articles • 1 min read
Converting your anemic dictionaries is easy > TL;DR: Convert your key/value into full behavioral objects Problems Addressed 😔 Associative arrayshttps://maximilianocontieri.com/code-smell-27-associative-arrays Fail Fast principle violation Biject...
post-cover-22129
  • refactoring
Maxi Contieri • Jun 17 • in Articles • 9 min read
Comments are dead. Tests are alive > TL;DR: Take your comment, compact it, and name your functions. > Now test it and remove the comments. Problems Addressed 😔 Maintainability Readability Related Code Smells 💨 https://coderlegion.com/8106/code-...
post-cover-20855
  • refactoring
Tom Smithverified • 17 hours • in Articles • 9 min read
Security dominated this week, but not in the usual way. Two active campaigns turned GitHub configuration files into attack surfaces. Researchers demonstrated that the built-in browsers inside AI coding tools can read your SSH keys. And at Oracle AI ...
post-cover-33104
  • agenticai
  • devsecops
  • github
  • localai
Posted in AI group
Kato Masatoverified • Jun 10 • in Articles • 7 min read
Series: Building with 74 AI Personas — Part 8 Tags: #ai #architecture #refactoring #python #philosophy #iot Note: In this series, a "persona" is not only a fictional character. It is a YAML-defined operational role with memory notes, routing beha...
post-cover-20152
  • ai
  • architecture
  • refactoring
  • python
Maxi Contieri • Jun 9 • in Articles • 6 min read
You have a big algorithmic method. Let's break it. > TL;DR: Long methods are bad. Move them and break them. Problems Addressed 😔 Lack of Testability Accidental Complexity Testing Private Methodshttps://maximilianocontieri.com/code-smell-112-test...
post-cover-20107
  • refactoring
oluwatosinolamilekan • Apr 28 • in Articles • 8 min read
Every successful application eventually outgrows its original architecture. What started as a clean, well-structured monolith becomes a tangled web of dependencies where changing one feature risks breaking three others. Deployments become risky, test...
  • systemdesign
  • microservices
  • laravel
  • refactoring
Maxi Contieri • Apr 3 • in Articles • 1 min read
Refactorings are amazing to grow and improve our code > TL;DR: Let's start addressing our code smells I have been writing a series on Code Smells for a long time. https://coderlegion.com/10942/how-to-find-the-stinky-parts-of-your-code There are a...
  • refactoring
Maxi Contieri • Apr 2 • in Articles • 4 min read
Forget about data structures, DTOs, POJOs, and anemic objects. > TL;DR: Avoid external manipulation Problems Addressed Encapsulation Violation Anemichttps://coderlegion.com/7246/code-smell-01-anemic-models Models Related Code Smells https://c...
post-cover-13866
  • refactoring
Maxi Contieri • Mar 28 • in Articles • 4 min read
If I see a Variable that doesn't change. I call that variable a constant > TL;DR: Be explicit on what mutates and what doesn't. Problems Addressed Mutabilityhttps://coderlegion.com/6742/the-evil-power-of-mutants Code Optimization Related Code S...
post-cover-13617
  • refactoring
Maxi Contieri • Mar 22 • in Articles • 8 min read
Behavior is repeated across the system. But you are missing a concept > TL;DR: Put together what belongs together Problems Addressed Code Duplication Missing Abstraction Low Cohesion Related Code Smells https://maximilianocontieri.com/code-...
post-cover-13328
  • refactoring
Maxi Contieri • Feb 5 • in Articles • 1 min read
Give your collections a purpose and a connection to the real world > TL;DR: Wrap primitive collections into dedicated objects to ensure type safety and encapsulate business logic. Problems Addressed Type safety violations Logic duplicationhttps:...
post-cover-11148
  • refactoring
Maxi Contieri • Dec 8, 2025 • in Articles • 1 min read
Turn hidden private logic into a real concept without using AI > TL;DR: You can and should test private methods Problems Addressed Broken encapsulation Hidden rules White-box Testing Dependencies Hard testing Mixed concerns Low reuse Code D...
post-cover-8309
  • refactoring
To see more, click for the full list of posts or popular tags.
chevron_left
🔥 16 posts • 👩‍💻 8 active writers

✨ Want to write in this topic?
Share your learning. Get discovered. Build your profile.
Join CoderLegion

💡 Why developers use CoderLegion
Track learning • Share posts • Get ranked publicly
Create your profile