Making code unmaintainable...

Miscellaneous Forums/General Discussion/Making code unmaintainable...

I remember interviewing a programmer who was extremely proud of his coding, so proud he brought a huge A4 folder of code listings with him.

His CV was pretty good on paper, but looking at his code there was things similar to this (which was involved in controlling some electrical devices).

  for enterprise = 1 to spock
     kirk = kirk + 1
     if kirk = 1 then scotty = 1
     if kirk = 2 then scotty = 2
     if scotty > tribble then beammeup(scotty)
  next

I kid you not!

When questioned on how he planned and started a project, he said he first came up with a theme (no prizes for the theme above), then named everything based on that theme..

Unless you havn't guessed, he didn't get the job!