Re:Python is the new BASIC
by hliyan on Friday July 31, 2015 @09:40AM
(#9981669)
Agreed. Callback hell in JavaScript is reminiscent of the GOTO-hell we used to suffer as BASIC programs grew larger. Like you said, with all its problems it was still ubiquitous and practical. So is JavaScript.
[ Parent
| on HN ]
Re:Python is the new BASIC
by scriptproof on Friday July 31, 2015 @09:51AM
(#9981727)
console.log("Hello") is not more complicated than print("Hello").
For the callbacks it is actually possible to not use them. See how to: http://www.xul.fr/javascript/no-callback.php (and it is even very simple). That is just a matter of style.
> console.log("Hello") is not more complicated than print("Hello").
Actually, it is (it requires a package prefix) and it's:
print "hello"
(Print was never a function in BASIC but a statement)
Re:Python is the new BASIC
by Sami_Lehtinen on Friday July 31, 2015 @10:06AM
(#9981813)
Python 3.5 is out, are you still using the legacy version? SyntaxError: Missing parentheses in call to 'print'
I think you missed the joke.
Re:Python is the new BASIC
by marcosdumay on Friday July 31, 2015 @10:48AM
(#9982081)
(Is that a joke? Am I falling for that rule that says that jokes on the Internet can not be recognized?)
Yes, you can use promises instead of callbacks, and get in promise-hell instead of callback-hell. It's indeed a matter of style.