Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'differently': 0.07; 'lines,': 0.07; 'scale.': 0.07; 'code"': 0.09; 'measure': 0.09; 'subject:language': 0.09; 'cc:addr:python- list': 0.11; 'dependent.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:programming': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'nearly': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'constant': 0.31; 'exceptions': 0.31; 'languages': 0.32; 'bugs': 0.33; "can't": 0.35; 'december': 0.35; 'except': 0.35; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'done': 0.36; 'so,': 0.37; 'how': 0.40; 'skip:u 10': 0.60; "you'll": 0.62; "you've": 0.63; 'more': 0.64; 'url:v': 0.71; 'url:youtube': 0.71; 'url:watch': 0.77; 'rusi': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=ii6tBk6wrMkMUPxDikx9PDd0xSi79KOa7HlHCWlshh4=; b=fQ90yHvBdGflKdZ5ueeRnbR5TKkwk4HcjkZhO50dUt5VuPt5oy7ZtiB1XhKI0/0CRs ekS+RY/FJmM+aZC9mVvzaTrlPCmzQx4Atfz+zQSrzu/4IuWYBumkpCGqSKwHWn/KSNqG hcY0tnFvZjkCuoW9UowBjGgNQOeU6DYkoUIomG+l3jo5WE6hTIgFC5lYL8BN122Vzn9b hJERiPalciudaRSLK+grHWo0hZ7BNLJzGfE5HknYN6a3p9T8KNcamT/T87/SMKd9WW9G 6GnSXZ8lN3vHvZLhb2Uysxw8vDbfzZnWRz4Upne6b0V6/j3UKwA59BMSWVbMFwF05KaL 008Q== MIME-Version: 1.0 X-Received: by 10.68.236.133 with SMTP id uu5mr28809357pbc.153.1387304440629; Tue, 17 Dec 2013 10:20:40 -0800 (PST) In-Reply-To: <2733a35e-a9c9-44c2-a29c-1d8c252c2159@googlegroups.com> References: <20131212213602.806ef8fd2626ca6f34bc83d6@gmx.net> <20131216213225.2006b30246e3a08ee241a191@gmx.net> <52afb7e7$0$29976$c3e8da3$5496439d@news.astraweb.com> <2733a35e-a9c9-44c2-a29c-1d8c252c2159@googlegroups.com> Date: Wed, 18 Dec 2013 05:20:40 +1100 Subject: Re: Experiences/guidance on teaching Python as a first programming language From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387304449 news.xs4all.nl 2834 [2001:888:2000:d::a6]:58638 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62228 On Wed, Dec 18, 2013 at 5:03 AM, rusi wrote: > On Tuesday, December 17, 2013 8:21:39 PM UTC+5:30, Neil Cerutti wrote: >> I can't think of a reference, but I to recall that >> bugs-per-line-of-code is nearly constant; it is not language >> dependent. So, unscientifically, the more work you can get done >> in a line of code, then the fewer bugs you'll have per amount of >> work done. > > Enter the (One-Liner) Dragon! > > http://www.youtube.com/watch?v=a9xAKttWgP4 Some languages work differently with lines, cramming more onto a single line while still having more "code". What's nearly constant is bugs per "amount of code", except that it's practically impossible to measure how much code you've produced. So there are a few exceptions to the "lines of code" metric, a few languages that jump around a bit on the scale. ChrisA