Re: GUI vs: CLI (was: Shell command in VB6)

From: Michael Mendelsohn (keine.Werbung.1300_at_msgid.michael.mendelsohn.de)
Date: 04/08/04


Date: Thu, 08 Apr 2004 13:08:00 +0200

blmblm@myrealbox.com schrieb:
> Programmer Dude <Chris@Sonnack.com> wrote:
> >"MSCHAEF.COM" wrote:
> >> If you make the dialog box simpler by breaking it up into
> >> multiple sub dialogs, you've just made it more difficult to
> >> discover your options, which was the point of the GUI in
> >> the first place.
> >
> >If the app is so complicated that it takes multiple sub dialogs
> >to configure, then I can't imagine the CLI situation is going
> >to be any prettier. Further, unless you use that complicated
> >app *frequently*, your choices are likely hitting the manpage
> >or using the GUI.
>
> Well .... Unless the command you used for that CLI makes its way
> into your .bash_history or similar file.
>
> IMO one of the pluses of a CLI is that however obscure the
> incantation to achieve a particular effect might be, once you've
> figured it out it's easier to capture for later use and/or share
> with someone else.

The key word here is "file".

If you have too many options to a CLI command, then your model of that
function needs to change: you do not have a function that operates on a
single input any more, the options have become an input in its own
right.
It is obvious that you need a second input file with (e.g.) awk if you
want to achieve complex tasks (the script); there are also some
non-scripting commands that can use a .rc file for their options. This
input file can usually be overridden by other options placed on the
command line after its inclusion. Wget would be an example of such a
program.

The GUI then is your text editor; if you have a base .rc file that
contains all the options #commented out, you use your text editor to
move to the options and uncomment those you need. The workflow is very
similar to that of the proposed GUI wrapper, where you'd TAB and uncheck
boxes.

The advantage in using a text file is there's a transparent way to save
your work, reuse, reload and edit it, you can use your favorite GUI (=
text editor) to edit, you can yourself make a subset of the base file
(i.e. move the options you don't need to the bottom of the file or just
delete them), and you can have a set of files that do the things you
commonly need and make common modifications using a handful of
additional commandline options after you've included the .rc file (i.e.
you write your "default" behaviour into a file and modify that).

All of this can be done by the GUI as well (including the saving and
loading of parameter sets). The disadvantage is that when the command is
updated to take more options, the GUI is out of date; the text editor
won't be. ;)

Oh, and if there's a command line program that does not support a .rc
file, you can of course write another CLI app that reads a .rc file and
calls it - the wrapper need not be a GUI program at all :).

Michael

-- 
Feel the stare of my burning hamster and stop smoking!


Relevant Pages

  • Re: system-config-users 1.2.39 broken?
    ... I can do this in CLI in seconds. ... >> directory to another is a simple command in the CLI. ... In the GUI it ... > scanning the content with my eyes, and adjusting what I want where I ...
    (Fedora)
  • Re: [OT] Debian mailinglists [was: RE: Debian or Ubuntu?]
    ... also technically be utilizing a GUI to assist in the administration :-) ... something can't be done with the CLI, I'm just saying that there are ... tasks that I find simpler in the GUI. ... from the command line I find more difficult than using a graphical tool. ...
    (Ubuntu)
  • Re: [opensuse] Beginner: How do I mount a floppy disk? Summary
    ... GUI having been tried at all. ... Sorta sounds like he was using a GUI to me...or is there a command line ... CLI command....thought it brought up a GUI disk manager? ... the modern state of linux - reflected as well in the rant sent later by ...
    (SuSE)
  • Re: GUI vs: CLI
    ... > If you're going to the trouble of a second interface for the command line, ... > program and then write a GUI wrapper around it? ... that hard to build a GUI which is also a CLI. ...
    (comp.programming)
  • Re: Apple hiring $MS programmers?
    ... Once you are using a GUI ... even for editing simple scripts and config files as well. ... If I switched to a GUI editor for those things then I imagine I ... What is your primary reason for sticking with a command line ...
    (comp.sys.mac.system)

Loading