21
KrupaH
5y

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.

Comments
  • 3
    Reminds me of a fellow students code.. How can they keep track of single letter variable names?
  • 4
    @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".
  • 1
    @KrupaH oh god.. Feel sorry for you!
  • 6
    Mathematician spotted
  • 4
    looks like the story of every computer science student in India.
  • 1
    @AbT10 Yup. Although I would like to say *almost every, just to maintain some self respect .-.
  • 1
    @KrupaH I'm taking about the teachers, self learning students know things better then what we're taught at college. Including me as well.
  • 0
    How would this algorithm be practically usefull?
  • 1
    maybeHeJustHatesTheWayCamelbackLooks
  • 1
    @strayn cause they are geniuses
  • 0
    @davehuk so it is genius to create programs which are virtually unreadable for anyone else, and potentially unreadable for one's future self?
  • 1
    @strayn I'm thinking (read hoping) that was sarcasm haha
  • 0
    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
  • 0
    And 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 😂
Add Comment