News for hackers. Stuff that matters.
Re:The Surprising Number of Programmers Who Can’t Program by chadash on Friday August 23, 2019 @11:00AM (#20778320)
I've had the same experience. I can forgive an interviewee for not remembering what symbol the modulo operator is, but not for not knowing what it is in the first place.

I've had the same experience asking applicants to reverse a string in a language of their choice. sometimes they'll give me a simple answer like "''.join(reversed(my_str))" (python), which i'll accept and move on to the next (harder) question, but even if you don't remember that syntax, you should be easily able to build a function using a for loop. I find that 50% of applicants can't and it saves me a lot of time finding this out early in the interview process.

Re:The Surprising Number of Programmers Who Can’t Program by carapace on Friday August 23, 2019 @11:33AM (#20778650)
I can't help myself: In Python to reverse a string (or other sequence)...

    In [1]: "?he ,taeN"[::-1]
    Out[1]: 'Neat, eh?'
Re:The Surprising Number of Programmers Who Can’t Program by guiambros on Friday August 23, 2019 @11:45AM (#20778768)
True, but remember that:

Explicit is better than implicit.

Readability counts.

Re:The Surprising Number of Programmers Who Can’t Program by quazar on Friday August 23, 2019 @11:45AM (#20778779)
Pythonic way to reverse a string would be my_str[::-1].