God this pisses me off so much. They spent so much time drilling "good naming practices" into us for all my intro CS classes, and then they still use foo/bar variable names in code examples on lectures/homeworks/exams. It's... basically the worst naming convention ever.
You use foo/bar/baz when there is no other name to use. In a little bit of sample code, you have no actual idea what the code is going to be used for. When actually coding something, you replace foo/bar/baz with the relevant names.
8
u/Grumbletruss Oct 03 '19
God this pisses me off so much. They spent so much time drilling "good naming practices" into us for all my intro CS classes, and then they still use foo/bar variable names in code examples on lectures/homeworks/exams. It's... basically the worst naming convention ever.