Susomejiasblog.susomejias.dev·Feb 4, 2024Code Smell | Chained Ternary OperatorsTernary operators offer a compact syntax for conditional assignments. However, excessive chaining of these operators can lead to code that is difficult to understand, maintain, and debug. This article highlights the pitfalls of overusing ternary oper...Discuss·114 readsCode Smellscode smell
Ahmed Shendyshendy.hashnode.dev·Dec 19, 2023Practical Code Smells - Sample 1Take a look a this code, share in comments what are your thoughts/notes about it? struct Bottles { func song() -> String { verses(from: 99, downTo: 0) } func verses(from high: Int, downTo low: Int) -> String { (low...high...DiscussPractical Code Smellscode smell
Red Terminalredterminal.hashnode.dev·Dec 1, 2023Why we should not use magic numbers ?Introduction A Magic Number is a hard-coded value that may change at a later stage, but that can be therefore hard to update. It's a numeric value that’s encountered in the source but has no obvious meaning. Yet more difficulties arise when you need ...Discusscodesmell
Red Terminalredterminal.hashnode.dev·Nov 27, 2023Why we should not use objects as data structures ?Problem faced: During our software development, we used to use design a class just to use it as a data structure. But while i was interested in reading about code smells; i got to know that its one of the anti pattern. So what is the problem with usi...Discusscode smell
Susomejiasblog.susomejias.dev·Nov 25, 2023Code Smell | Side EffectsHello, today I am writing again and in this post, I am going to introduce you to how we incur a frequently common code smell called "Side Effects," which occurs when a function modifies an external state beyond its scope. Cause Side effects arise wh...Discuss·50 readsCode SmellsCode Quality
Akhil Kadangodeakhil.se·Nov 15, 2023Exploring Code Smells: Identifying and Solving Common IssuesIn software development, maintaining a clean and efficient codebase is crucial. Recognizing code smells, which are warning signs indicating potential problems in your code, is an essential skill. While they don't directly affect the functioning of th...Discuss·41 readscode smell
Darth Byter8bytes8.hashnode.dev·Jul 19, 2023Code Smell Detectives: Sniffing Out Bugs and Instinctively Solving Mysteries!Today, I had my first encounter with a real-life "code smell" while taking over a code base developed by our colleagues in the current sprint. Although I had previous experience with thorough code reviews and a general understanding of the features a...Discusscode smell
Susomejiasblog.susomejias.dev·May 20, 2023Code Smell | Hardcoded fake data in testsHello, today I am writing again and in this post, I am going to introduce you to how we incur a frequently common code smell called Hardcoded fake data in tests, this code smell occurs when you see fake data that is needed for tests within the same t...Discuss·27 readsCode SmellsCode Quality
Vinnicyus Gracindovgracindo.hashnode.dev·Mar 8, 2023Code Smell #1 - Método Longo (Long Method)Descrição O Long Method se refere a um código que possui um método (ou função) muito longo, com muitas linhas de código. Esse é um problema comum em programação, pois métodos longos podem ser difíceis de ler, entender e manter. Problema Sinais de que...Discuss·1 like·77 readsGo Language
Red TerminalforMakereadingsyedjaferk.hashnode.dev·Jan 25, 2023Code Smell 04 - How to Avoid Misplaced Responsibilities in Your ClassesMisplaced responsibility is a code smell that refers to a class or module that has responsibilities that do not properly align with its intended purpose. This can lead to a number of problems, such as making the class harder to understand, test, and ...Discuss·85 readsCode Smellscode