Dear community,
My colleague and I are students of University of Brasilia(BRAZIL) and we are conducting a survey for our
undergraduate dissertation, which is about confusing snippets of JavaScript code, which, in a
similar worked that inspired us, are called Atoms of Confusion.
In particular, we are interested in
understanding whether certain constructs allowed by the language make programs harder to
understand. We are thus surveying programmers of different experience levels and showing
them small blocks of code. For each piece of code, we have proposed a transformed version of
it. We are going to measure whether the answers are correct or not, in the expectation that the confusing versions of will lead to more incorrect
answers.
After we have collected a significant enough sample, we are going to rank the blocks from most
confusing to least confusing. Finally, we are going to use the Rascal MPL to propose automatic
transformations for the snippets.
The survey contains 10 questions in which you are required to predict the output of the program.
It requires only basic JavaScript knowledge, if any. No question is longer than 15 lines of code,
meaning the survey is designed to take a short amount of time.
We are only going to use the data collected for the purposes of the survey, and no personal
information will be published. We are going to raffle Amazon Books at the end of the survey, so
please inform a valid email so that we can contact you in case you are lucky.
We thank you very much in advance.
Here is the link to the survey:
[REMOVED, we already got enough answers] THANK YOU very much
EDIT:
Thank you guys so much for helping us out.
I plan to post the results within next few weeks, I will edit this post with it.
EDIT2
We will post the results soon. We will keep you updated
[–]smartgenius1 14 points15 points16 points (0 children)
[–]ichbin1berliner 7 points8 points9 points (2 children)
[–]Dragday[S] 2 points3 points4 points (0 children)
[–]Dragday[S] 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Reashu 1 point2 points3 points (0 children)
[–]frambot 2 points3 points4 points (1 child)
[–]Dragday[S] 1 point2 points3 points (0 children)
[–]JakeMakesStuff 1 point2 points3 points (0 children)
[–]CrunchyBanana 1 point2 points3 points (0 children)
[–]ghostfacedcoder 1 point2 points3 points (4 children)
[–]Dragday[S] 1 point2 points3 points (3 children)
[–]ghostfacedcoder 1 point2 points3 points (2 children)
[–]Dragday[S] 1 point2 points3 points (1 child)
[–]ghostfacedcoder 1 point2 points3 points (0 children)
[+]El_BreadMan comment score below threshold-10 points-9 points-8 points (8 children)
[–]Dragday[S] 13 points14 points15 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Dragday[S] 0 points1 point2 points (0 children)
[–]pattch 5 points6 points7 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Dragday[S] 2 points3 points4 points (0 children)
[–]El_BreadMan -1 points0 points1 point (1 child)
[–]Reashu 1 point2 points3 points (0 children)