Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'scripts': 0.03; 'programmer': 0.03; 'mouse': 0.07; 'bits': 0.09; 'rewrite': 0.09; 'tackle': 0.09; 'thats': 0.09; 'toolkit': 0.09; 'python': 0.11; 'gui': 0.12; 'wrote': 0.14; 'random': 0.14; '"hello': 0.16; "(it's": 0.16; 'bit...': 0.16; 'breathe': 0.16; 'contest.': 0.16; 'dump': 0.16; 'gem': 0.16; 'graphic,': 0.16; 'hierarchy': 0.16; 'higher-level': 0.16; 'luck,': 0.16; 'personally,': 0.16; 'possible?': 0.16; 'programmer,': 0.16; 'pygame': 0.16; 'pygame.': 0.16; 'scientist': 0.16; 'throw': 0.16; 'tkinter.': 0.16; 'topics': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'bit': 0.19; '(but': 0.19; 'basically': 0.19; 'written': 0.21; 'programming': 0.22; 'new,': 0.24; 'earlier': 0.24; "i've": 0.25; 'suggested': 0.26; 'tutorials': 0.26; 'post': 0.26; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'point': 0.28; 'appear': 0.29; 'chris': 0.29; 'received:209.85.217': 0.29; 'wonder': 0.29; 'programming.': 0.30; 'said,': 0.30; 'then.': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'program,': 0.31; 'code': 0.31; 'easier': 0.31; 'that.': 0.31; 'base,': 0.31; 'helpful.': 0.31; 'indentation': 0.31; 'time;': 0.31; 'yes.': 0.31; 'allows': 0.31; 'this.': 0.32; 'probably': 0.32; 'me?': 0.32; 'says': 0.33; 'to:name:python-list': 0.33; 'screen': 0.34; "i'd": 0.34; 'knowledge': 0.35; "can't": 0.35; 'advice': 0.35; 'agree': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'choosing': 0.36; "he's": 0.36; 'done': 0.36; 'next': 0.36; "i'll": 0.36; 'possible': 0.36; 'should': 0.36; 'half': 0.37; 'too': 0.37; 'project': 0.37; 'received:209': 0.37; 'mine': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'that,': 0.38; 'short': 0.38; 'aspects': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'most': 0.60; 'hope': 0.61; 'new': 0.61; 'simple': 0.61; 'first': 0.61; 'times': 0.62; "you'll": 0.62; 'complete': 0.62; "you've": 0.63; 'making': 0.63; 'guarantee': 0.63; 'information': 0.63; 'kind': 0.63; 'real': 0.63; 'such': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'taking': 0.65; 'afraid': 0.65; 'spot': 0.65; 'here': 0.66; 'between': 0.67; 'manner': 0.72; 'websites': 0.72; 'goal': 0.75; 'attention': 0.75; 'lack': 0.78; 'friend': 0.79; 'faster.': 0.84; 'gap': 0.84; 'hammer': 0.84; 'idiot': 0.84; 'learn.': 0.84; 'studying': 0.84; 'toy': 0.84; 'tucked': 0.84; 'visually': 0.84; '20th': 0.91; 'rick': 0.93; '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:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=WlE33rvsfSHzeJ6B93Jq61BMjap98bWEGauT2vaeIsc=; b=blViOoQFaTUcxXDxg2CE+QciD2iW6yrcERhVLYSFaPzo4mxssPiBgUFcXGu6cyJvZS 7xXx/TDeYwyt67oZ6WydUoNZDdkcEMJXgK2NdoT3CJH8k0cL8Es3K2r72fFPbYbNUN7U tLJiA03Mq2Qhhvy1utofDi/4pfaEZhibqNe03adJEiSHoaTNCBDhoPUN5lrfkI8Ad0Tp BZ45S9ty3YyJb3QeBU2fEEb31KSchCExRW3sr4jirNP9sZ8jymOWGy6k8aRXqa2vxPLQ qU4oU6hPc9lw6/jvwugCnwkBqJITaHLnFVgnrzl0X2AUEuSbnYBfW0SH5kT8J+UJ2wFb AnuQ== X-Received: by 10.112.89.226 with SMTP id br2mr3670749lbb.12.1371660827002; Wed, 19 Jun 2013 09:53:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8a4fced2-7d6c-455e-a482-b6f95b806ab5@googlegroups.com> References: <8a4fced2-7d6c-455e-a482-b6f95b806ab5@googlegroups.com> From: Joshua Landau Date: Wed, 19 Jun 2013 17:53:06 +0100 Subject: Re: A Beginner's Doubt To: python-list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371660835 news.xs4all.nl 15868 [2001:888:2000:d::a6]:58242 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48732 Please be aware, Augusto, that Rick is known to be a bit... OTT. Don't take him too seriously (but he's not an idiot either). On 19 June 2013 14:58, wrote: > Hello! > This is my first post in this group and the reason why I came across here= is that, despite my complete lack of knowledge in the programming area, I = received an order from my teacher to develop a visually interactive program= , until 20th July, so we can participate in a kind of contest. > > My goal is to learn and program it by myself, as good as the time allows = me. That said, what I seek here is advice from people who definitively have= more experience than me on topics like: is it possible to develop this kin= d of program in such a short amount of time? Possible? Yes. It'll be well'ard to get much done with too limited a knowledge base, but it should be possible even then. > What kinds of aspects of Python should I focus on learning? What tutorial= s and websites are out there that can help me? What kind of already done pa= ckages are out there that I can freely use, so I do not need to create all = the aspects of the program froms scratch? Neil Cerutti suggested Tkinter. Choosing a good simple GUI toolkit is a good idea over Pygame for something like this. I've used Pygame and I guarantee you it's not the hammer you want. (I don't know much about GUI's to be honest, though.) > It would be wise to give an abstract of the program. I made an informatio= n flux kind of graphic, but I do not know how to post it in here, so I'll u= se only words: > Thats basically the whole program. I've been studying Python for a week a= nd half now, through: How to think like a Computer Scientist and Invent wit= h Python and Pygame. I'm still at the very beggining, though, and I can't m= ake much more than make some images appear on a Pygame screen in a menu-lik= e style, with a patterned gap between them. No mouse interactions up to now= . In regards to this, I really would recommend just taking Rick's suggestion: Tkinter; canvas; menu; etc. Now, as I'm probably the most new programmer here I'll point out that I don't agree with Chris when he says that: > One way or > another, you will probably spend the next week writing code you throw > away; if you try to tackle the primary project immediately, you'll > have to rewrite parts of it as you learn. It's easier to throw away a > toy "Hello world" program than hunks of what you thought would be your > final code. As a new programmer, you will throw away code whether or not you practice beforehand. Beware of that. If anything, it's the best thing you can do*. Other than that, he's spot on. Personally, I'd start on the big project sooner rather than later, but not be afraid to dump all the code every now and again. *Anecdote time; a friend of mine who learned VB as his first language wrote as one of his earlier scripts a 2075 line program with no indentation - I still have a copy of that gem tucked away in a very dark corner. Last point; DRY. Look it up and breathe it. People might wonder why I'm making that big a deal about it (it's not the be-all and end-all of anything) but as a new programmer most of your random bits of not-nice-looking code will probably just be a breach of DRY. If you've written the same thing 5 times you've *probably* done it in a not-too efficient manner and the real solution will be the next ladder up in the hierarchy of programming. As someone new, paying a fair bit of attention to this will probably make what you learn some important higher-level concepts faster. Best of luck, I hope I added something helpful.