Published onMay 28, 2023View count29 viewsUse Getters and SettersCode-TipsUsing getters and setters is better than accessing the object property directly. Accessing properties directly breaks encapsulation.
Published onMay 27, 2023View count25 viewsUse Few Function ArgumentsCode-TipsSimplify your code and improve testability by minimizing function arguments. Discover how fewer arguments enhance readability and maintainability.
Published onMay 26, 2023View count193 viewsDon’t use flags as function parametersCode-TipsFollow best practices and adhere to the single responsibility principle by not using flags as function parameters. Improve code comprehension and modularity.
Published onMay 26, 2023View count244 viewsFunction names should say what they doCode-TipsSay what the function does with its name. The name should tell you what it expects as inputs as well.
Published onMay 25, 2023View count94 viewsUse Descriptive NamesCode-TipsChoosing good names takes time but it saves even more time. Names should give you useful information.