ASP.NET,C#.NET,VB.NET,JQuery,JavaScript,Gridview,SQL Server,Ajax,jQuery Plugins,jQuery UI,SSRS,XML,HTML,jQuery demos,code snippet examples.

Breaking News

  1. Home
  2. .NET CORE
  3. C #
  4. clean code
  5. Magic strings are string values that must be specified in the code

Magic strings are string values that must be specified in the code

 Clean Code Tip 💡

 
Magic strings are string values that must be specified in the code
 
⏩ In most cases, magic strings end up almost always duplicating themselves because they cannot be updated automatically
 
⏩ They are susceptible to being a source of errors
 
✅ If we use constants, we will prevent these strings from being duplicated and causing errors


Magic strings are string values that must be specified in the code


1 comment: