From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Nobis Newsgroups: gmane.emacs.help Subject: Re: Check for redundancy Date: Thu, 25 Jun 2015 09:43:36 +0200 Organization: albasani.net Message-ID: References: <558A7875.4050905@easy-emacs.de> <24a1b328-82a8-44ff-8f8d-1425ab89ab67@default> Reply-To: stefan@familie-nobis.de NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435218325 31033 80.91.229.3 (25 Jun 2015 07:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 07:45:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 09:45:21 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 1Z81qa-0000il-Od for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 09:45:20 +0200 Original-Received: from localhost ([::1]:54286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z81qZ-00026h-T3 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 03:45:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: news.albasani.net 81gZDRMnYCRZc3XZmiR3fFzg/ifjJRph8ZQlThJMvZ1OSGOZHJnOOBhs48vfwtFIiIjFbVE0M/7KbG8ZNhtS9i0PwyIrslOsSAk1xVnKBOkKtziVYylXVi4CdB2no/hM Original-NNTP-Posting-Date: Thu, 25 Jun 2015 07:43:36 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="UezL8AKVXTHZT17INjy8jwWtJCxDMPY7qFq6ym/7iaM7ft0v9aZo9Vh8SEhipCW9RwTePssV5cW4ayAtYZSh08zb1UOuCTrX4Rb2pPwmppf4RjZ3OALNoMWQ2U0Jc6zsN//BqjC4FzfXtydaYgtwGhoHbLEZg14Fu3GwrLEe7i4="; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:MstGKYcE+j+8LddVir5+HjHSq0c= sha1:stRr2AgLez7tbxjVOvprg3ZmT6E= Original-Xref: usenet.stanford.edu gnu.emacs.help:212861 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:105146 Archived-At: Emanuel Berg writes: [want to check for redundancy in code] > Yeah, this is extremely difficult to accomplish at any > level and to get it to be actually useful in practice > is close to impossible. And it is not needed. Hmmm... at least for some people it seems important enough: https://www.devexpress.com/Products/CodeRush/duplicate_code.xml CodeRush is a (commercial) plugin for Microsoft Visual Studio and it has some redundancy detection and removing abilities built in. I only played a little bit with it and it is indeed quite impressing and disappointing at the same time. Nevertheless, I think at least for junior programmers it might have some value (and for programmers in the industry with a high time pressure; its helpful to refactor redundancies with just a press of a button and adding some new names). > I dare say the AI methods will *never* be able to do this! AI methods today are even able to identify important and influential paintings in the history of art: http://www.technologyreview.com/view/538281/machine-vision-algorithm-chooses-the-most-creative-paintings-in-history/ Detecting patterns is one of the strong areas of machine learning and redundancy is a pattern. I would assume that AI methods will at least someday be quite good at it. -- Stefan.