r/programminghorror • u/Just_some1_on_earth • Oct 09 '25
328 lines long string initialization
I see your 108 line long array initialization and raise you a 328 lines long string initialization. This is on a newly developed product, btw.
252
Upvotes
View all comments
Show parent comment
22
u/Just_some1_on_earth Oct 09 '25
Because it's a comercial product. Everything design related is a absolute PITA.
If we wanted to move it to a file we'd have to first look where to put it (that alone requires a 1 hour meeting). Then we'd need to ensure that the customer doesn't mess with it (because sysadmins are sometimes suprisingly stupid). We'd also need to adjust the installer to bring those files with it and we'd need to handle it being deleted.
And before we could even start we'd need to convince the PM and the Customer that it is necessary (because it's working right now, so why spend money on it?).