News for hackers. Stuff that matters.
Re:No engineer has ever sued because of constructive post-in... by AllegedAlec on Friday February 07, 2020 @03:56AM (#22264266)
> The amount of unqualified candidates that have a decent CV and are reasonable to talk to, but completely unable to correctly write a while loop is too damn high.

There was some research into this, and IIRC, only half the programmers, both experienced and junior, got a while loop right (IE: no off by ones etc) the first time.

Re:No engineer has ever sued because of constructive post-in... by indecisive_user on Friday February 07, 2020 @04:42AM (#22264489)
I had to write a while loop in an interview recently, and I also made the off by one error on my first attempt. But after I ran through a couple test cases by hand, it was pretty easy to see the mistake and fix it.

I wouldn't say getting it right on the first try is the most important thing. Writing code, logically thinking it through, and running through test cases to fix mistakes is pretty similar to how coding on the job is, albeit with less contrived problems.

Re:No engineer has ever sued because of constructive post-in... by perl4ever on Saturday February 08, 2020 @12:10AM (#22274056)
A long, long time ago, somebody wrote about how most supposedly competent programmers can't write a correct binary search under test conditions.
Re:No engineer has ever sued because of constructive post-in... by hvidgaard on Monday February 10, 2020 @01:45AM (#22286908)
Unless we simplify it significantly, it's surprisingly hard to do. And completely irrelevant anyway.