News for hackers. Stuff that matters.
Re:Reconstant: Share constant definitions between programmin... by s_gourichon on Sunday March 07, 2021 @07:14AM (#26375288)
This might make sense for "big" projects, with already several languages and an important need. Else it's not obvious if the burden of having yet another dependency has a favorable benefit-cost result.

In other words, the danger of "now you have two problems" should be considered. http://regex.info/blog/2006-09-15/247

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.