Maxi Contierimaximilianocontieri.com·4 hours agoCode Smell 249 - Constants as NumbersTL;DR: Use real-world constants as constants Problems Bijection Violatijn Debugging Premature Optimization Maintainability Type Safety Limited Extensibility Solutions Use descriptive string constants Use Enums Create A Polymorphic Hierar...DiscussCode SmellsGeneral Programming
Maxi Contierimaximilianocontieri.com·Apr 20, 2024Code Smell 248 - Unreliable CopyTL;DR: Don't rely on external solutions without good handlers Problems Silent Modifications Least Surprise Principle violation Fail Fast Principle Violation Solutions Ensure you meet your function's postconditions Use mature languages Conte...Discuss·33 readsCode SmellsGeneral Programming
Romman Sabbirrommansabbir.com·Apr 20, 2024Kotlin's Collections in a Nutshell[Background Image by JOHN TOWNER] Kotlin, known for its conciseness, expressiveness, and interoperability with Java, provides powerful tools for working with collections. What is Collections in Kotlin? The Collections class in Kotlin is like a toolbo...Discuss·65 readsKotlinKotlin
Esubalew Chekolcode.esube.com.et·Apr 18, 2024Python and Code Cleanliness: Best PracticesPython is renowned for its readability and ease of use, making it an ideal language for both beginners and experienced developers. However, writing clean, maintainable, and efficient code is a skill that requires practice and knowledge of best practi...Discuss·1 likePython
Prajwal Aradhyablogs.codewithprajwal.dev·Apr 18, 2024Understanding Pure and Impure Functions in JavaScriptUnderstanding the difference between these two is crucial for developers, as it can greatly influence the code's predictability, testability, and maintainability. This blog post will delve into the concept of pure and impure functions in JavaScript, ...DiscussJavaScript
Palash Dhavleblog.troncodes.com·Apr 18, 2024TypeScript Unlocked: Union💡 This article is a part of TypeScript Unlocked Series on my blog. Every article in the series is short, crisp and filled with examples and code snippets. If you want to learn TypeScript from scratch for absolutely FREE!!! check it out. Union enab...Discuss·1 likeTypeScript UnlockedTypeScript
Sanjit Gawadesanjit.hashnode.dev·Apr 17, 2024How to Improve React App Maintainability with Single Responsibility PrincipleThe Single Responsibility Principle (SRP) is a fundamental concept in software design that emphasizes creating well-defined, modular units of code. In the world of React development, where components are the building blocks of user interfaces (UIs), ...Discuss·1 likesingle responsibility principle
Alexander PanovforRoyalZSoftwareroyalzsoftware.de·Apr 15, 2024FeaturedBuilding a React Native Bottom Sheet with clean code in mind.Building a slideable sheet in React Native isn't that hard. This post is all about writing a minimalistic sheet in no time! Before diving head first in your favorite editor, let's define the requirements first and see how we can separate this module ...Discuss·25 likes·103 readsTypeScript
Maxi Contierimaximilianocontieri.com·Apr 16, 2024Code Smell 247 - Javascript ReplaceTL;DR: Bad function names will lead you to defects Problems Misleading Names The least surprise principle violation Solutions Avoid ambiguous or bad names Define your own functions Use mature languajes Context Some names in immature languag...Discuss·1 likeCode Smellsclean code
Palash Dhavleblog.troncodes.com·Apr 15, 2024TypeScript Unlocked: Readonly, Optional and Type Mixing💡 This article is a part of TypeScript Unlocked Series on my blog. Every article in the series is short, crisp and filled with examples and code snippets. If you want to learn TypeScript from scratch for absolutely FREE!!! check it out. Readonly R...Discuss·2 likesTypeScript UnlockedTypeScript