Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
strayn348yReminds me of a fellow students code.. How can they keep track of single letter variable names?
-
KrupaH4638y@strayn simple: they can't. I've had to debug this kind of code, because the programs the teacher gave us (yes he gave the programs in full because he obviously did not understand the algorithms well enough to explain them) were frequently full of bugs. When I ask them "what does this variable do?", 9 times out of 10 the answer was "I don't know, I copied the program exactly like he's given it".
-
KrupaH4638y@AbT10 Yup. Although I would like to say *almost every, just to maintain some self respect .-.
-
strayn348y@davehuk so it is genius to create programs which are virtually unreadable for anyone else, and potentially unreadable for one's future self?
-
I can read that code fine. Agreed It doesn't hurt to be descriptive and comment. But there are far too many whiney coders getting paid a lot of money for being bad...and they throw the rattles out of the pram without a tutorial and 10k lines of docs for a simple algorithm
-
AmbikaMV228yAnd such single letter variables were wrongly copied by most of the students, variable c was e for some, l was t etc , and they would end up blaming teacher for giving wrong programs 😂
Related Rants
This is documentation at a noob-program level. We had this one teacher, who shall remain unnamed, who used single letter variable names everywhere, who couldn't understand his own programs when they were shown to him.
PS - The picture attached is supposed to be an implementation of Kruskal's algorithm. Don't ask me what the variables mean.
undefined
algorithms course
"teachers"
wk16