I should not use if/else at all (!) or to avoid if/else nesting?
No you shouldn’t avoid if/else at all! but you should be careful about Cyclomatic complexity of your code. More code complexity tends to have more defects.
Read more on Cyclomatic complexity.
Speed is an essentials feature of your website and it can impact your business success.
According to a recent surveys, nearly half of web users expect a site to load in 5 seconds or less, and they tend to abandon a site that isn’t loaded within 8 seconds. 50% of online buyer who have trouble with website performance say they won’t return to the site to buy again and around 44% of them would tell a friend if they had a poor experience shopping online […]
Code documentation is an integral part of software development but some developer who write good code but they completely ignore the code documentation. Documenting your code is considered as best practice. A well documented code will help you to understand code easily which you written in past. It help you to manage your code at long run. […]
Adding code comments to your variables, functions, classes and single line comment above the important logic is the important part of code documentation. It helps you to maintain the code at long run and shareable to other developers. But sometime documenting a code feels like a hectic task. Today, I will guide you to document the code quickly then ever. […]