From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Check for redundancy Date: Fri, 26 Jun 2015 16:51:33 +0200 Message-ID: <87y4j6v7yi.fsf@nl106-137-147.student.uu.se> References: <558A7875.4050905@easy-emacs.de> <24a1b328-82a8-44ff-8f8d-1425ab89ab67@default> <558BC155.4030603@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1435331828 11295 80.91.229.3 (26 Jun 2015 15:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2015 15:17:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 26 17:17:00 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z8VNE-0004CU-6Q for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 17:17:00 +0200 Original-Received: from localhost ([::1]:60650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8VND-0007S7-Cd for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jun 2015 11:16:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8V03-0000IZ-7o for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 10:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8Uzz-0003Av-51 for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 10:53:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Uzy-0003Am-Ue for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 10:52:59 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z8Uzx-0007SR-Sg for help-gnu-emacs@gnu.org; Fri, 26 Jun 2015 16:52:57 +0200 Original-Received: from nl106-137-98.student.uu.se ([130.243.137.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jun 2015 16:52:57 +0200 Original-Received: from embe8573 by nl106-137-98.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Jun 2015 16:52:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-98.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:6gH+Hq8eN43UjXCBs/gWBJsBX+I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105196 Archived-At: Andreas Röhler writes: > Avoiding redundancy is important as it saves time. > Assume there is a bug in some redundant: fixing this > would leave the other bug at place. > > But it's not about bugs only. Functions might be > shaped more or less efficient in various regards. > When optimizing a redundant function, second range > quality will remain. Yes, if there is a tool to identify those that'd be great. Only there are hundreds of thousands of programs and software components that have been developed without such and those work just fine. This tells me this is (would be) one for the toolbox that can certainly be interesting to try out but it isn't the new combination key or spoke key. The most important thing for an aspiring programmer is still, and will always be, to write code every day, as much as possible, and as good as possible, and then do it over and over at a higher and higher level. Myself I have 281 Elisp defuns. I'm happy to try any tool that will identify how many of those are in fact redundant. If say 50 are then I'd start worrying. I'd change my mind on this. If ten are, I'd be cool. But I'd fix them nonetheless so yes, it'd be useful, just not that big a factor. -- underground experts united http://user.it.uu.se/~embe8573