Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'classes.': 0.05; 'ide': 0.05; 'compiler': 0.07; 'top-level': 0.09; 'variables,': 0.09; 'am,': 0.12; 'classes,': 0.13; 'class,': 0.15; 'fixed.': 0.15; '(pdb)': 0.16; 'complicating': 0.16; 'filenames': 0.16; 'from:addr:tyler': 0.16; 'from:addr:tysdomain.com': 0.16; 'from:name:littlefield, tyler': 0.16; 'java.': 0.16; 'light- weight': 0.16; 'makefile': 0.16; 'makefile.': 0.16; 'message- id:@tysdomain.com': 0.16; 'received:69.164': 0.16; 'received:69.164.206': 0.16; 'received:69.164.206.65': 0.16; 'received:tds-solutions.net': 0.16; 'relaxed,': 0.16; 'reply- to:addr:tyler': 0.16; 'reply-to:addr:tysdomain.com': 0.16; 'wrote:': 0.16; '>>>': 0.18; 'functions,': 0.18; 'java': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'url:code': 0.23; 'expense': 0.23; 'sep': 0.23; 'suspect': 0.24; 'keeps': 0.26; 'classes': 0.28; 'required.': 0.28; 'needed,': 0.28; 'bit': 0.28; 'compile': 0.29; 'class': 0.30; '(e.g.': 0.31; 'chris': 0.32; 'source': 0.33; 'probably': 0.33; 'technical': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'nobody': 0.34; 'things': 0.34; 'rather': 0.35; 'object': 0.35; 'subject:How': 0.35; 'file': 0.36; 'fri,': 0.36; 'variables': 0.37; 'but': 0.37; 'could': 0.38; 'think': 0.38; 'program,': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'files,': 0.39; 'to:addr:python.org': 0.39; 'url:net': 0.60; 'browser': 0.61; 'url:p': 0.62; 'care,': 0.64; 'saw': 0.69; 'engine': 0.71; 'header :Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'hate': 0.73; 'price': 0.76; 'acts': 0.77; 'elimination': 0.84; 'eliminates': 0.93; 'organized,': 0.93 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on wuff X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.1 Date: Sat, 10 Sep 2011 08:04:24 -0600 From: "Littlefield, Tyler" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.22) Gecko/20110902 Lightning/1.0b2 Thunderbird/3.1.14 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to structure packages References: <2a4f542c-a8c1-46c7-9899-a3fad0940cf6@x11g2000yqc.googlegroups.com> <4e680c67$0$29980$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: tyler@tysdomain.com 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1315663511 news.xs4all.nl 2527 [2001:888:2000:d::a6]:51264 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:13071 On 9/10/2011 4:11 AM, Nobody wrote: > On Fri, 09 Sep 2011 11:37:44 +1000, Chris Angelico wrote: > >>> The Java compiler also acts as a "make" program. If it doesn't find >>> a .class file for a needed class, it will search for the corresponding >>> .java file and compile that. So to compile a complex program, you only >>> need to compile the top-level file (e.g. HelloWorld.java), and it will >>> compile everything which is required. No Makefile is needed, as the >>> relationship between classes, object files and source files is fixed. >>> >> If that's the entire benefit, then I think this is a rather hefty >> price to pay for the elimination of a makefile. > It also eliminates the need for TAGS files, browser database (PDB) files, > etc. Once you know the class name, all of the filenames follow from that. > > I suspect that the one-to-one correspondence between classes and .class > files is mostly technical (e.g. Java's security model). The one-to-one > correspondence between class files and source files could probably be > relaxed, but at the expense of complicating the IDE and toolchain. > > I never saw it as a problem, given that Java is fundamentally class-based: > there are no global variables or functions, only classes. > Sure there are no global variables, but having one class per file is one of the big things I hate about Java. Sure it keeps things organized, but that's a bit to much for me. -- Take care, Ty Web: http://tds-solutions.net The Aspen project: a light-weight barebones mud engine http://code.google.com/p/aspenmud Sent from my toaster.