From owner-freebsd-hackers Sat May 25 20:38:28 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA00167 for hackers-outgoing; Sat, 25 May 1996 20:38:28 -0700 (PDT) Received: (from dima@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA00157; Sat, 25 May 1996 20:38:22 -0700 (PDT) Message-Id: <199605260338.UAA00157@freefall.freebsd.org> Subject: Re: Adduser program in C To: winter@jurai.net (Matthew N. Dodd) Date: Sat, 25 May 1996 20:38:21 -0700 (PDT) Cc: dima@FreeBSD.org, freebsd-hackers@FreeBSD.org In-Reply-To: from "Matthew N. Dodd" at May 25, 96 08:25:05 pm From: dima@FreeBSD.org (Dima Ruban) X-Class: Fast Organization: HackerDome X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Matthew N. Dodd writes: > > On Sat, 25 May 1996, Dima Ruban wrote: > > First: this is not small tool. > > With diskspace at the price it is, I don't think size is an issue in most > cases. What about RAM? > > Second: this is slow tool. > > The issue that started this discussion was the 'adduser' perl script. > I sure don't need a 'fast' program to do this job. I'm not in need of an > adduser program that can add 1000 users in 30 seconds. I don't need to > rebuild my virtual domain mail tables in a half second. In most cases > perl is a viable solution to many of my problems. I didn't say anything about this particular case with adduser program. But I couldn't stay away, when somebody (don't remember his name) said that perl is perfect replacement for shell/awk/sed scripts. The idea of his entire letter was "Perl rules! I'd love to see all unix shell/sed/awk scripts rewritten in perl, because perl is perfect!" > > Third: this is not standard unix tool. > > All well. > > > > specific task, and combine them to make something better. > > > Perl is one of those tools. > > I can't agree. > > You're entitled to your opinion, but many people here have PROVED the > above statement to be the truth. I'm not sure how you can deny it just > because you think its nasty. (hey, its nasty. I'll admit that) I think, I did it in my previouse letter. I didn't/don't/won't tell that perl is useless. All I did - I said, that --- cut here --- > > First: this is not small tool. > > Second: this is slow tool. > > Third: this is not standard unix tool. --- cut here --- > I'd be silly to try to write some of the stuff I'm using in C. I change > it too much or add new stuff to it too often. Perl isn't the solution to > every problem, but it has its place. > > If the adduser program would have been written in C, I would have trashed > it and written one in Perl. As it is, I just had to change a few things > and it worked for what I needed to do. I plan on writing my own, but I > don't have to deal with it now, as it was easy to kludge the old one. My point is: I don't have anything against writing on perl program/script which I won't run more often than once per hour > Have a good one. I certainly will. > | Matthew N. Dodd | winter@jurai.net | http://www.jurai.net/~winter | > | Technical Manager | mdodd@intersurf.net | http://www.intersurf.net | > | InterSurf Online | "Welcome to the net Sir, would you like a handbasket?"| > > -- dima