Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70555
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.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 | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'class,': 0.07; 'smallest': 0.07; 'currently,': 0.09; 'deemed': 0.09; 'latter': 0.09; 'overwrite': 0.09; 'skip:/ 10': 0.09; 'cc:addr:python-list': 0.11; '24,': 0.16; 'concatenated': 0.16; 'editor,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parts.': 0.16; 'splitting': 0.16; 'subject:OOP': 0.16; 'virtualbox': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'pieces': 0.19; 'thu,': 0.19; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'config': 0.24; 'merge': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; 'largest': 0.30; "i'm": 0.30; 'easier': 0.31; 'lines': 0.31; 'are.': 0.31; 'though.': 0.31; 'file': 0.32; 'probably': 0.32; 'linux': 0.33; 'subject:from': 0.34; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'curious': 0.36; 'subject:one': 0.36; 'should': 0.36; 'files': 0.38; 'pm,': 0.38; 'either': 0.39; 'email addr:gmail.com': 0.63; 'different': 0.65; 'between': 0.67; '01:57': 0.84; 'ethan': 0.84; 'furman': 0.84; 'single,': 0.84; 'subject:Moving': 0.84; 'to:none': 0.92 |
| 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=g1lml4EfVGw0+ZwWhy1AIAyuLzzVOH6pDCUqjghZYIg=; b=Ha+2KdoV823DaPoLVQ8XoWLU9j96UPTQb/VgZKpQQ9XBUrfwAMaScfoX1u/ha76fbA rH525ZP4i7FGTSN13GNCzy3AyApLjT+6Dm6QxSXg0dCPc2IORhObfV3j6QV0wvmX5041 l4tEZqdCsp58L4inwe0GVrCg42/NomCg+60C/yOk7ZQpxnRyiqx26228DcaNA8f7O1ZK uXagoHOaSjTYxTPqOA/hLtRJl8G1ilTCBcSiCNQnj9PEoQf1JkMSwwRqFUR9GsirDgid nrVjFU2B560Q+ZArsjzJPLYjNPGwnqvxysixeUFDtAWlSh4+cIqRvMCMtXJTqXoGC2a9 eTbg== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.219.233 with SMTP id pr9mr48533482vec.10.1398294739108; Wed, 23 Apr 2014 16:12:19 -0700 (PDT) |
| In-Reply-To | <535833D5.7040500@stoneleaf.us> |
| References | <80a82415-fc67-4ccf-8827-27a0ba5459b7@googlegroups.com> <535833D5.7040500@stoneleaf.us> |
| Date | Thu, 24 Apr 2014 09:12:18 +1000 |
| Subject | Re: Moving to an OOP model from an classically imperitive one |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9473.1398294747.18130.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1398294747 news.xs4all.nl 2887 [2001:888:2000:d::a6]:34040 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:70555 |
Show key headers only | View raw
On Thu, Apr 24, 2014 at 7:42 AM, Ethan Furman <ethan@stoneleaf.us> wrote: > On 04/23/2014 01:57 PM, tim.thelion@gmail.com wrote: >> >> >> There is one problem though. Currently, I have these functions logically >> organized into source files, each between 40 and 170 LOC. I fear that if >> I were to put all of these functions into one class, than I would have a >> single, very large source file. I don't like working with large source >> files for practicall reasons. > > > I'm curious what these practical reasons are. One my smallest source files > has 870 lines in it, my largest nearly 9000. > > If the problem is your editor, you should seriously consider switching. It's probably not the case here, but one good reason for splitting a file into pieces is to allow separate people or systems to update different parts. Lots of Linux programs support either /etc/foobar.conf or /etc/foobar.conf.d/ where the former is one file and the latter is a directory of separate files, generally deemed to be concatenated to the main config file. (Example: /etc/apt/sources.list and /etc/apt/sources.list.d/ - the main config for your Debian repositories, the directory for additional ones for VirtualBox or PostgreSQL.) It's easier to allow someone to completely overwrite a file than to try to merge changes. But that's not often the case with source code. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Moving to an OOP model from an classically imperitive one tim.thelion@gmail.com - 2014-04-23 13:57 -0700
Re: Moving to an OOP model from an classically imperitive one Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-23 22:15 +0100
Re: Moving to an OOP model from an classically imperitive one Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-23 15:23 -0600
Re: Moving to an OOP model from an classically imperitive one Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-24 12:26 +1200
Re: Moving to an OOP model from an classically imperitive one Ethan Furman <ethan@stoneleaf.us> - 2014-04-23 14:42 -0700
Re: Moving to an OOP model from an classically imperitive one tim.thelion@gmail.com - 2014-04-24 00:32 -0700
Re: Moving to an OOP model from an classically imperitive one MRAB <python@mrabarnett.plus.com> - 2014-04-24 00:08 +0100
Re: Moving to an OOP model from an classically imperitive one tim.thelion@gmail.com - 2014-04-24 00:21 -0700
Re: Moving to an OOP model from an classically imperitive one Chris Angelico <rosuav@gmail.com> - 2014-04-24 17:36 +1000
Re: Moving to an OOP model from an classically imperitive one Steven D'Aprano <steve@pearwood.info> - 2014-04-24 09:08 +0000
Re: Moving to an OOP model from an classically imperitive one Chris Angelico <rosuav@gmail.com> - 2014-04-24 09:12 +1000
Re: Moving to an OOP model from an classically imperitive one Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-24 12:21 +1200
Re: Moving to an OOP model from an classically imperitive one tim.thelion@gmail.com - 2014-04-24 09:53 -0700
Re: Moving to an OOP model from an classically imperitive one Amirouche Boubekki <amirouche.boubekki@gmail.com> - 2014-04-25 19:21 +0200
Re:Moving to an OOP model from an classically imperitive one Dave Angel <davea@davea.name> - 2014-04-23 22:01 -0400
csiph-web