Commandline tools
Kevin Krammer
kevin.krammer at gmx.at
Tue Aug 15 20:08:05 BST 2006
On Tuesday 15 August 2006 20:43, David Faure wrote:
> On Monday 14 August 2006 23:20, Kevin Krammer wrote:
> > - unless an indivual name is very descriptive (for example like
> > konsolekalendar) it should be prefixed with kde4, maybe having a second
> > name part according to the module, e.g. kde4-io-client (instead if
> > kfmclient), maybe using kde4-io-copy/move/trash as convenience shortcuts
>
> Note that it's called kioclient already, in trunk.
Ah, good
> Not sure the kde4 is useful there. If I want to download a file from a
> terminal, it doesn't matter which version of kde I'm using. We're not
> typing fileutils5-cp instead of cp, either :)
Ok, maybe the version number is a bit too much :)
However, the common prefix would be a bit like namespacing so KDE commandline
tools can be easier discovered using a shell's commandline completion.
k<tab><tab> gives me about 250 hits, mostly KDE applications but including
some non-KDE applications as well.
I discovered the usefulness of prefix-namespacing when working on the
xdg-utils scripts and trying to figure out how to do certain things in GNOME.
gnome-open is easier to discover than kfmclient exec, their VFS tools are
named gnome-vfs-$function
Since their documentation is as good/bad as ours (i.e. non-existant),
consistent naming helps a lot.
As a developer I really appreciate the work you and the other library
developers put into keeping our APIs clean and consistent.
From my point of view a commandline tool is also a kind of API and should be
treated in a similar way, e.g. keeping the calling conventions compatible,
have useful return values, etc, and descriptive naming.
Anyway, the kde- prefix is just a suggestion, even if adopted I'd rather have
it as a recommendation than a policy
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060815/9bb979b7/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
More information about the kde-core-devel
mailing list