Live data from Hacker News

Ask HN: Scolded on a job interview for not namespacing

news.ycombinator.com

41–50 of 69 posts

Re: Ask HN: Scolded on a job interview for not namespacing

#41
post #16

I had an interview where the interviewer was much more concerned about looking smart and presenting his cleverly chosen question, than ever wanting to know if I was a good candidate. I even told him that his overbearing interjections we’re throwing off my rhythm. I never heard back from him. Probably for the better.

I’d say that’s 60-80% of interviews. Especially group interviews. Everyone’s first priority is to look smart.

Re: Ask HN: Scolded on a job interview for not namespacing

#42
Red flag for someone you don’t want to work with or under. They have no people skills.. treating people/those you work with kindly & respectfully is more important then your insecure ego & silly mad perfectionism(which is subjective & your Strive for your perfectionism just makes you look like a jerk unless your best buds with the head jerk).

Re: Ask HN: Scolded on a job interview for not namespacing

#43
post #12

Honestly if I ever had someone yell at me in an interview I'd just pick my stuff up and walk out. Cheap way of figuring out you don't want to work there. Give feedback to the recruiter of what is unacceptable behaviour. As to the actual point I'm with you: be explicit. I write std::cout too. Not that I'd get upset if someone used "using namesace std" as long as such using statements are used judiciously, it's fine. L…

I'm with you. I'd say "Thanks for your time" and leave, giving feedback to the recruiter. If anyone at my company did that in an interview, we'd certainly never put them in an interview rotation again, and there might be further repercussions. There's one guy in our office who is a brilliant programmer, but when reviewing code, he's incapable of seeing anything but the negatives. (Upon reflection, he perhaps did this…

"when reviewing code, he's incapable of seeing anything but the negatives"

isn't is the purpose of code review

Re: Ask HN: Scolded on a job interview for not namespacing

#44
Where I work 'using namespace std' is explicitly forbidden, and rightly so for exactly the reasons you point out: there's way too many common names in std:: that could clash with our own code.

More broadly, 'using namespace' is strongly discouraged except for our own namespaces. In all but a very narrow set of exceptions, we prefer to make it immediately obvious what functions are from external dependencies when scanning the code.

If the interviewer finds adding explicit namespaces 'confusing', the problem is with him, not you.

Re: Ask HN: Scolded on a job interview for not namespacing

#45
Generally never use the using namespace std given there are a ton of functions from std library that I do not need.

I had a similar experience but, in a much friendly environment except I did the exact opposite. I actually wrote a blog post (https://marcell.me/using-namespace-std/) about this last week, feel free to check it out

Re: Ask HN: Scolded on a job interview for not namespacing

#46
post #16

I had an interview where the interviewer was much more concerned about looking smart and presenting his cleverly chosen question, than ever wanting to know if I was a good candidate. I even told him that his overbearing interjections we’re throwing off my rhythm. I never heard back from him. Probably for the better.

I’d say that’s 60-80% of interviews. Especially group interviews. Everyone’s first priority is to look smart.

10 Tricks to Appear Smart During Meetings

https://medium.com/conquering-corporate-america/10-tricks-to...

Re: Ask HN: Scolded on a job interview for not namespacing

#47

I hate typing the same thing over and over... so, yeah, I'd use namespace std. However, for an interview, you are correct. This is something too trivial to mention or "get mad" at...

Typing is cheap. Debugging, reverse-engineering and refactoring is expensive.

Taking shortcuts just because you don't like typing a few extra characters is a bad habit to have, it leads to the kinds of code that has obfuscated variable names, no comments, 'clever tricks' that put way too much logic in a single line, etc.

I used to think like you, but I realized saving a few keystrokes is almost never worth it.

Re: Ask HN: Scolded on a job interview for not namespacing

#48
post #43

Earlier quoted context omitted.

I'm with you. I'd say "Thanks for your time" and leave, giving feedback to the recruiter. If anyone at my company did that in an interview, we'd certainly never put them in an interview rotation again, and there might be further repercussions. There's one guy in our office who is a brilliant programmer, but when reviewing code, he's incapable of seeing anything but the negatives. (Upon reflection, he perhaps did this…

"when reviewing code, he's incapable of seeing anything but the negatives" isn't is the purpose of code review

No, the purpose is to give constructive feedback which is especially important when a senior eng is reviewing junior eng work and you’re trying to guide them with encouragement.

Re: Ask HN: Scolded on a job interview for not namespacing

#49

Earlier quoted context omitted.

> HR department you should consider telling them what happened. Why? Better you dodge a bullet and GTFO. Don't waste time with telling them what they probably already know.

Fine to dodge the bullet, but please always provide the feedback if possible. It takes minimal effort, and can help avoid the same unpleasant experience happening to others in the future.

I've done hundreds of interviews of various types. Do you know how many have provided me feedback? 1 (see below). All others either sent me a form email or ghosted me. Perhaps if I went through a recruiter, I would give the recruiter my feedback as a professional courtesy there, but I'm not opening a dialog to some HR department.

And that unpleasant experience is also a very good sign to prospective employees to "DONT WORK HERE". If that's how they treat people they're courting, I want to know that up front, rather than see it a month later after relocating. So no, I don't want them to fix it (in reality; delay it).

I want interviews to be the same way as a Unix process: fail quickly and fail loudly. And this interview certainly did that.

(Glowforge, I didn't have the experience in the areas they were asking. And I'm happy they told me. And they were up front with me within 2 days, at that!)

Re: Ask HN: Scolded on a job interview for not namespacing

#50
Definitely unprofessional and disrespectful for an interviewer to have a temper tantrum during the process.

The nearest I've had is a manager who was angry in a 1:1 when I disagreed and blew a gasket. That just made me smile as I thought it was funny but I stopped him there and left the room. Nothing more was ever said of that meeting.

Post reply on HN