Published onMay 27, 2023View countUse Getters and SettersCode-TipsUsing getters and setters is better than accessing the object property directly. Accessing properties directly breaks encapsulation.
Published onMay 26, 2023View countUse Few Function ArgumentsCode-TipsSimplify your code and improve testability by minimizing function arguments. Discover how fewer arguments enhance readability and maintainability.
Published onMay 25, 2023View countDon’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 25, 2023View countFunction 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 24, 2023View countUse Descriptive NamesCode-TipsChoosing good names takes time but it saves even more time. Names should give you useful information.