Maxi Contierimaximilianocontieri.com·Jan 9, 2025Code Smell 285 - Non-Imperative Functions NamesTL;DR: Functions with unclear names hide intent and confuse readers. Use descriptive, action-oriented names. Problems Unclear function purpose Increased cognitive load Misleading context Reduced readability Difficult collaboration Hidden functional...Code Smellsclean code
Maxi Contierimaximilianocontieri.com·Dec 28, 2024Refactoring 021 - Remove Dead CodeTL;DR: Eliminate unused functions, constants, and "just-in-case" code. Problems Addressed Dead Code Just-in-case code Reduced maintainability Anchor Boats Cognitive Load Related Code Smells https://maximilianocontieri.com/code-smell-09-dead-c...Refactoringsrefactoring
Michał Romanmichalroman.hashnode.dev·Dec 28, 2024Understanding Vue 3's Composition API: From options to composition - a practical guideIntroduction Vue 3's Composition API represents a fundamental shift in how we structure Vue applications. While the Options API served us well, larger applications often faced challenges with code organization and logic reuse. This guide will walk yo...Vue.js
Emmanuel Otienosyntaxsugar.hashnode.dev·Dec 28, 2024Code Readability: Writing code for humansCode readability is one of the most crucial aspects of software development that often gets overlooked in favor of functionality and performance. While writing code that works is important, writing code that other developers (including your future se...reusablility
Ariska Hidayattech.finlup.id·Dec 27, 2024Perbedaan Refactoring, Clean Code, Restructuring, dan Rearchitecturing pada KodeDalam pengembangan perangkat lunak, terdapat berbagai istilah yang merujuk pada proses perbaikan dan pengelolaan kode. Beberapa istilah yang sering digunakan adalah refactoring, clean code, restructuring, dan rearchitecturing. Meski terdengar mirip, ...rearchitecturing
FENG JUNYUANcrazyrunsnail.hashnode.dev·Dec 22, 2024Refactor: status to statuses using mybatisBefore: <if test="status = 0"> and t.status = 0 and t.status1 = 1 </if> <if test="status = 1"> and t.status = 0 and t.status2 = 2 </if> <if test ="status != 2"> and t.status2 != 2 </if> After: <if test="statuses != null and statuses.size() > 0...Java
Maxi Contierimaximilianocontieri.com·Dec 21, 2024Code Smell 284 - Encrypted FunctionsTL;DR: Avoid obfuscated functions in your code. This article is based on a real social hacking disguised as a job interview Problems Hidden vulnerabilities Readability Testability Trust issues Bad Naming Solutions Use clear names Avoid obfu...Code Smellsclean code
Maxi Contierimaximilianocontieri.com·Dec 14, 2024Refactoring 020 - Transform Static FunctionsTL;DR: Replace static functions with object interactions. Problems Addressed High coupling due to global access Poor testability Overloaded protocols in classes Decreased cohesion Related Code Smells https://maximilianocontieri.com/code-smell-...49 readsRefactoringsclean code
Hans L'Hoesthans.lhoest.eu·Dec 6, 2024Notes on Preparatory RefactoringNotes inspired by Emily Bache's short Youtube video Design Better Code with Preparatory Refactoring in TDD | Demo. A preparatory refactoring is a refactoring to make future changes to accommodate new requirements easy. By definition, current behavior...TDD (Test-driven development)
Maxi Contierimaximilianocontieri.com·Dec 4, 2024Refactoring 019 - Reify Email AddressesSayit once and only once TL;DR: Avoid duplicate email validations. Problems Addressed Repeated email validation logic in multiple places. Risk of inconsistent validation rules. Difficult to maintain validation rules. Bijection violation Primitive ...27 readsRefactoringsrefactoring