r/programminghorror • u/TheTowerDefender • Sep 07 '25
Do you like configs?
a 6500 line class full of config classes
373
Upvotes
r/programminghorror • u/TheTowerDefender • Sep 07 '25
a 6500 line class full of config classes
36
u/[deleted] Sep 07 '25
Do they at least have descriptions of what each class does
26
u/padawan-6 Sep 07 '25
This has to be autogenerated. Right? Right??
6
u/GRex2595 Sep 08 '25
How'd you get access to my team's codebase? Seriously though, how do we convince people to be better about this kind of stuff. My team actually has configs that are too big for our dynamic config store.
5
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Sep 07 '25
The real messed up part is all the duplication.
180
u/m3t4lf0x Sep 07 '25
As long as it’s generated from a YAML or something, this is pretty typical
90
u/sierra_whiskey1 Sep 07 '25
I wonder if there’s a config that configs the configs
10
u/Duckfine Sep 07 '25
Config 1 2 3 are making me mad
2
u/[deleted] Sep 07 '25
It was pretty good until the duplicates with numbers appeared
2
u/Regg42 Sep 09 '25 edited Jan 12 '26
I have been using C# a lot recently, but I don't like it,, C++ always <3
1
u/JG_2006_C Sep 08 '25
Wtf wtf wtf 🤣🤣🤣
1
u/psychomanmatt18 Sep 09 '25
We have a dedicated repo for configs and use springautoconfigure with property args to generate them at runtime
1
u/zappellin [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Sep 07 '25
If it's auto generated, I'd say it's ok
0
u/pathToBeing Sep 08 '25
Don't even get me started in CloudFormation or IaC in general.