General Programming Question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers General Programming Question
# 1  
Old 07-21-2009
General Programming Question

Experience level : New to programming in Linux. Forgive my noobiness in this context with regards to programming, language or grammar.

Some Background info
: I have seen a lot of programs which I use (Modo and Maya especially) which can use a command line to run the different parts of the program. So to make a new standard primitive I can run a command like (fictitious command) "create polycube 5" and create a polygonal cube of 5 units size. When using Maya the first time, such commands are overwhelming but the power lies in combining these commands so that any and all GUI interface activities can be scripted by copying and pasting commands echoed in the script manager window. Anything that is done on the GUI will have a corresponding command reflected in the script manager window.

I wished :All programs in my computer had functionality like this so I could have 'stringed' together my browser, mail program, download manager, and contacts manager and so on seamlessly the way I wanted them to work.

My question : is when creating a GUI program say for example a calculator, wouldn't it be better (especially if one is planning to add workflow automation features to the final application,) to create multiple console programs where each program is used for a certain functionality in the calculator ( say for example volume Conversions use a console program "vConvert", area conversions uses another called aConvert, and so forth so when the final application is put together, besides using the GUI to run the application, a power user can string commands in a script manager like in the above applications to create a custom workflow script/shortcut/button. or run individual converters separately from the CLI.

Is there a disadvantage (performance issues or security issues) in the final application if it is created this way?
# 2  
Old 07-21-2009
Quote:
'stringed' together my browser, mail program, download manager, and contacts manager
What you're forgetting is that these applications weren't meant to cooperate. Maybe SeaMonkey from Mozilla is what you're searching for. Apart from that, you're right: GUIs that display the corresponding commands for the command line are grand.

Quote:
Is there a disadvantage
If you're launching several subprograms, each of which contribute only a small part to the whole job, you incur a certain overhead for the process creations and the IPC (communication between the programs).
A more viable alternative would be to make a clear separation between the functionality layer and the user interface. The more loosely these two are connected, the easier it becomes to exchange a GUI for a CLI.
# 3  
Old 07-22-2009
Thank you.

Thanks for the reply. Much appreciate it.

Wished Linux programmers considered something like this to echo all GUI interactions as commands.

We would have had a better solution for automation in Linux than inventing newbie friendly equivalents for "Applescript" or "Automator" like on Macs.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

General question about learning Python

I am planning on taking a class in Python. My choices are 2.5 or 3.0. Which version should I choose? I am getting the impression they are two separate paths. thanks. (5 Replies)
Discussion started by: djehresmann
5 Replies

2. Shell Programming and Scripting

General question about passing variables among shell scripts

So this is something I've been wondering how to do for a while. Suppose I have two shell scripts a.sh and b.sh script a does some function and outputs to a varable $x . I would then like to take $x into the second function, b.sh, and do a function on it and create some output. So how do you pass... (3 Replies)
Discussion started by: viored
3 Replies

3. UNIX for Dummies Questions & Answers

General question about folder level permissions

How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g. ... (1 Reply)
Discussion started by: jawsnnn
1 Replies

4. Linux

General compression question

I am looking for an alternate solution other than gzip or bzip2 to compress files that are 3 to 4 GB each and will be hundreds per day. Aside from increasing storage anybody found a good tool? (5 Replies)
Discussion started by: mykey242
5 Replies

5. Solaris

General question about configuring DHCP on Solaris

Dears, my question is that possible to configure any server to work in solaris zone i mean any server cos i read that DHCP can't be work on solaris zone is that real or not Best Regards Alexander Corvinus (4 Replies)
Discussion started by: corvinusbsd
4 Replies

6. UNIX for Dummies Questions & Answers

Executable directory general question

This may be a dumb question (but this is the UNIX for Dummies Q&A forum :) But I'm wondering, what is the purpose of a directory being given execute permissions? I can't execute a directory, only files, right? If I make a directory executable, the files inside still won't execute unless I give... (1 Reply)
Discussion started by: FredSmith
1 Replies

7. Shell Programming and Scripting

general question?

Perl, Python, and PHP are these languages easy to use? Are they command line or are they part of a GUI? (2 Replies)
Discussion started by: wmosley2
2 Replies

8. UNIX for Dummies Questions & Answers

General Question

Hi, I've been racking my brains trying to remember, but, whats the command to change the default shell? I'm currently always in the Korn shell and I want to start out in the Bash shell. I'm running a variant of BSD I guess in Mac OS X 10.2.2 and Mandrake. Thanks. ccindyderek:confused: (4 Replies)
Discussion started by: ccindyderek
4 Replies

9. UNIX for Dummies Questions & Answers

General Proxy Question

This is quite a general question: I am trying to detect whether people accessing my network are using a proxy server. This is *not* to ensure that web pages are not cached! The only way that I can think of doing this is to intercept at packet level and examine the source port for... (1 Reply)
Discussion started by: sam_pointer
1 Replies

10. IP Networking

General Proxy Question

Firstly I must apologise; I have posted something similar in the "general UNIX newbies" forum; but in reterospect I think that it's more appropriate here. Anyhoo; I am trying to detect whether people accessing one of my servers are coming via a proxied connection. I must add that this is... (1 Reply)
Discussion started by: sam_pointer
1 Replies
Login or Register to Ask a Question