Managing Tag Naming Variables in TypeScript
What is the preferred way to manage tag naming variables?
This string "UserNotFound" bothers me because it means I have things like this also duplicating the string literal:
I can easily pull it out in a variable like:
But I am sure you guys/gals have better patterns? I guess I could also attach it as a static method on the UserNotFound class itself...
This string "UserNotFound" bothers me because it means I have things like this also duplicating the string literal:
I can easily pull it out in a variable like:
But I am sure you guys/gals have better patterns? I guess I could also attach it as a static method on the UserNotFound class itself...
