Can you elaborate? Modern JavaScript is extremely well designed and extremely intuitive. Most problems I see people repeat on JS discussions are either constructed edge cases which are extremely rarely used or results of a poor understanding of modern JS. Like PHP for example, JS started with a different scope in the beginning but both languages have iterations (PHP7, ES6) which made them quite great. People who are complaining about „this“ in JS for example or about PHP in general are usually referring to older versions or are not really up to date.
No. Intuitiveness is related to things like internal consistency, discoverability, etc. Humans are pattern-matching machines, and "intuitive" things are ones which we can apply that unconsious pattern matching to understand instead of ones that require conscious reasoning.
Javascript is objectively unintuitive because it is inconsistent with itself (example: half the shit in the page I linked previously).
-2
u/[deleted] Aug 26 '20
Can you elaborate? Modern JavaScript is extremely well designed and extremely intuitive. Most problems I see people repeat on JS discussions are either constructed edge cases which are extremely rarely used or results of a poor understanding of modern JS. Like PHP for example, JS started with a different scope in the beginning but both languages have iterations (PHP7, ES6) which made them quite great. People who are complaining about „this“ in JS for example or about PHP in general are usually referring to older versions or are not really up to date.