Earlier quoted context omitted.
JavaScript has a strong design principle of not throwing errors for syntactically valid constructs. The most common way it accomplishes this is through gratuitous use of implicit type conversions. It does a lot of implicit string conversions, even on things that you would think of as error codes, like undefined or NaN. JavaScript went down the path of being a "forgiving" language because it was intended to provide "e…
I wish there was some technology that could take a bunch of code and warn you of common errors before having it execute and 'noisily crash the page it was on'. Maybe someday...
Wat
31–40 of 103 posts
Re: Wat
#32$ php -r '::' Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM Wat
Re: Wat
#33Wow, I laughed so hard I cried! This is hilarious...
Re: Wat
#34Earlier quoted context omitted.
It's jsc (comes with Webkit) - it's present on Mac OS X by default in /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc You can just do: sudo ln /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /bin/jsc To be able to invoke it directly from the command line.
Thanks, I'll look how to get this working on linux.
Re: Wat
#35Re: Wat
#36Does anybody knows which is the javascript interpreter he is using on the screencast?
It's jsc (comes with Webkit) - it's present on Mac OS X by default in /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc You can just do: sudo ln /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /bin/jsc To be able to invoke it directly from the command line.
I suppose if you are a WebKit-only developer, this utility could have many useful applications.
Re: Wat
#37----- jsc ------
[] + []
> [] + {}
[object Object]
> {} + []
0
> {} + {}
NaN
------ node.js ------ > [] + []
''
> [] + {}
'[object Object]'
> {} + []
'[object Object]'
> {} + {}
'[object Object][object Object]'Re: Wat
#38Re: Wat
#39Re: Wat
#40What presentation software is he using? Is he just jumping from his slide deck into a shell?