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 22:03:43 +0200 Message-ID: <87vbe7ob1c.fsf@nl106-137-147.student.uu.se> References: <87zj3mb4jf.fsf@mbork.pl> <87twttcpve.fsf@robertthorpeconsulting.com> <20150627131227.GB23450@tuxteam.de> <87d20glpqa.fsf@nl106-137-147.student.uu.se> <20150628110732.GA23656@tuxteam.de> <87twtrn86z.fsf@nl106-137-147.student.uu.se> 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 1435521931 4231 80.91.229.3 (28 Jun 2015 20:05:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 20:05: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 22:05:23 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 1Z9IpO-0003eg-2K for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 22:05:22 +0200 Original-Received: from localhost ([::1]:39775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9IpN-0003aO-EG for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 16:05:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9IpA-0003YG-3w for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 16:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9Ip6-0002DZ-TY for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 16:05:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Ip6-0002As-N3 for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 16:05:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z9Ip5-0003Tv-JM for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 22:05:03 +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 22:05:03 +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 22:05:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 48 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:U23KM4VnkDz06cDhc+H9BlLJxDA= 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:105265 Archived-At: Yuri Khan writes: > There are still reasons to use Hungarian notation, > because even the most strongly typed languages in > common use are not strongly typed enough. (Haskell > is or can be persuaded to be, but my employer is not > ready to embrace Haskell.) Good call :) > 1: Every time I have to work with two or more > coordinate systems that use the same axis names > (typically X and Y). E.g. a mathematical plane and > pixel coordinates relative to a window and/or > a monitor and/or a workspace. Eventually I start > naming variables starting with “wx, wy” for window, > “sx, sy” for screen, etc. Yes, however that falls outside of my definition of Hungarian notation - I would do the same, only I would probably spell out "window", "screen", and so on. So in Lisp it would be window-x, window-y; in C, win_x, win_y; in C++ perhaps Window would be a class; etc. > Without carefully labeling each affected variable, > after a month of not touching the codebase, it > becomes impossible to make modifications without > breaking anything. Indeed, I do long and descriptive names to the best of my ability. I consider it a virtue. In C, when you don't do that typically, I still do them longer and more descriptive than most C programmers. > Note that this isn’t the Systems Hungarian many > people are used to, which encodes the actual type. > It’s Applications Hungarian, where variables that > have the same physical type get different prefixes > after their conceptual type. In so many words, I agree. Tho to my mind this is common sense rather than any particular notational system being adhered to. -- underground experts united http://user.it.uu.se/~embe8573