Re: Sharing code between different projects?

Discussion in 'Python' started by Chris Angelico, Aug 13, 2012.

  1. On Tue, Aug 14, 2012 at 2:53 AM, andrea crotti
    <> wrote:
    > The problem is that there are functions/classes from many domains, so it
    > would not make much sense to create a real project, and the only name I
    > could give might be "utils or utilities"..


    There's actually much merit in a generic utilities module. Keep things
    nicely segregated (ideally such that you know what things depend on
    what other, but at very least keep track of where one ends and another
    begins - that's trivial if everything's "one function" or "one class",
    but less so when you have a family of related functions), and then you
    can consider promoting one block of code to stand-alone module. But in
    the meantime, you have a single module used in two places, even if it
    doesn't have a very clear definition as yet.

    ChrisA
    Chris Angelico, Aug 13, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. andrea crotti

    Sharing code between different projects?

    andrea crotti, Aug 13, 2012, in forum: Python
    Replies:
    1
    Views:
    113
    Steven D'Aprano
    Aug 14, 2012
  2. andrea crotti
    Replies:
    2
    Views:
    130
    Miki Tebeka
    Aug 15, 2012
  3. Jean-Michel Pichavant

    Re: Sharing code between different projects?

    Jean-Michel Pichavant, Aug 14, 2012, in forum: Python
    Replies:
    0
    Views:
    133
    Jean-Michel Pichavant
    Aug 14, 2012
  4. Cameron Simpson

    Re: Sharing code between different projects?

    Cameron Simpson, Aug 14, 2012, in forum: Python
    Replies:
    0
    Views:
    168
    Cameron Simpson
    Aug 14, 2012
  5. andrea crotti
    Replies:
    0
    Views:
    125
    andrea crotti
    Aug 15, 2012
Loading...

Share This Page