General TC > General TC Talk

Why using different commands for extensions ?

(1/2) > >>

Pats:
There are diff commands ( TCL2.8rc4 ) like tce-load, tce-update, etc for diff operations but related to extensions only. Why these related commands were not combined in tce-load like -i options ( for eq: tce-load -u for update ) and so on... any special reason from the users and developers poview ?
Just curious !
~ Pats

gerald_clark:
Maybe you would also rather do
busybox ls
busybox rm
busybox cat

mikshaw:
I'd say it's mainly to keep it simple.  Combining several commands into a single script adds an extra layer of complexity, in that the script has to parse arguments to determine which task is to be done.  Keeping them in separate scripts allows the script to do one task, without the need to be told which task.  Either way works, but this method goes along with the traditional *nix practice of having a collection of small tools that each do one job as well as it can.

curaga:
They wouldn't really share code, so combining them would have little benefit.

Pats:
- I'd say it's mainly to keep it simple -
No offence intended towards a senior like you, but if-then-fi or case-esae is also not that complicated. And I think these small utils are not that complicated to code.
- ... goes along with the traditional unix practice... -
What abt emacs ? It does lots of diff things in one app. :)

- They wo'nt really share code... -
Yah, more logical but is it other way round ? Just - dpkg - ligacy - continued ?
Or may be lack of time to code ( or re-invent  ) again ? I know there are other imp utils/apps to be tcz-ed for the repo. :)
Pl take it lightly - I was just figuring out how senior devlopers work and think ! :)

~ Pats

Navigation

[0] Message Index

[#] Next page

Go to full version