Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

Advanced Search
  • Douglas, You may not wish to use llvm.org as a resource for coding standards, as the same page suggests the use of early exits . For example, I know you do not like constructions like the following (though I do): for (var k in obj) { ___if (!obj.hasOwnProperty) { break; } ___//rest of long loop; } On Tue, Feb 28, 2012 at 11:14 AM, douglascrockford wrote: > ** > > > --- In jslint...
    Erik Eckhardt Feb 28, 2012
  • ...reason, it isn't for clarity, it isn't for avoiding bugs, it's just for dictatorial adherence to an ill-thought absolute rule. Erik On Tue, Feb 28, 2012 at 10:47 AM, Doc Emmett Splendid < emmett.thesane@^$1> wrote: > ** > > > Using multiple returns is equivalent...
    Erik Eckhardt Feb 28, 2012
  • Hi, Or JSLint plugin for Sonar: http://docs.codehaus.org/display/SONAR/JavaScript+Plugin Regards, Eriks On Saturday, December 24, 2011, Toby Maxwell-Lyte < toby.maxwelllyte@^$1> wrote: > > > For JSLinting whole projects take a look at the JSLint-4-Java ant task. > > http://docs.jslint4java.googlecode.com/git/2.0.1/ant.html > > Regards, > Toby > > On 23 December 2011 16:52...
    Eriks Nukis Dec 24, 2011
  • Fetching Sponsored Content...
  • Unfortunately, due to the limitations of HTML and this email list, your indents have been lost and we don't know what you're pointing out. Try replacing the spaces with periods. You could also try pasting in a non-breaking space but that is risky... maybe two versions could work. On Tue, Nov 15, 2011 at 8:04 PM, Pierre Martineau wrote: > ** > > > (I apologize for the multiple posts...
    Erik Eckhardt Nov 15, 2011
  • ...we can just use an old version, right? Unless we find some other tool that is also growing but doesn't have the same risks... Erik On Mon, Nov 14, 2011 at 11:32 AM, mathew wrote: > ** > > > > > > These solutions may be reasonable if you are just starting out...
    Erik Eckhardt Nov 14, 2011
  • 1. It's nice that *you* want jslint to tell you about these in your code. Someone else doesn't want it. You sound like my 5-year-old son who always has to respond to others' personal statements with his own contradictory reality, like if I say "whoaaa I have a headache" he replies "Well ***I*** don't have one!!!" 2. I am one of two programmers in an organization that doesn't...
    Erik Eckhardt Oct 28, 2011
  • Based on past experiences I am one of the most conservative developers there are. My desire to "do things right" and "cover all the eventualities" are often scoffed at--until systems start breaking and the "almost never happens" exception takes everything to a screeching halt. However, I have to say that not all risks are equal, and in the real world efficiency is right up there in...
    Erik Eckhardt Sep 28, 2011
  • ...based on repulsiveness rather than efficiency? Feeling enough angst about whitepsace to waste a lot of time on it is not healthy. Erik On Mon, Sep 26, 2011 at 9:32 AM, Jordan Harband wrote: > trailing whitespace ... is still useless and unnecessary, and that should...
    Erik Eckhardt Sep 26, 2011
  • ...complicated chains I would like the declared variables to line up (e.g., a with b) but also indent the chained methods. Thank you, Erik --------------------------- function remotefn() { ___// return something; } function fn1(x, y) { ___var a = remotefn() ______.enqueue...
    Erik Eckhardt Jul 25, 2011
  • JSLint does not give any warning about the following (repeating a var declaration in the global scope). var fn = function () { //something here }; var fn = function () { //something different here }; Nor does it warn when repeating the same function declaration using the simple `function fn() {}` syntax. Do you think it should? [Non-text portions of this message have been removed]
    Erik Eckhardt Jul 25, 2011