Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'programmer': 0.03; 'output': 0.05; 'tree': 0.05; 'subject:Python': 0.06; 'cache': 0.07; 'compiler': 0.07; 'subject:skip:c 10': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'language,': 0.12; 'language.': 0.14; 'algorithmic': 0.16; 'blindly': 0.16; 'for,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'grasp': 0.16; 'magic': 0.16; 'subject: \n ': 0.16; 'subject:between': 0.16; 'subject:programming': 0.16; 'tradeoffs': 0.16; 'way;': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; "python's": 0.19; 'work,': 0.20; 'written': 0.21; 'programming': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'subject:that': 0.31; 'languages': 0.32; 'run': 0.32; 'quite': 0.32; 'table': 0.34; 'could': 0.34; 'knowledge': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'programming,': 0.36; 'doing': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'too': 0.37; 'list': 0.37; 'level': 0.37; 'stopped': 0.38; 'ability': 0.39; 'explain': 0.39; 'aspects': 0.39; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'firm': 0.61; 'first': 0.61; 'you.': 0.62; 'high': 0.63; 'costs': 0.63; 'soon': 0.63; 'more': 0.64; 'management': 0.65; 'linked': 0.65; 'teach': 0.65; 'hoping': 0.75; '50%': 0.78; 'lack': 0.78; '2015': 0.84; 'complexity': 0.84; 'dict,': 0.84; 'gps': 0.84; 'subject: *': 0.84; 'good,': 0.91; 'pipeline': 0.91; 'subject:Good': 0.91; 'to:none': 0.92; 'imagine': 0.93 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=iB4UO0W/mSOP48xRMTStKxXcSm0vM4EOjfRWPndV770=; b=FLgHGk2FiRJDErAoyHybJfdzPs5f5MbG9yG6tIyY0bBxpE1AGmjqjjwdqwqUTpgFfk YgzyWeoa2w9ArWgjsxkFg88obZrND/xhxkyemYeUbPG+9rXR+kRzigUyc5V3R+Lqhe2w S5nONwYtfQSDymEEDmkfR3lDcHfVMBjPvyt9zEFZrpSmNlLTJghAxpf2jjPIcGmHIrLU 0ve+QvmaVe0S651n5N3sEqB7NDJVZAgqRhrnrajsMwU18GsVfPrwECdX1Z/s+r/FC3ke eWSIGJPfb89i8+QvyNEToIQVA7VlXeizJ2waBuuFEtUdFI0kmyJqAmaAAmKpt3kXhlUH E5GA== MIME-Version: 1.0 X-Received: by 10.107.16.32 with SMTP id y32mr21002939ioi.53.1431450949596; Tue, 12 May 2015 10:15:49 -0700 (PDT) In-Reply-To: References: <02dba7aa-8466-4937-a8d8-82ffd03e5568@googlegroups.com> <87wq0gyvyr.fsf@elektro.pacujo.net> <55515f9d$0$12987$c3e8da3$5496439d@news.astraweb.com> <569169cf-d232-48c0-bd49-91090e9c0ddb@googlegroups.com> Date: Wed, 13 May 2015 03:15:49 +1000 Subject: Re: Instead of deciding between Python or Lisp for a programming intro course...What about an intro course that uses *BOTH*? Good idea? 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.20+ 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431450952 news.xs4all.nl 2847 [2001:888:2000:d::a6]:55469 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90469 On Wed, May 13, 2015 at 3:03 AM, Rob Gaddi wrote: > A firm grasp of C will make you a better programmer in any language, even > if you haven't written a line of it in 20 years. It's the ability to > read a map. A lack of C is the person blindly following their GPS and > hoping for the best. That's as may be, but I would still not recommend it as a first language. It's possible to explain algorithmic complexity with a high level language; Python's data types generally have predictable costs associated with them, although a lot of them aren't actually language guarantees (I could imagine a Python implementation using an O(log n) tree instead of an amortized O(1) hash table for its dict, if other tradeoffs make it worthwhile); at any rate, you can always just construct your own fundamental data structures if you want to teach what a linked list is good for, or what a splay tree can do for you. C knowledge is good, but first get to know the broader art of programming, and then get to know C. Learning low-level languages too soon will end up binding your mind to a particular CPU architecture. That happened to me in a big way; I got to thinking about everything in terms of how an 80x86 CPU would deal with it, without any comprehension of some of the modern aspects of low-level programming like pipeline management and cache locality. It was quite the eye-opener when I started hand-optimizing my C compiler's output on a more modern chip, and found that my improvements... uhh, added about 50% to the run time. That's when I stopped doing any assembly language work, and just let the compiler do its magic :) ChrisA