News for hackers. Stuff that matters.
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!