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?

Message-ID <3440417.l2pBrVLpSq@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-04-11 00:02 +0200
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>

Show all headers | 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