How to design a command line program and keep it open for a future 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 12:53 UTC
Read the original article Hit count: 535

Filed under:
|
|
|

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?

Example 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 decide to take the sources and build a GUI on them.
  4. he gives up because my code is a mess

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

© Stack Overflow or respective owner

Related posts about design

Related posts about gui