From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Check for redundancy Date: Sat, 27 Jun 2015 13:11:49 +0100 Message-ID: <87twttcpve.fsf@robertthorpeconsulting.com> References: <87zj3mb4jf.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435407147 14341 80.91.229.3 (27 Jun 2015 12:12:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2015 12:12:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 14:12:14 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 1Z8oxx-00073J-Vo for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 14:12:14 +0200 Original-Received: from localhost ([::1]:35408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oxx-0006I5-0D for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 08:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oxh-0006H8-51 for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 08:11:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8oxc-0001PJ-4n for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 08:11:57 -0400 Original-Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:40715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oxb-0001OF-V9 for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 08:11:52 -0400 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp04.blacknight.com (Postfix) with ESMTPS id B9D099872A for ; Sat, 27 Jun 2015 12:11:50 +0000 (UTC) Original-Received: (qmail 23762 invoked from network); 27 Jun 2015 12:11:50 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.76.242.191]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 27 Jun 2015 12:11:50 -0000 In-Reply-To: <87zj3mb4jf.fsf@mbork.pl> (message from Marcin Borkowski on Fri, 26 Jun 2015 22:25:40 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.35 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:105221 Archived-At: Marcin Borkowski writes: > On 2015-06-26, at 17:01, Emanuel Berg wrote: > >> Hungarian notation is a joke. [...] > > I would bet that you've never done anything in LaTeX3, have you? > > I agree that for high-level, general-purpose languages, HN is rarely > a good idea. (Though some variants, like consistent naming schemes - > like Emacs' convention for variables ending in =E2=80=98-function=E2=80= =99 or =E2=80=98-hook=E2=80=99 - > are fine, aren=E2=80=99t they?) > > For a fairly low-level thing like TeX, in which the same thing can be > represented in a few ways (like =E2=80=9C\foo=E2=80=9D versus =E2=80=9Cfo= o=E2=80=9D, which is a bit like > the symbol/string difference in Lisp), you would perish without it. I agree, it has it's uses. Hungarian notation was used a lot in early programs using the MS Windows AP= I. In that API there are quite a few situations where you want to hold the same value in two different ways. E.g. you want a "thing" and "handle to a thing". Also, there aren't as many types as there should be. This makes Hungarian notation useful when dealing with the API. It can be useful when dealing with GUI generators, but that's secondary. That said, that's a weakness of the API. Also, it's not useful when you're inside the guts of your own programming. That makes it hard to figure out when to switch from hungarian notation back to normal naming. BR, Robert Thorpe