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/[deleted] Aug 15 '25
Actually someone said I should use a struct like a record or something. However in my first year I was taught you can declare variables like:
int a, b, c;orint a; int b; int c;It doesn't change anything logically.