Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19211

Re: Is an idea of website where users can compete with each other interesting?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <3440417.l2pBrVLpSq@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Organization PointedEars Software (PES)
Date Thu, 11 Apr 2013 00:02:25 +0200
User-Agent KNode/4.8.5
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Is an idea of website where users can compete with each other interesting?
Newsgroups comp.lang.javascript
References <e988e830-46b7-45de-a6ba-a411a89a0c09@googlegroups.com>
Supersedes <6727780.Rbeyingmf2@PointedEars.de>
MIME-Version 1.0
Lines 57
NNTP-Posting-Date 11 Apr 2013 00:02:25 CEST
NNTP-Posting-Host 70e25ad4.newsspool3.arcor-online.net
X-Trace DXC=oW2_C[eCV4OC4i^e1BZ=_HMcF=Q^Z^V3H4Fo<]lROoRA8kF<OcfhCOKo;k`8g]<bOGDZm8W4\YJNLb@mF9jNikdE7a5\<`>]gfNQ\:<G8?A@MC
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:19211

Show key headers only | View raw


Sergey Zakharov wrote:

> Is it interesting to compete with each other for points?

In theory, yes.
 
> There are a new website for real-time programming competitions (Javascript
        ^^^ is 
> supported): [URL]
> 
> You are welcome!
> 
> I will be very glad if you write here your opinions.

There is no „Javascript“: <http://PointedEars.de/es-matrix>

You should not use junk like jQuery, see 
<http://www.fortybelow.ca/hosted/dhtmlkitchen/JavaScript-Query-Engines.html> 
and David Mark's postings, among others.

You should not use a for-in statement to iterate over Arrays and Array-like 
objects; see the archives.

You should adhere to code conventions common to the used programming 
language (and _not_ to one common to *another* language).  In that regard, 
in ECMAScript whitespace belongs *before* *opening* and *after* *closing* 
brackets (unless in a /MemberExpression/, in which case there should not be 
whitespace before the opening bracket, but may be after the last bracket), 
not vice-versa.  

Common:

  if (user0[0] != "user3669" && user1[0] != "user3669")

Weird, because obviously harder to read, thus harder to understand, and 
harder to maintain:

  if( user0[ 0 ] != "user3669" && user1[ 0 ] != "user3669" )
  ^^^        ^^^^^^
  [1]        [2]

[1] Function call or _control statement_?
[2] Where does this expression belong to?

Also, ”user0” should probably be “user[0]” and “user1” should probably be 
“user[1]” instead; that is, avoid numbered variables in favor of Arrays or 
Array-like objects.

> Thanks a lot.

You're welcome.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is an idea of website where users can compete with each other interesting? Sergey Zakharov <sergzach@gmail.com> - 2013-04-10 12:37 -0700
  Re: Is an idea of website where users can compete with each other interesting? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-11 00:02 +0200
    Re: Is an idea of website where users can compete with each other interesting? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-11 18:40 +0100
      Re: Is an idea of website where users can compete with each other interesting? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-12 01:03 +0200
        Re: Is an idea of website where users can compete with each other interesting? x@x.com (znôrt) - 2013-04-12 21:16 +0200
          Re: Is an idea of website where users can compete with each other interesting? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-04-13 11:45 -0700
            Re: Is an idea of website where users can compete with each other interesting? x@x.com (znôrt) - 2013-04-14 14:36 +0200
    Re: Is an idea of website where users can compete with each other interesting? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-04-15 09:27 +0100
      "Javascript" (was: Is an idea of website where users can compete with each other interesting?) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-15 14:55 +0200
      Re: Is an idea of website where users can compete with each other interesting? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-16 18:09 +0100
  Re: Is an idea of website where users can compete with each other interesting? Sergey Zakharov <sergzach@gmail.com> - 2013-04-11 04:10 -0700

csiph-web