By DamnGurl - 12/2/2021 02:58 - United States - Kula

Too clever

Today, during a programming interview, I provided the right approach and the right answer as agreed by the interviewer, but used some extra variables with proper names. Guess who is not selected for the next round due to those extra variables. FML
Add a comment
You must be logged in to be able to post comments!
Create my account Sign in
Top comments
By  RichardPencil  |  30

Wouldn't your compiler warn you about unused variables during the build phase, and give you a chance to delete them?

Having extraneous variables shows you might not have a real grip of the problem.

By  BurnInDemonFire  |  30

Employers want you to solve problems quickly and efficiently. It's called the KISS method. So next time this happens, remember;

Keep
It
Simple
Stupid

Or, if you ever watched MythBusters, follow the Hyneman's examples.

COMMENTS
By  RichardPencil  |  30

Wouldn't your compiler warn you about unused variables during the build phase, and give you a chance to delete them?

Having extraneous variables shows you might not have a real grip of the problem.

Reply
  Seeya55  |  31

Yeah what they want is for you to be direct and understand the problem specifically; A self-reflective con that can actually harm you is being overly-divulsive and complicating things when the answer is actually simple.

Reply
  eellik  |  7

We don't know the programming language. Could be one without compilers or build phases, or where extra variables are no big deal (are they a big deal in any modern language anyway?)

Sounds to me like you dodged a bullet there, OP. Requiring a by-the-book solution in a creative environment with muliple possible approaches to a problem seems like a rigid workplace.

By  BurnInDemonFire  |  30

Employers want you to solve problems quickly and efficiently. It's called the KISS method. So next time this happens, remember;

Keep
It
Simple
Stupid

Or, if you ever watched MythBusters, follow the Hyneman's examples.