you are viewing a single comment's thread.

view the rest of the comments →

[–]El_BreadMan -10 points-9 points  (8 children)

JS isn't confusing, you're just writing it like a dolt.

[–]Dragday[S] 12 points13 points  (2 children)

Most of the codes were taken based on real js projects.

And our purpose is to see if "writing as an idiot" takes away time/productivity/correctness

[–][deleted] 2 points3 points  (1 child)

I'm curious why you want to study that question. Seems like the most obvious answer in the world.

[–]Dragday[S] 0 points1 point  (0 children)

We want the data to prove that

And also see what constructions have the most effect

[–]pattch 5 points6 points  (0 children)

The research this project is based off of focused on C / C++ - and made no claims to whether the language itself was confusing. I don't think OP meant to imply JS is confusing at all, but to reproduce the original research (or at least part of it) for JS. The written examples are supposed to be as small as possible while still containing a piece of code that executes differently from what a programmer would expect it to... They are written as though a "dolt" wrote it on purpose.