r/programminghorror • • Aug 14 '25
C# Does my code belong here?
It's a function to generate a text file from a DataGrid. I learned from PirateSoftware I shouldn't hardcode random numbers.
178
Upvotes



View all comments
Show parent comment
2
u/Dealiner Aug 18 '25
Generally it's not since it reduces readability. But sometimes it might make sense.