Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 20 Oct 2012 12:32:14 -0500 Date: Sat, 20 Oct 2012 10:32:37 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.javascript Subject: Re: Programming style question References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 23 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.206.229 X-Trace: sv3-Lh2Ph9rmYiJ54ccyElEguBNwKPcd2JrrRmIhzOYQ3wV6qbNvmu24ls0OfLthfSfZ4Xj83Qyh9Xpw3+M!iUDpplm8WgHusuiiacTSESxO4QFEW3Whvc7JVKRGOk1+ZI0u2x0CIzZGkPE1+Nsob6y2RDC2NPCF!1TdV6egEHgeWTfBaQBPiEOOvq1oJbMCWb7RmbsNFoKtEW0s= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2679 Xref: csiph.com comp.lang.javascript:16754 On 10/20/2012 9:30 AM, Evertjan. wrote: > Patricia Shanahan wrote on 20 okt 2012 in comp.lang.javascript: ... >> Although I've been forced by program requirements into implementing in >> JavaScript, I need to learn JavaScript well enough to write non-trivial >> code in it and make it not just work, but be readable and maintainable. >> Some of the worst, least readable programs I've seen have been written >> by people who wanted to be programming in a different language, and >> never fully entered into the spirit of the language they were actually >> using. I don't intend to repeat that mistake. I really have to learn to >> write JavaScript as JavaScript, not as though it were a strange dialect >> of some other language. > > 'JavaScript as JavaScript' and 'spirit of the language' surely meaning > accommodating Javascript's weak-typed variable value system? > That was the question that started this thread. The answer seems to be "yes". I've got to look for code examples, do some more reading etc. to learn how to take advantage of weak typing. Patricia