News for hackers. Stuff that matters.
Re:I've been a software engineer for 10 years and I can't do... by jcadam on Monday March 06, 2017 @01:05PM (#13804607)
I myself have sat in an interview with my mouth agape as I watched a "senior" engineer try to figure out how to find the largest element in a one-dimensional array.

So, anymore I don't have much of a problem with simple coding questions to filter out total non-programmers (fizzbuzz, your calendar problem, etc.).

But the whole stand on one foot and implement a red-black tree in bash script on the whiteboard while I peck at my smartphone and sigh every time you pause to think has got to freaking stop.

Re:I've been a software engineer for 10 years and I can't do... by dpark on Monday March 06, 2017 @01:32PM (#13804860)
> while I peck at my smartphone and sigh every time you pause

This is a much bigger deal to me than difficult algorithm questions. Shitty interviewers give shitty interviews, regardless of what kinds of questions they ask.

The worst interview I ever had was like this. The guy showed up late, told me he forgot he even had an interview, gave me a strange question with little detail, and told me to start coding. Then ignored me for an hour while he typed on his laptop. Even when I directly asked for feedback to make sure I was solving the problem he asked and not a misunderstanding, he gave me basically no feedback. I've had interviews that I bombed before, but this was the first and only time that I felt like I bombed an interview and it was utterly not my fault. It was also the only time I've had a bad interview that actually ruined the rest of the day for me because it threw me off so much.

Re:I've been a software engineer for 10 years and I can't do... by tonyedgecombe on Monday March 06, 2017 @02:19PM (#13805228)
I think I would just walk out at that, at the end of the day this is someone you are going to have to work with or for.
Re:I've been a software engineer for 10 years and I can't do... by dpark on Monday March 06, 2017 @03:24PM (#13805763)
I wish I had. If something like that ever happens again, I will.
Re:I've been a software engineer for 10 years and I can't do... by pklausler on Monday March 06, 2017 @01:52PM (#13805038)
> implement a red-black tree in bash

The only good answer to that is "I can't imagine why I'd ever need to do that, and if I had to anyway, I'd use a 3-2 tree instead because it's almost as good and nobody ever gets red-black trees right the first time."

Re:I've been a software engineer for 10 years and I can't do... by ep103 on Monday March 06, 2017 @01:30PM (#13804838)
I had two people this week, 10+ years "experience", fail at writing a function removing duplicate values from an array.
Re:I've been a software engineer for 10 years and I can't do... by badthingfactory on Monday March 06, 2017 @01:45PM (#13804977)
I have interviewed two "senior web developers" with "10+ years" of experience that were unable to tell me the difference between a 404 and 500 http response code. Of course, they had perfectly memorized answers about JavaScript closures.
Re:I've been a software engineer for 10 years and I can't do... by lj3 on Monday March 06, 2017 @02:02PM (#13805107)
who memorizes http response codes?
Re:I've been a software engineer for 10 years and I can't do... by dragonwriter on Monday March 06, 2017 @06:13PM (#13806971)
Presumably, programmers who are working with the web should have a passing familiarity with the most common categories; this isn't memorizing all of them, but being able to recognize the significance of 2xx vs 3xx vs 4xx vs 5xx codes isn't an unreasonable expectation.
Re:I've been a software engineer for 10 years and I can't do... by ep103 on Monday March 06, 2017 @02:27PM (#13805297)
Who can't tell the difference between a 404 and a 500?
Re:I've been a software engineer for 10 years and I can't do... by falsedan on Monday March 06, 2017 @04:44PM (#13806321)
Somebody who rarely instructs a user agent to make requests to a server.
Re:I've been a software engineer for 10 years and I can't do... by badthingfactory on Monday March 06, 2017 @10:59PM (#13808163)
This isn't entirely accurate. I told my RN Fiance this story and she said "oh 404, that's like... page not found or something isn't it?" She has zero programming experience.
Re:I've been a software engineer for 10 years and I can't do... by RandomOpinion on Monday March 06, 2017 @06:00PM (#13806878)
So, basically, somebody who never uses a web browser? 404 and 500 should be familiar just from browsing the web for more than a few weeks.
Re:I've been a software engineer for 10 years and I can't do... by dragonwriter on Monday March 06, 2017 @06:10PM (#13806950)
Modern browsers seem to do quite a bit to insulate users from error status codes in their default configurations.
Re:I've been a software engineer for 10 years and I can't do... by 6nf on Monday March 06, 2017 @05:59PM (#13806864)
The people in question do in fact use internet browsers on a daily basis.
Re:I've been a software engineer for 10 years and I can't do... by falsedan on Monday March 06, 2017 @07:50PM (#13807470)
That's good to hear.
Re:I've been a software engineer for 10 years and I can't do... by jcadam on Monday March 06, 2017 @02:47PM (#13805468)
Programmers who want their REST API to return correct http response codes. I have a good many of them memorized by now. :(

...someday I'll find an excuse to return a 418.

Re:I've been a software engineer for 10 years and I can't do... by lj3 on Monday March 06, 2017 @08:46PM (#13807698)
Bah! Just always return 200 and if there's an error, make your users look for an error property in the json return value that contains a thoroughly unhelpful error message, like "I'm a teapot." ;)
Re:I've been a software engineer for 10 years and I can't do... by watwut on Monday March 06, 2017 @02:21PM (#13805252)
Web developers spend most of their time in javascript - coding fronted where closures and functional programming matters a lot. Maintennable modern fronted is done that way.

They spend very little time staring at http error codes. Like, none.

Re:I've been a software engineer for 10 years and I can't do... by wink on Monday March 06, 2017 @02:39PM (#13805404)
Web development includes server-side, and that API the fancy JS code is interfacing with.
Re:I've been a software engineer for 10 years and I can't do... by watwut on Tuesday March 07, 2017 @02:03AM (#13808776)
Node.js is javascript too :). Even there, error codes are something you maybe handle once when the project is setup and the rest of the time you deal with everything else.
Re:I've been a software engineer for 10 years and I can't do... by sigsergv on Monday March 06, 2017 @08:53PM (#13807729)
Are you sure it was exact question about largest element in a one-dimensional array and not some highly obfuscated question about bees, trains and traveller bags?