Re:Reconstant: Share constant definitions between programmin...
by nyellin on Sunday March 07, 2021 @07:17AM
(#26375304)
Always true! I've had this problem on several projects in the past decade and I always solved it with the easy solution of copy-paste. However, over the weekend I had an annoying bug in a personal project because the enums I had defined in the Vue frontend had accidentally changed from the enums I defined in the FastAPI backend... Thus Reconstant was born.
In other words, the danger of "now you have two problems" should be considered. http://regex.info/blog/2006-09-15/247