Tiny Core Linux

General TC => General TC Talk => Topic started by: Pats on January 29, 2010, 02:55:42 AM

Title: Why using different commands for extensions ?
Post by: Pats on January 29, 2010, 02:55:42 AM
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
Title: Re: Why using different commands for extensions ?
Post by: gerald_clark on January 29, 2010, 05:46:32 PM
Maybe you would also rather do
busybox ls
busybox rm
busybox cat
Title: Re: Why using different commands for extensions ?
Post by: mikshaw on January 30, 2010, 11:54:11 AM
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.
Title: Re: Why using different commands for extensions ?
Post by: curaga on January 30, 2010, 04:33:08 PM
They wouldn't really share code, so combining them would have little benefit.
Title: Re: Why using different commands for extensions ?
Post by: Pats on January 31, 2010, 05:22:06 AM
- 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
Title: Re: Why using different commands for extensions ?
Post by: MakodFilu on February 02, 2010, 10:36:35 PM
if-then-fi or case-esae is also not that complicated
True.

Quote
And I think these small utils are not that complicated to code.
Possibly not.

Just please, post the resulting .tcz when you'll have figured out already the best way to integrate all.

P.S.: OTOH I think the remark made by gerald_clark is insightful and deserves some consideration.