I’m pretty sure Rust fails that test badly
-
-
-
Does it? I guess so, but not as badly as most other popular languages.
-
Well, it's indeed better than C++ or even C. But I'm not even sure it's better than JavaScript in that regards.
-
The good thing is: in Rust the answer to most of the tricky questions for those other languages would be “it fails to compile” instead of “it does some insanely stupid shit that will haunt you for days in production”.
-
If it fails to compile, it's not a tricky question :)
-
<show code>. Q1. “What is misleading about rustc’s diagnostic here?” Q2. “Fix the code to compile (and work)”
-
I haven’t shown the code yet but I could come up with some tricky examples. They wouldn’t be usable forever, assuming compiler diagnostics and language expressiveness improves over time. But still seems like it would fall into bucket pcwalton defined.
-
Still, I admit that as an interviewer, i would need to *work* to do this. And thus
@pcwalton’s desire may be met in this instance. - 3 more replies
New conversation -
-
-
I remember being asked why I answered a "Find a loop in this linked list" in C and not
#fsharp, and I responded that you only have the problem in a language where you conflate the structure of something with its semantic - so I could only answer it in such a language! -
-
Pretty sure there is a circular buffer in FSharpx.Collections. IIRC it is not purely functional.
-
yes, and it would lead to a trivial solution for "is this a circular buffer?" :D
End of conversation
New conversation -
-
-
Perhaps a better goal: design a company that doesn't ask those kinds of interview questions.
- 1 more reply
New conversation -
-
-
When
@joshbloch was on the#dartlang team, he used to say his job was to make it impossible for himself to later write a "Dart Puzzlers" book.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Classify each of the following as a valid Swift identifier, valid Swift operator, or neither: 1. x 2. % 3. 🅐 4.
5.
6.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
in my own experience, Python does a wonderful job of thwarting interview questions devised by Java programmers
-
I have opinions on this, but they won’t fit in a tweet.
End of conversation
New conversation -
-
-
Okay, Javascript: function ಠ_ಠ ( ) { /* is it valid function name? */ }
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
According to Gödel, you can make stupid tricky questions about everywhere...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.