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: 586
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 2973 - 3005 of 3202   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
2973 Joe Hansche
joeatrr Send Email
Aug 31, 2012
7:25 am
There are reasons for using array literal notation over class instantiation notation. Afaiui, it's due to the ability to override the "Array" constructor,...
2974 Felix E. Klee
feklee Send Email
Aug 31, 2012
7:49 am
... I assume that performance is the reason. But then it's probably a good idea to have an in depth look at how the optimizers in current JavaScript compilers...
2975 Alexandre Morgaut
morgaut_a Send Email
Aug 31, 2012
7:59 am
Yes there is a workaround, one that still respect JSLint guidelines You can fix the length without the array constructor, even with a dynamic value Just do: ...
2976 Joe Hansche
joeatrr Send Email
Aug 31, 2012
8:22 am
According to MDN that is not what actually happens: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/length You can only...
2977 Arild Haugstad
arildmmh Send Email
Aug 31, 2012
8:45 am
When experimenting with the developer console in Chrome and FireBug in FireFox, the effects of the two methods appear to be *exactly* the same. While setting...
2978 Alexandre Morgaut
morgaut_a Send Email
Aug 31, 2012
9:57 am
... The MDN documentation is unfortunately not very clear on this page. It says that "the array still contain only 2 elements". It's true, as when you do "new...
2979 douglascrockford
douglascrock... Send Email
Aug 31, 2012
12:34 pm
... new Array is deeply confusing to people coming to JavaScript from other languages because JavaScript&#39;s arrays do not work as expected. Much of that...
2980 Martin Cooper
mfncooper Send Email
Aug 31, 2012
2:07 pm
... If I want to create, say, a separator line of 'len' dashes, I can do that really cleanly and easily with: var separator = Array(len).join('-'); If there's...
2981 Luke Page
page.luke... Send Email
Aug 31, 2012
2:25 pm
... Wouldn't it be clearer and more maintainable to create a function for it anyway? var seperator = repeatString('-', len); it doesn't look as "clever" to use...
2982 Alexandre Morgaut
morgaut_a Send Email
Aug 31, 2012
2:41 pm
... I think that it's more maintainable and more secure to use a dedicated function One going to the code using the Array constructor might expect that the...
2983 Martin Cooper
mfncooper Send Email
Aug 31, 2012
2:51 pm
... Right. So I personally find that taking advantage of what the language has to offer helps me do that. If I have to write a function, document it, and write...
2984 Tom Worster
thefsb Send Email
Aug 31, 2012
2:59 pm
... if a separator line is unlikely to be of variable length (which is probably so): var separator = '----------------------------------------'; looks good to...
2985 IcedNet Development T...
dwmcneil... Send Email
Aug 31, 2012
3:09 pm
You may not code for "noobs", but you will have new hires, and you will document that one-liner or have to explain it, even to professionals... Knowing how to...
2986 Martin Cooper
mfncooper Send Email
Aug 31, 2012
4:30 pm
On Fri, Aug 31, 2012 at 8:09 AM, IcedNet Development Team ... It's not supposed to be "clever". I am only trying to use a feature that exists in the language....
2987 IcedNet Development T...
dwmcneil... Send Email
Aug 31, 2012
4:50 pm
Please, you assume much Is it creating a new array of length 'len' and joining it to the string literal '-' ? -- and JSLint is supposed to make code clearer......
2989 John Hawkinson
john.hawkinson Send Email
Aug 31, 2012
11:58 pm
One of the problems I have with this discussion is that the cost of having to go read this repeatString() function, however it is implemented, is significant....
2991 Tom Worster
thefsb Send Email
Sep 1, 2012
3:16 pm
i just think JSLint isn't for everyone. i had been using it with greater or lesser enthusiasm for years until, after watching the video of douglas' talk at...
2993 benquarmby Send Email Sep 2, 2012
10:31 pm
Hey Tom, That TXJS11 talk was great wasn't it! http://vimeo.com/25606006 If you can switch off the emotional side of your brain, the logic is very hard to...
2994 Felix E. Klee
feklee Send Email
Sep 7, 2012
10:45 am
That code gives a strict violation (due to presence of `this`): function f() { 'use strict'; return this.x; } That code doesn't: var f = function () { 'use...
2995 Tom Worster
thefsb Send Email
Sep 7, 2012
11:22 am
this is just JSLint saving you time in detecting an ES5 strict mode error see http://is.gd/WCXyRm...
2996 thomastraub2000 Send Email Sep 7, 2012
3:56 pm
Hi, I have a module which toggles two group of event handlers : // structure (function () { "use strict"; function a() {} function b() {} function c() {b(c);...
2997 Felix E. Klee
feklee Send Email
Sep 7, 2012
4:45 pm
(function () { "use strict"; var d; function a() {} function b() {} function c() { b(c); a(d); } d = function () { b(a); a(c); }; c(); d(); }());...
2998 Mike On Mobile
z_mikowski Send Email
Sep 7, 2012
5:14 pm
Assign your functions to variables. Declare your variables at the top of your script. ... [Non-text portions of this message have been removed]...
2999 thomastraub2000 Send Email Sep 7, 2012
6:21 pm
Thanks, I should have thought of that...
3000 thomastraub2000 Send Email Sep 7, 2012
6:21 pm
Thanks, I should have thought of that...
3001 Marcel Duran
marcelduran Send Email
Sep 7, 2012
6:37 pm
(function () { "use strict"; var a, b, c, d; a = function () {}; b = function () {}; c = function () {b(c); a(d); }; d = function () {b(a); a(c); }; c(); d(); ...
3002 thomastraub2000 Send Email Sep 8, 2012
11:36 am
Thanks, it's just that I liked my notation so much that I did not want to remember how it can be done....
3003 douglascrockford
douglascrock... Send Email
Sep 11, 2012
6:13 pm
Erik Meijer talking about the hazards and other interesting things. http://channel9.msdn.com/posts/Erik-Meijer-Functional-Programming-From-First-Principles...
3004 chrisprice0101010
chrisprice01... Send Email
Sep 17, 2012
1:55 pm
Whilst reviewing some code, I spotted an unnecessary use of call and it stood out to me as a good candidate for a warning. The following code demonstrates the...
3005 Josh Jordan
therealjoshj... Send Email
Sep 18, 2012
11:41 am
I expect jslint to accept the following two-line code snippet, but instead it gives the error "Unexpected '['". What am I doing wrong? ===JSLINT INPUT=== var a...
Messages 2973 - 3005 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