red floyd <no.spam.here@its.invalid>: Jun 05 11:09AM -0700 On 6/5/2016 9:42 AM, Mr Flibble wrote: > i Class member ("instance") object/variable > s Static object/variable > k Constant How do sausages fit into this convention? |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jun 05 08:45PM +0100 On 05/06/2016 19:09, red floyd wrote: >> s Static object/variable >> k Constant > How do sausages fit into this convention? uint32_t sausage_count() const; void add_sausage(const sausage& aSausageToAdd); class sausage : public i_eatable { public: void eat(i_eater& aAnimal) { ... } public: double iEnergy; }; /Flibble |
Vir Campestris <vir.campestris@invalid.invalid>: Jun 05 08:23PM +0100 On 04/06/2016 17:57, JiiPee wrote: > you mean a matter of personal taste? No. It requires agreement from your whole team. Or else from Linus, if you are doing kernel work. And he seems to think we still use 80x25 green screens. Andy |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Jun 05 10:30PM +0200 On 05.06.2016 16:56, Jerry Stuckle wrote: > Hungarian Notation was around long before MS's IDE (and not restricted > to C). At least back in the 70's. Petzold did use it, but he wasn't > first by any means. Uhm, this view isn't factually incorrect, but it's irrelevant. We were talking about Microsoft's Hungarian notation, which was the first (and hopefully only ever) widespread use of it. The /name/, "Hungarian", refers to origins of the Microsoft chief architect who invented it, and yes, he did that long before joining Microsoft, namely Charles Simonyi, who was born Hungarian. In an ¹interview in 1986 he explained the notation name this way: <quote> It's called "Hungarian" as a joke. You know they say, "That's Greek to me," meaning they don't understand it, so it might as well be written in Greek. "Hungarian" is a twist on that phrase because these naming conventions are actually supposed to make the code more readable. The joke is that the program looks so unreadable, it might as well be written in Hungarian. But it's a set of conventions that controls the naming of all quantities in the program. </quote> Wikipedia's ²article about the notation does mention that "the original Hungarian notation … was invented by Charles Simonyi", but somehow the authors of that article failed to catch on to the fact that he is Hungarian, or that Hungarian sounds like Greek to most people, and invented a silly explanation about the order of first name and surname in Hungarian – such is the standard of this Wikipedia article. Anyway, apparently Simonyi wrote an influential ³internal Microsoft memorandum about the notation, which caused it to be adopted as a standard in Microsoft's application division in the early DOS days. Note: the first IBM PC and DOS appeared in 1981, so that sets the time frame for the first serious adoption, and in particular the adoption in Microsoft, which we discussed. Then Petzold included a description of it at the start of his "Programming Windows" book, which introduced it to the masses via the Windows programmers. I think it's not so important that Petzold also used it, but you're right that he did. Cheers & hth., - Alf PS: Please don't quote signatures or other irrelevant stuff, thanks! :) Links: ¹ http://web.archive.org/web/20020606140621/http://shamit.virtualave.net/charles_simonyi.htm ² https://en.wikipedia.org/wiki/Hungarian_notation#History ³ https://msdn.microsoft.com/en-us/library/aa260976%28VS.60%29.aspx |
bleachbot <bleachbot@httrack.com>: Jun 05 07:18PM +0200 |
Ramine <ramine@1.1>: Jun 05 01:20PM -0700 Hello... Scalable Parallel C++ Conjugate Gradient Linear System Solver Library was updated. PCG_SPARSE was enhanced and was updated to version 1.4 You can download Scalable Parallel C++ Conjugate Gradient Linear System Solver Library from: https://sites.google.com/site/aminer68/scalable-parallel-c-conjugate-gradient-linear-system-solver-library Thank you, Amine Moulay Ramdane. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment