Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jslint_com · This group has moved to Google Plus.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 584
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 1433 - 1462 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
1433 Marc Draco
smidoid Send Email
Aug 22, 2010
12:36 pm
Although I can see the OP's sentiment, the code enforcement that JSLint employs tends to make us into better programmers. The idea of dropping "superfluous&quot;...
1434 Jordan
ljharb Send Email
Aug 22, 2010
7:07 pm
Yes, obviously I'd only want to use 1 tab per level. I just checked turning on strict whitespace - and apparently at some point the option started working with...
1435 Douglas Crockford
douglascrock... Send Email
Aug 23, 2010
7:33 pm
... It isn't a matter of legitimacy, it is a matter of portability. I have not found that the forms you are demanding are actually used in the wild except by...
1436 Douglas Crockford
douglascrock... Send Email
Aug 23, 2010
7:38 pm
... The web standards and their implementations are much too crappy for dependence on test suites. So I depend on something vastly more reliable: The users of...
1437 Douglas Crockford
douglascrock... Send Email
Aug 23, 2010
7:49 pm
... Programming is all about making good trade offs. The better we are at making trade offs, the better our programs get. So let me suggest two rules from a...
1438 Mark Volkmann
mark_volkmann Send Email
Aug 23, 2010
8:11 pm
... The benefit I see is conciseness of functions without loss of readability. It is fairly common for me to write functions that test parameters and make a...
1439 Michael Mikowski
z_mikowski Send Email
Aug 23, 2010
10:57 pm
Hi Mark: And what is wrong with the following? ... function foo(a, b) { if (a < 0){ return -1;} if (a*2 > b){ return 1;} // Now have several lines of code (say...
1440 Mark Volkmann
mark_volkmann Send Email
Aug 24, 2010
2:27 am
If I understand correctly, in order to get your code to pass JSLint, you have to turn off strict whitespace checking. If you do that then the following will...
1441 abyssoft@...
abyssoft... Send Email
Aug 24, 2010
5:05 am
Mr. Crockford, I concede that I do see your point; but, at the same time is it not likely that without JSLint supporting in part some of the nearby Unicode...
1442 stephaneenst Send Email Aug 24, 2010
12:50 pm
hi, I am using JSLint a lot to check Ce-HTML code and this standard requires every page to begin with the tag <?xml .... >. This is quite annoying because...
1443 Douglas Crockford
douglascrock... Send Email
Aug 24, 2010
1:05 pm
... JSLint recognizes HTML. I have no interest in also recognizing XML....
1444 stephaneenst Send Email Aug 24, 2010
1:28 pm
... It has been originally defined as xml but is now part of some HTML standard such as CE-HTML. This tag is widely used now such as <!-- which is originally...
1445 Cheney, Edward A SSG ...
sandyhead25 Send Email
Aug 25, 2010
3:19 pm
Mark, My two cents is that considerations for presentation to humans are becoming more and more irrelevant in enterprise settings. A good example of why is...
1446 Cheney, Edward A SSG ...
sandyhead25 Send Email
Aug 25, 2010
3:28 pm
George, To be fair it is unlikely that Unicode will become a functional part of the web, content aside, until RFC 3897 gains some traction over RFC 3896, which...
1447 Douglas Crockford
douglascrock... Send Email
Aug 25, 2010
7:51 pm
TC39 is currently discussing this problem: Suppose you mistype ';' as '.'. var x=foo. if (a>b) -bar; It will be read as var x = foo.if(a > b) - bar; ES3 will...
1448 Douglas Crockford
douglascrock... Send Email
Aug 25, 2010
10:17 pm
JSLint now requires that there be no whitespace or line break between a . and a property name. This has always been a good practice, and is now especially...
1449 Marcel Duran
marcelduran Send Email
Aug 25, 2010
10:44 pm
Couldn't it be optional? I believe this is useful when indenting long chain of methods like some popular JS frameworks do. The following although correct...
1450 Jean-Charles Meyrignac
jcmeyrignac Send Email
Aug 25, 2010
10:52 pm
... As a C coder, I prefer the following: function func1(foo) { var bar = foo .replace('o', '0') .replace('a', '4'); return bar; } In my opinion, the dot...
1451 Mark Volkmann
mark_volkmann Send Email
Aug 25, 2010
10:55 pm
... This is how I indent long chains of method calls. ... -- R. Mark Volkmann Object Computing, Inc....
1452 Rob Richardson
erobrich@... Send Email
Aug 26, 2010
12:09 am
I prefer to indent long chains by putting the dot at the beginning of the next line like so: var bar = foo .replace('o', '0') .click(function () { ...
1453 abyssoft@...
abyssoft... Send Email
Aug 26, 2010
1:59 am
Austin, Point well taken. And, thank you for the explanation. It clarify the why and the when. George...
1454 Frederik Dohr
ace_noone Send Email
Aug 26, 2010
7:19 am
... I would prefer this as well. My colleagues and I made a conscious decision to use a trailing dot to indicate line continuation, which turned out positive...
1455 Douglas Crockford
douglascrock... Send Email
Aug 26, 2010
12:57 pm
... I made the same decision as well, and I now believe that decision was incorrect. I recommend that you update your code....
1456 g2223060 Send Email Aug 26, 2010
5:53 pm
I agree about the leading dot- it is an obvious hint that the line continues the one above it. I dislike the trailing dot on the previous line. I think DC...
1457 Jim Auldridge
jaaulde Send Email
Aug 30, 2010
4:39 pm
I was testing a command line version of JSlint and noticed that == and != are disallowed no matter what I set eqeqeq to. i am running the version from 25 Aug...
1458 Harry Whitfield
harry152566 Send Email
Aug 30, 2010
4:57 pm
... if (2 == 2) { } I've just run the above in Widget Tester and in the version of JSLint at http://www.JSLint.com/ . Both use edition 2010-08-28. I am seeing...
1459 Harry Whitfield
harry152566 Send Email
Aug 30, 2010
5:09 pm
... if (2 == 2) { } I've also run the above in Widget Tester using JSLint edition 2010-08-25. I am seeing correct behaviour in both cases, with eqeqeq set to...
1460 Jim Auldridge
jaaulde Send Email
Aug 30, 2010
5:12 pm
Harry, Thanks for your time. In trying a reduced test case on the web version, I do see it working correctly. I will re-run my original test case and update...
1461 Jim Auldridge
jaaulde Send Email
Aug 30, 2010
5:19 pm
It appears the comparison I had modified for testing purposes was comparing a value to 0, for which the Lint requires === regardless of the setting of eqeqeq....
1462 Douglas Crockford
douglascrock... Send Email
Aug 30, 2010
10:53 pm
http://weblogs.mozillazine.org/roc/archives/2010/07/coding_style_as.html...
Messages 1433 - 1462 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help