Path: csiph.com!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.system Subject: Re: UNIX(*)/ Linux history & system design Date: Tue, 06 May 2014 15:09:19 +0100 Lines: 54 Message-ID: <87zjivatio.fsf@sable.mobileactivedefense.com> References: <87k3adxomn.fsf@sable.mobileactivedefense.com> <87wqear01o.fsf@sable.mobileactivedefense.com> <874n1dwvo0.fsf@sable.mobileactivedefense.com> <87zjj5vf1k.fsf@sable.mobileactivedefense.com> <87k3a0q867.fsf@sable.mobileactivedefense.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net c6dNkA3bP0ubQ7kt/te5Pgi6BRP6iFRRoAuZ1kpoMX9Csqk+Y= Cancel-Lock: sha1:JGyP9nKYtO4Z4wAEbHY2uVKkIF4= sha1:CgUi9Obopg4SYFR2m2906TV/4mo= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Xref: csiph.com comp.os.linux.development.system:681 crankypuss writes: > On 05/05/2014 05:17 PM, David Brown wrote: >> On 06/05/14 00:02, crankypuss wrote: >>> On 05/05/2014 02:31 PM, Rainer Weikusat wrote: >>>> crankypuss writes: >>> >>> >>> >>>>> Some seem to disagree with that view, but then some people blindly >>>>> parse command output with sed and use that to drive system-critical >>>>> functionality; go figure. >>>> >>>> I did a lot of shell-programming when I was working on 'embeddded Linux >>>> project' some years ago because that was the most convenient programming >>>> language available to me in that environment (ARM9 machine language >>>> and C >>>> being the other options) and 'sed' was the most sophisticated >>>> text-processing tool available to me. What's wrong with using it? >>> >>> I know nothing about "ARM9 machine language" but if C was available, yet >>> you used bash/sed, you must have been in one bigassed hurry or had some >>> extremely simple requirements. I'm sure your performed your job as >>> expected and were rewarded accordingly. >> >> Someone who writes a C program when a simple bash/sed script could do >> the task, would be failing to do their job as expected. One of the >> reasons Linux (and other *nix flavours) have multiple languages and >> tools is that different tools are better for different jobs, and that >> often it is the developer's time that is important rather than the >> systems run time. A developer who thinks C is the answer to every >> question is like a carpenter armed only with a hammer. >> >> In the embedded Linux systems I have worked on, the final system used C, >> Python, Perl, C++, and bash. I don't think sed was used, except as part >> of the makefiles. >> > > Indeed, it is the developer's time that is important, because that is > what the employer has purchased. Most employees are not very good at > building tools, and are as shortsighted as their employers. Tools > like sed have been magically provided to them, nobody ever had reason > to write those because they were just magically there. Far better to > simply use what has been provided, as expected, rather than building a > library of C subroutines that puts knocking out a small utility on the > same level of effort as debugging a bash/sed script [...] This has indeed been done in the past: The guy who couldn't get his (Perl) scripts to work reasonably well within a reasonable time was called Rasmus Lehrdorf and he named his library of C subroutines the 'Personal Homepage Tools', better known as 'PHP'.