Category: programming languages
Nowadays the web-based APIs are popular. Many large websites provide APIs such as Facebook, Twitter. The return value is often encoded using JSON format. To limit the user from …
GUIDcan be used for random unique IDs. The chances of collisions are rare and that can be ignored. So instead of using Random() class to generate random characters/integers and …
Magic string constants are as bad as magic numbers. They are error-prone. One bad impact is that if you have quite a number of usages throughout the project, you …
In a team, each developer writes bad code sometimes. For example, in this post, the total number of general exceptions (C#) is counted in a code-base. Writing general exceptions …
Resharper is a great and must-have tool (plugin) for Visual Studio. It improves the code quality and helps to identify potential problematic code. The ‘Refactoring’ feature is great but …