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
Clean Code
ReplyDelete