Microservice Anti-Pattern
Nach einigen Beiträgen zu Microservices soll in diesem Beitrag ein wenig über die Schattenseiten der Technologie berichtet werden. Insbesondere über Bad-Smells und Anti-Pattern, den falschen Lösungsansätzen, bei der Entwicklung eigener Microservices.
https://schegge.de/2023/06/microservice-anti-pattern/
#AntiPattern #BestPractices #Java #Pattern #BadSmell #BoundedContext #CodeSmell #Microservice #Monolith
#antipattern #bestpractices #java #pattern #badsmell #boundedcontext #codesmell #microservice #monolith
The code smell called Magic Numbers is caused by using numbers that lack the proper semantics in our code 🧼
#code #codesmell #cleancode #codequality #magicnumbers
The code smell called Switch Statements is caused by the abusive use of the switch statements in our code 🧼
In this article I show how identify and fix this code smell.
https://blog.susomejias.dev/blog/code-smell-switch-statements
#code #codesmell #cleancode #codequality #switchstatements
The code smell called Divergent Change can be detected when we observe that at a specific point in our application we perform too many changes, these points can be a certain class, a .js or .ts file that exports certain functions, etc. 🧼
I share an article with you so you can learn how to detect it and give it a solution.
https://blog.susomejias.dev/blog/code-smell-divergent-change
#code #codesmell #divergentchange
The code smell called Primitive Obsession is given by the abusive use of primitive types when modeling our classes.
If you want to learn how to detect and eliminate it, I leave you an article where I explain it.
https://blog.susomejias.dev/blog/code-smell-primitive-obsession
#codeSmell #primitiveObsession #cleanCode #codeQuality
#codesmell #primitiveobsession #cleancode #codequality
The code smell called Magic Numbers is caused by using numbers that lack the proper semantics in our code 🧼
#code #codesmell #cleancode #codequality #magicnumbers
The system I'm modifying right now has blocks of different types, and one of those types can contain other blocks. As it happens, that block type only ever contained two child blocks.
ALL of the code that needs to recurse down the block tree is written twice:
if (doStuff(stuff, block.children[0])) return true;
if (doStuff(stuff, block.children[1])) return true;
Aargh! (1/2)
@pwaring IMO starting an array with a null value so that your index is n+1 is a #CodeSmell no matter the language you write it in
The code smell called Divergent Change can be detected when we observe that at a specific point in our application we perform too many changes, these points can be a certain class, a .js or .ts file that exports certain functions, etc. 🧼
I share an article with you so you can learn how to detect it and give it a solution.
https://blog.susomejias.dev/blog/code-smell-divergent-change
#code #codesmell #divergentchange
The code smell called Primitive Obsession is given by the abusive use of primitive types when modeling our classes.
If you want to learn how to detect and eliminate it, I leave you an article where I explain it.
https://blog.susomejias.dev/blog/code-smell-primitive-obsession
#codesmell #primitiveobsession #cleancode #codequality
Today return with the code smell called Primitive Obsession , this is given by the abusive use of primitive types when modeling our classes https://blog.susomejias.dev/blog/code-smell-primitive-obsession #codeSmell #cleanCode #codeQuality
#codequality #cleancode #codesmell