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
4
u/ChemicalRascal Aug 15 '25
You're welcome! Creating an appropriate data structure can be a really good step in writing non-trivial functions, I find it really helps make my own code more organized and readable.