How to design a command line program reusable for a future development of a GUI?

Posted by systempuntoout on Stack Overflow See other posts from Stack Overflow or by systempuntoout
Published on 2010-04-10T12:45:22Z Indexed on 2010/04/10 19:53 UTC
Read the original article Hit count: 242

What are some best practices to keep in mind when developing a script program that could be integrated with a GUI, probably by somebody else, in the future?

Possible scenario:

  1. i develop a fancy python CLI program that scrapes every unicorn images from the web
  2. i decide to publish it on github
  3. a unicorn fan programmer decides to take the sources and build a GUI on them.
  4. he\she gives up because my code is not reusable

How do i avoid step four and let unicorn fan programmer build his\her GUI without hassle?

© Stack Overflow or respective owner

Related posts about design

Related posts about gui