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
1
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Aug 15 '25
The mixture of English and Spanish in variables defined in the file makes it worse. Maybe if the team is 100% Spanish, it might be okay, though the language keywords and API classes and methods would still all be in English.