Worst ideas/features in programming lang
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Oct 27 14:07:42 UTC 2021
FWIW, from Stefik and Sibert, «An Empirical Investigation into
Programming Language syntax», _ACM Transactions on Computing
Education_, vol. 13, No. 2, 2013:
Both programmers and non-programmers had their preference for
*boolean and* ordered as: x and y, x&y, x&&y. With a dip in
interest for the && version. Which isn't surprising.
For *boolean or* there was more deviance. Non-programmers
preferred: x or y, either x or y, x and y (!). Non-programmers
seemed to have problem grasping the concept of logical or.
Programmers preferred: x or y, either x or y, x||y.
For *string concatenation* programmers had a preference for: +,
&, _ and a dislike for: -, ?, $
(The authors list many other constructs.)
More information about the Digitalmars-d
mailing list