I may want to switch to node.js from WHS, but my setup uses wsh.js. Is there an equivalent that works the same as wsh.js but is for node.js instead of WSH?...
2837
John Hawkinson
john.hawkinson
Mar 30, 2012 9:00 pm
Isn't this misnamed? For those of us who write clean Javascript that doesn't depend on Node.js, why would we have to turn on a pejorative option name (tolerate...
2838
cse_html_validator
cse_html_val...
Mar 30, 2012 9:00 pm
... Thanks. I looked at it briefly, but I need an equivalent replacement for the code I posted in "Is there a node.js equivalent for wsh.js?". If I can get...
2839
douglascrockford
douglascrock...
Mar 30, 2012 9:02 pm
... No, it is very well named....
2840
Sean Kelly
seank_com
Mar 30, 2012 9:08 pm
Don't worry about being a JavaScript expert everyone has to start somewhere. I have found it very beneficial reading other peoples code. Look up anything you...
2841
Kirk Cerny
kirk.cerny
Mar 30, 2012 11:02 pm
Could the same be said about synchronous AJAX requests? [Non-text portions of this message have been removed]...
2842
douglascrockford
douglascrock...
Mar 30, 2012 11:20 pm
... Obviously....
2843
IcedNet Development T...
dwmcneil...
Mar 30, 2012 11:30 pm
Finally an option to rule them all... Peace, Dan...
2844
Martin Cooper
mfncooper
Mar 31, 2012 12:55 am
On Fri, Mar 30, 2012 at 11:08 AM, douglascrockford ... There are numerous valid and reasonable use cases for synchronous code in Node.js. To declare the use of...
2845
Mark Volkmann
mark_volkmann
Mar 31, 2012 2:08 am
I agree with Martin. Why not fix this by changing the name of the option to "sync" and have it default to false? ... R. Mark Volkmann Object Computing, Inc. On...
2846
Andy Dawson
using_yg_und...
Mar 31, 2012 10:35 am
Alternatively, all the other options could be renamed to follow the same convention so that all uses can consistently need to lookup what options mean instead...
2848
Morgaut Alexandre Lou...
morgaut_a
Apr 2, 2012 10:19 am
I find this option name fun and maybe It could be a right name in NodeJS context. That said, I also think that there might be some valid use of "Sync" methods...
2849
mariana.schiff
Apr 4, 2012 2:41 pm
I modified the wsh.js code to, basically, put "the fix" back in. Replace the line source = file.ReadAll(); with the following: source = File.ReadAll() ...
2850
Sean Kelly
seank_com
Apr 4, 2012 5:43 pm
OK, I updated the page, let me know if it looks right. On Wed, Apr 4, 2012 at 7:41 AM, mariana.schiff ... [Non-text portions of this message have been removed]...
2851
mariana.schiff
Apr 4, 2012 5:51 pm
Looks great (I had misspelled 'file'). Thanks for the credit, Mariana...
2852
larserik78
Apr 10, 2012 7:56 am
Hi! I've created a plugin for resharper that highglights warnings from JSLint in js files. To test it, I've started creating small testfiles, and I've gotten...
2853
douglascrockford
douglascrock...
Apr 10, 2012 9:12 am
... Yes. Fix your code, then it won't stop. For example, var i, x; i = 1; x = 2;...
2854
larserik78
Apr 10, 2012 9:19 am
... Thanks, but that's missing the point. I'm testing the highlighting from my plugin, not trying to fool JSLint into letting my own javascripts look bad. ;) ...
2855
mariana.schiff
Apr 10, 2012 5:39 pm
If you go to the Database section of this group, you'll find a link to SeanK's blog with a WSH implementation. That's the one I'm using....
2856
larserik78
Apr 10, 2012 6:30 pm
Ah, didn't notice that menu item. My plugin should be in there. :) (http://resharperjslint.codeplex.com) I'm using the wsh snippet JSLint.VS is using. ...
2857
Štefan Bunčiak
pipistik_bun...
Apr 18, 2012 2:20 pm
Greetings! I'm Red Hat's JBDS QE and found a bug in the JSLint integration. The issue is filed here: https://issues.jboss.org/browse/JBDS-2062 Are you able to...
2858
sandyhead25
Apr 19, 2012 3:31 pm
This does not appear to be a JSLint bug. It appears to be a bug with some level of application integration. I believe that would make it a JSLex problem. In...
2859
benquarmby
Apr 23, 2012 3:52 am
I realize the topic of unused arguments has been discussed before, but I wanted to raise it again with a suggested alternative behavior. When creating...
2860
sandyhead25
Apr 28, 2012 11:17 am
While I understand the passing of functions as arguments of other functions is a common style in many frameworks it is extremely sloppy. This is an...
2861
Max
oeroeroer
Apr 29, 2012 6:12 am
You might want to spend some time on Google, looking up functional programming, what it is, what it is good for. Discover its strengths. There is a whole lot...
2862
benquarmby
Apr 30, 2012 1:16 am
Thanks for the reply Austin. I'm not 100% sure if you're saying passing functions as arguments is bad per-se (they're first class in JavaScript), or if it's...
2863
benquarmby
Apr 30, 2012 1:56 am
Just to add another option, what do you think of creating proxy functions to "fix" an API that uses a lot of arguments in callbacks? Using my previous code as...
2864
sandyhead25
Apr 30, 2012 2:45 am
Please do not make this an ad hominem. Whether or not I am absolutely ignorant of how to write functional code in JavaScript your point adds nothing to the...
2865
sandyhead25
Apr 30, 2012 3:32 am
Ben, It is correct that functions are first class objects in JavaScript. That statement goes to the syntax and definition of functions in the language opposed...
2866
benquarmby
Apr 30, 2012 4:22 am
Thanks again Austin. I see your point. This argument aside (ba-dum-tish!), my real question is whether JSLint should allow early unused arguments. So...