KatolaZ <kato...@freaknet.org> writes: > On Mon, Jan 25, 2016 at 05:44:11PM -0500, Peter Olson wrote: > > [cut] > >> >> This also brings up the question of whether you should roll your own >> get_name or >> use basename(3) which already does the same thing except in some edge cases. >> It's easier for the student to understand the code if it is implemented as >> get_name, but the student ought to learn about dirname and basename pretty >> early >> in their study. > > Apart from students' interest, the Unix phylosophy is all about > designing simple, orthogonal, robust components and functions that can > be reused and combined together to accomplish tasks unforseen to their > initial developer. Unix is not about reinventing the wheel every > single day.
There's indeed something whose 'philosophy' is based on assembling complex constructions from more-or-less unfit-for-purpose components which happen to be available in order to solve seemingly not-so-difficult problems by creative ingenuitity but it's not called UNIX(*). https://en.wikipedia.org/wiki/The_Incredible_Machine_%28series%29 [SCNR] _______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng