Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 34325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:03:37+00:00 2026-05-10T14:03:37+00:00

What are your opinions on developing for the command line first, then adding a

  • 0

What are your opinions on developing for the command line first, then adding a GUI on after the fact by simply calling the command line methods?

eg.

W:\ todo AddTask ‘meeting with John, re: login peer review’ ‘John’s office’ ‘2008-08-22′ ’14:00’

loads todo.exe and calls a function called AddTask that does some validation and throws the meeting in a database.

Eventually you add in a screen for this:

 ============================================================  Event:    [meeting with John, re: login peer review]  Location: [John's office]    Date:     [Fri. Aug. 22, 2008]    Time:     [ 2:00 PM]  [Clear]  [Submit]  ============================================================ 

When you click submit, it calls the same AddTask function.

Is this considered:

  • a good way to code
  • just for the newbies
  • horrendous!.

Addendum:

I’m noticing a trend here for ‘shared library called by both the GUI and CLI executables.’ Is there some compelling reason why they would have to be separated, other than maybe the size of the binaries themselves?

Why not just call the same executable in different ways:

  • 'todo /G' when you want the full-on graphical interface
  • 'todo /I' for an interactive prompt within todo.exe (scripting, etc)
  • plain old 'todo <function>' when you just want to do one thing and be done with it.

Addendum 2:

It was mentioned that ‘the way [I’ve] described things, you [would] need to spawn an executable every time the GUI needs to do something.’

Again, this wasn’t my intent. When I mentioned that the example GUI called ‘the same AddTask function,’ I didn’t mean the GUI called the command line program each time. I agree that would be totally nasty. I had intended (see first addendum) that this all be held in a single executable, since it was a tiny example, but I don’t think my phrasing necessarily precluded a shared library.

Also, I’d like to thank all of you for your input. This is something that keeps popping back in my mind and I appreciate the wisdom of your experience.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:03:38+00:00Added an answer on May 10, 2026 at 2:03 pm

    I would go with building a library with a command line application that links to it. Afterwards, you can create a GUI that links to the same library. Calling a command line from a GUI spawns external processes for each command and is more disruptive to the OS.

    Also, with a library you can easily do unit tests for the functionality.

    But even as long as your functional code is separate from your command line interpreter, then you can just re-use the source for a GUI without having the two kinds at once to perform an operation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 137k
  • Answers 137k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you're going to go with Jquery, then you could… May 12, 2026 at 7:23 am
  • Editorial Team
    Editorial Team added an answer You may still only need to send one request, but… May 12, 2026 at 7:23 am
  • Editorial Team
    Editorial Team added an answer Static libraries are not linked. They are just a collection… May 12, 2026 at 7:23 am

Related Questions

Update: Based on a couple of the answers I have received, I just want
Multi-touch seems to be gathering more and more references worldwide every day. Soon the
Our Dev team had been developing enterprise web page more than 2 years ago.
I'm developing a project on google app engine (webapp framework). I need you people

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.