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: Sun, 28 Jun 2015 01:02:21 +0200 Message-ID: <87d20glpqa.fsf@nl106-137-147.student.uu.se> References: <87zj3mb4jf.fsf@mbork.pl> <87twttcpve.fsf@robertthorpeconsulting.com> <20150627131227.GB23450@tuxteam.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 1435446271 27573 80.91.229.3 (27 Jun 2015 23:04:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2015 23:04:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 01:04:22 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 1Z8z93-0008JO-54 for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 01:04:21 +0200 Original-Received: from localhost ([::1]:37525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8z92-0006ki-Lu for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 19:04:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8z8r-0006kc-B9 for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 19:04:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8z8o-0000iW-5C for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 19:04:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8z8n-0000iS-UN for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 19:04:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z8z8m-00086k-CL for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 01:04:04 +0200 Original-Received: from nl106-137-246.student.uu.se ([130.243.137.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2015 01:04:04 +0200 Original-Received: from embe8573 by nl106-137-246.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2015 01:04:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 58 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-246.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:gvjZXWGBudAvGG7ZJMmzhbA8tsA= 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:105237 Archived-At: writes: > AFAIR (yes, I'm an old fart) Hungarian notation was > introduced at Microsoft (by Charles Simonyi, no > less) because their C compiler was abysmal at > type checking. There is some material on it in this book: @book{programmers-at-work, title = {Programmers at Work}, author = {Susan Lammers}, publisher = {Tempus Books}, year = 1989, ISBN = 1556152116 } > Yes, the API sucked too. Possibly it still sucks > (since times Windows 3.1 I haven't had to look at > it, thanfully) Yeah, I suspect it is (was) there for some reason. It has to be real bad for it to help tho :) Here is the Wikipedia article [1] - especially read the "Notable opinions" section! The best one: * Linus Torvalds: Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged — the compiler knows the types anyway and can check those, and it only confuses the programmer. The second-best one: * Bjarne Stroustrup: ... I don't recommend 'Hungarian'. I regard 'Hungarian' (embedding an abbreviated version of a type in a variable name) a technique that can be useful in untyped languages, but is completely unsuitable for a language that supports generic programming and object-oriented programming — both of which emphasize selection of operations based on the type and arguments (known to the language or to the run-time support). In this case, 'building the type of an object into names' simply complicates and minimizes abstraction. [1] https://en.wikipedia.org/wiki/Hungarian_notation -- underground experts united http://user.it.uu.se/~embe8573