News for hackers. Stuff that matters.
Re:Data Structures Reference by A_Person on Saturday June 30, 2018 @10:42AM (#17431008)
> In your first snippet, would you expect a candidate to tell you that `f` might be undefined?

No. Because I'd expect the candidate to focus on subtle issues, and not waste time on bleeding obvious ones!

Of course f() might be undefined. Blind Freddy knows that. But Blind Freddy can't necessarily see the other (much more subtle) problems in those 4 lines of code.

I want to know, is this candidate more than Blind Freddy? Does he inhabit what some of us call "the real world", where things like division by zero are things to be consciously managed by proper coding practices?

(Edits for clarity)

Re:Data Structures Reference by howdydoo on Saturday June 30, 2018 @11:11AM (#17431104)
As someone who has worked on several legacy JS codebases, I can tell you with certainty that in some kinds of projects you'll find in the "real world", `f` being undefined is infinitely more likely than a divisor being zero. Maybe Freddy isn't blind. Maybe he just has a different background than you.
Re:Data Structures Reference by A_Person on Saturday June 30, 2018 @11:22AM (#17431142)
Quite possibly. I've worked mainly in languages where undefined functions kill the compile, and division by zero is a runtime error. Perhaps JavaScript just facilitates sloppy coding practices? Many other languages don't. Perhaps you're the one with the skewed perspective!
Re:Data Structures Reference by oreganoz on Saturday June 30, 2018 @12:39PM (#17431464)
Wow, congrats on insulting people who use a different programming language than you. You really give an air of professionalism in your speeches.

But its the lack of communication on your front that would make people fail your test, not their lack of competence.

Anyone can summon an obscure puzzle and claim its easy when they know the key.

Re:Data Structures Reference by abiox on Saturday June 30, 2018 @04:08PM (#17432524)
> who use a different programming language than you

isn't this a bit reductive?

Re:Data Structures Reference by A_Person on Sunday July 01, 2018 @09:30AM (#17435527)
> Wow, congrats on insulting people

I posted a detailed exposition of my own approach to interviewing. I expected nothing more than some intelligent comments thereon.

In response, someone says I'm "prejudiced", and why would he "give a fuck" about my concerns; another says my concerns exist "in a parallel universe"; and another says my views are "religious"!

Equeeze me if I don't take well to copping random insults in what is meant to be an intelligent discussion forum. Particularly from people who've contributed zero to the discussion so far - like you! I suggest you get out of the basement and get some exercise. Maybe ask your mum for a bike?