Reply to post: Re: Coding by geniuses

Good thing this dev quit. I'd have fired him. Out of a cannon. Into the sun

Nick Ryan Silver badge

Re: Coding by geniuses

I first encountered this when working on an industrial placement as part of my Uni course.I was given the task to take over code from the resident genius. His code was concise, fast and didn't work.

It was so concise there were often no, or few validation checks with error messages. If something didn't work it was often ignored, and this "something" could have been any one of a dozen things in a single compound logic statement. Every bit of code worked like this, therefore when something didn't work it was next to impossible to work out why.

Needless to say I simplified things and logged every damn error message so we knew exactly wasn't working, where and when which gave us a start as to why.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon