News for hackers. Stuff that matters.
Re:Why not program right? by stcredzero on Friday July 06, 2018 @05:19PM (#17475208)
the exercise of modeling a domain is not something they really engage in

This is what I've seen in interviews. The typical recent grad can understand an existing model. Some of them can't design a simple model from scratch and concretely specify functions to do operations on it.

if the program doesn't do what they want it to do, either the instructions are wrong, or there need to be more of them to handle the cases that aren't currently handled.

I've asked interviewees what they could do about them cycles in user-entered code, by giving them a 2-node example. Far too often, they reply with an if-clause to detect exactly a 2-node cycle. Then I ask what to do about 3 nodes, then far too many of them try to give me a 2nd if-clause!

Re:Why not program right? by Namrog84 on Friday July 06, 2018 @06:43PM (#17475679)
Could you elaborate on your question?

With a 2-node example what do you mean? Like a race condition? A mutex or some kind of lock to prevent this?

When you say node cycle. Do you mean like in graph theory where you can have the "fast and slow traversal" find a cycle?

Re:Why not program right? by stcredzero on Friday July 06, 2018 @07:35PM (#17475936)
The user-entered data is a bunch of expressions which can reference each other, forming a graph. The user needs to be prohibited from entering an expression which creates circular dependencies.
Re:Why not program right? by pdimitar on Sunday July 08, 2018 @01:08AM (#17482250)
Do you have any visual example? Or textual? I'd very much like to see exactly what you mean and what would you consider a failure at that interview (and what would you consider a success).
Re:Why not program right? by stcredzero on Sunday July 08, 2018 @12:57PM (#17484784)
I've asked interviewees what they could do about cycles in user-entered code, by giving them a 2-node example. Far too often, they reply with an if-clause to detect exactly a 2-node cycle. Then I ask what to do about 3 nodes, then far too many of them try to give me a 2nd if-clause!