Reitter: Answering the question: "How do I develop an app for GNOME?"
Posted Feb 7, 2013 11:58 UTC (Thu) by
khim (subscriber, #9252)
In reply to:
Reitter: Answering the question: "How do I develop an app for GNOME?" by ekj
Parent article:
Reitter: Answering the question: "How do I develop an app for GNOME?"
if ( $a == $b && $a && !$b) is potentially true in PHP, and that's just *one* example of the mistakes made while designing this language.
Well, it look like we are in violent agreement, then. JavaScript's analogue:
> a = "0"
"0"
> b = 0
0
> a == b && a && !b
true
JavaScript is fucked up for the very same reason PHP is fucked up: they try to "silently fix novice's errors" - and in real programs this tends to lead to security holes sooner or later (usually sooner). Neither PHP not JavaScript should be used directly "as is". Never. Solution for PHP: don't. Just forget about PHP and use some other languages if posible. There are many of them: Java, Python, even C or Perl are better then PHP. Just don't. Solution for JavaScript: use some higher-level language which is compiled to JavaScript. There are quite a few contenders at this time: CoffeeScript, TypeScript, even subset of Java (if you use GWT).
To add JavaScript to your desktop environment as a primary development tool? Gosh, what are they thinking? Do they hate developers this much?
(
Log in to post comments)