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: 583
  • 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 3020 - 3049 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
3020 John Hawkinson
john.hawkinson Send Email
Sep 21, 2012
8:40 am
... The former is hoisted. --jhawk@... John Hawkinson...
3021 Felix E. Klee
feklee Send Email
Sep 21, 2012
8:50 am
On Fri, Sep 21, 2012 at 10:33 AM, Felix E. Klee <felix.klee@...> ... Aside from the difference you mentioned earlier, of course: "The function statement is...
3022 Alexandre Morgaut
morgaut_a Send Email
Sep 21, 2012
10:44 am
... I see 2 differences first, the hoisting one which is even more important in a conditional block // this code won't work as it might be expected if (a ===...
3023 douglascrockford
douglascrock... Send Email
Sep 21, 2012
1:38 pm
... Thanks. I corrected that. My view on good JS style continues to evolve as I learn more about the language, thanks primarily to all of you who provide a...
3024 douglascrockford
douglascrock... Send Email
Sep 21, 2012
1:48 pm
... There were famous websites that were depending on having functions with -this- bound to the global object, who then put 'use strict' on the code. That code...
3025 benxwhite Send Email Sep 21, 2012
6:59 pm
I can understand how . and [^...] might be dangerous in a "match" regular expression, but in a replace I cannot see the harm in them. My typical example would...
3026 douglascrockford
douglascrock... Send Email
Sep 21, 2012
8:00 pm
... Be consistently disciplined. That would be even nicer....
3027 benxwhite Send Email Sep 25, 2012
2:59 pm
... Funny, your JSLint code seems to do the exact thing I'm suggesting is not a problem. ...
3028 douglascrockford
douglascrock... Send Email
Sep 25, 2012
4:31 pm
... What do you mean by funny? I don't see that statement in JSLint. JSLint does contain: /*jslint evil: true, nomen: true, regexp: true, todo: true */ return...
3029 Joe Hansche
joeatrr Send Email
Sep 26, 2012
8:44 am
I'm curious because I want to learn: You're saying that regexp "." and regexp "[^ ]" match inconsistently in different browsers, or is there a different...
3030 Felix E. Klee
feklee Send Email
Sep 26, 2012
9:26 am
... Where "they" refers to: [^...] ....
3031 Joe Hansche
joeatrr Send Email
Sep 26, 2012
4:16 pm
... Thanks. Though, I thought Douglas pushes for "competent&quot; scripts, and people who "know what they're doing"? I, for one, understand what '.' and '[^...]&#39; ...
3032 Felix E. Klee
feklee Send Email
Sep 26, 2012
4:22 pm
... You could apply that to any of the rules that JSLint enforces: If you use X, then you should know what it will Y....
3033 Joe Hansche
joeatrr Send Email
Sep 26, 2012
4:36 pm
... I agree :) Yet, JSLint specifically makes that assumption regarding allowing "this" in a function expression. ... [Non-text portions of this message have...
3034 bartman1c Send Email Oct 1, 2012
11:54 pm
/*global $ */ var $my_element = $('#myelementid'), $element_a = $('#elementaid&#39;), $element_b = $('#elementbid&#39;); $my_element.css( $element_a.width() +...
3035 douglascrockford
douglascrock... Send Email
Oct 2, 2012
2:55 am
... Thanks. Please try it now....
3036 Joe Hansche
joeatrr Send Email
Oct 2, 2012
7:09 am
... I agree with this. I really don't disagree with Crawford, or JSLint... but on SOME things I do. I use it a lot, because you're right: it does find bugs...
3037 bartman1c Send Email Oct 2, 2012
10:52 pm
... Is not weird anymore, thank you....
3038 octavpo Send Email Oct 3, 2012
10:04 pm
I have a statement in one of my functions: return serverInstanceId = response; JSLint flags it as: Expected ';' and instead saw '='. Unreachable '=' after...
3039 douglascrockford
douglascrock... Send Email
Oct 3, 2012
10:07 pm
... I recommend that you follow JSLint's advice and fix the code that you would agree is bad....
3040 octavpo Send Email Oct 4, 2012
1:38 am
That doesn't really address my issue. If the 'Expected&#39; messages could be considered advice, the "Unreachable '=' after 'return&#39;" message is clearly wrong, as...
3041 douglascrockford
douglascrock... Send Email
Oct 4, 2012
2:00 am
... Fix your code....
3042 John Hawkinson
john.hawkinson Send Email
Oct 4, 2012
2:03 am
douglascrockford <douglas@...> wrote on Thu, 4 Oct 2012 ... It would be so easy to explain why this construct is disfavored. It would be so easy to...
3043 douglascrockford
douglascrock... Send Email
Oct 4, 2012
2:29 am
... In his original post he stipulated that the code was bad. So we are past explanation here. He refused my advice. I repeated my advice. He can take it or...
3044 Rob Richardson
erobrich@... Send Email
Oct 4, 2012
6:39 pm
douglascrockford <douglas@... <mailto:douglas%40crockford.com> > wrote ... explanation here. He refused my advice. I repeated my advice. He can take...
3045 Tom Worster
thefsb Send Email
Oct 4, 2012
7:39 pm
"There are always going to be stupid people who don't want to get it right. For them it's really good that JSHint is available." -- http://vimeo.com/25606006 ...
3046 Rob Richardson
erobrich@... Send Email
Oct 5, 2012
6:26 pm
Tom, Thanks for the link. That was an incredibly cool video. Thoughts I particularly enjoyed: - "Optimize for perfection, not for cleverness" - "Programs...
3047 Tom Worster
thefsb Send Email
Oct 5, 2012
7:22 pm
the quotes you mention get to the core of the fundamental difference of opinion between JSLint's supporters and critics. the general considerations reflected...
3048 Felix E. Klee
feklee Send Email
Oct 12, 2012
5:09 pm
For the following code, JSLint returns "eval is evil.": /*jslint node: true */ 'use strict'; var client = require('redis').createClient(); ...
3049 Ian Toltz
itoltz Send Email
Oct 16, 2012
7:39 pm
I get the error 'Node' was used before it was defined. From the line: if (nodes[i].nodeType === Node.TEXT_NODE) { I do have the "Assume a browser" option on. I...
Messages 3020 - 3049 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