There's more than one way to do things | |
PerlMonks |
Re^3: Evil Interview Questionsby Herkum (Parson) |
on Feb 10, 2008 at 20:38 UTC ( [id://667291]=note: print w/replies, xml ) | Need Help?? |
I rarely found these types of question fun, your right the attitude matters, but the people who use these questions are not looking for a good programmer, they are looking for a technical programmer which is not the same thing. It is easier to identify a persons technical attributes than there qualities as a good programmer. Take this example object;
This is the implementation of the object.
Can you see the problem? Technically they are both correct, but one of these basically creates havoc that cannot be overcome by intimate knowledge of the language. The print statements display the same value because they access the same data. The call to access the data directly via the hash reference forces it to be a static implementation. It creates maintenance headaches and you cannot update your object without breaking code. Focusing on technical trivia is not a replacement for development/design process. Update: I did sloppy work on my object code (pointed out by shmem and I fixed it to reflect the problems he pointed out)
In Section
Meditations
|
|