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> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn 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+&. 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]gfNQ\: 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“: You should not use junk like jQuery, see 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.