Re:How to Land a Six-Figure Software Developer Job
by lacker on Monday May 04, 2009 @09:39PM
(#593431)
So what is wrong with
Do they just mean the missing semicolon? If so that's a pretty lame interview question.
[ Parent
| on HN ]
Re:How to Land a Six-Figure Software Developer Job
by aminuit on Monday May 04, 2009 @09:44PM
(#593444)
You omitted a line.
{
object* p=NULL;
p = new object();
p->foo()
delete p;
}
// ?? Whats wrong with above
1) Missing a semi-colon. 2) The developer knowingly checked in broken code as evidenced by the comment. 3) In English the question mark comes at the end of the sentence.In the age of instant syntax error feedback, it's exceedingly lame.
Here's the formula for getting a 6 figure developer job.
1) learn your craft 2) get experience 3) be pleasant and productive
Answering crappy interview questions doesn't really come into it. It's as if the author thinks the thing that separates success from failure is knowing the answer to gimmicky questions.
Re:How to Land a Six-Figure Software Developer Job
by andylei on Monday May 04, 2009 @11:16PM
(#593542)
There are many elements of getting a 6 figure developer job. The things you mentioned are important, but answering interview questions are important as well. If you can't answer interview questions, you can start up (nothing wrong with that), but you won't be able to land jobs.
"but answering interview questions are important as well"
Agreed - it's very important to interview well.
answering crappy and stupid interview questions : Disagree strongly.
Anyone asking these idiotic questions 'why are manhole covers round?' is more likely trying to prove to themselves how clever they are at asking tricky questions than finding the candidate with the right fit and skills.
Re:How to Land a Six-Figure Software Developer Job
by xiaoma on Tuesday May 05, 2009 @05:56PM
(#594807)
At least here in Taipei, most manhole covers I see are rectangular.
What kind of interview question is that?
Re:How to Land a Six-Figure Software Developer Job
by neilc on Monday May 04, 2009 @10:42PM
(#593503)
foo() might throw an exception, leaking "p". Stack allocation should probably be used instead of heap allocation here, anyway.
Thanks for reminding me why I'm never going anywhere near C++ ever again in my life.
Good answer though, I was stumped.
Re:How to Land a Six-Figure Software Developer Job
by aminuit on Tuesday May 05, 2009 @02:08AM
(#593725)
I totally missed it too. People are using this to bash C++ which is probably fair, but it's worth noting that lots of modern C++ folks default to using RAII pointer types (std::auto_ptr, boost::shared_ptr) to guard against these types of errors.
Re:How to Land a Six-Figure Software Developer Job
by lacker on Tuesday May 05, 2009 @01:18AM
(#593685)
Ugh. Good point though. Reminds me of why my company forbids the use of exceptions in C++ programming.
Re:How to Land a Six-Figure Software Developer Job
by edw519 on Monday May 04, 2009 @10:37PM
(#593501)
It's unclear from such a small snippet whether "p" is a local or global variable. Either way, have a little consideration for the next programmer and give it a meaningful name of at least 3 characters. Make it easier to read and search for. And dust the "foo" and give it a meaningful name, too.