Re: Parameter String als Ref bzw als Out type?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hallo Thomas!

"Thomas Scheidegger [MVP]" <spam.netmaster@xxxxxxxxxxxxxx> schrieb:
Warum sollte man darauf verzichten?
Mir ist es lieber wenn ich einem Objekt gleich den Typen ansehen kann.

Microsoft rät für .NET ausdrücklich davon ab,

http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconNamingGuidelines.asp
   div.   "Do not use Hungarian notation"

So allgemein ist diese Aussage vollkommener Quatsch.

Zu allererst muss zwischen Apps Hungarian und Systems Hungarian unterschieden werden. Während letzteres unter .NET mit aktivierter Typstrenge (C# oder VB.NET mit 'Option Strict On') etwas an Sinn verliert, ist der Einsatz von Apps Hungarian (der ursprünglichen Version von Charles Simonyi) selbstverständlich weiterhin eine gute Idee. Mehr zum Thema, einschliesslich einiger weiterführender Links:

<URL:http://www.google.to/groups?selm=uHqUlP3bFHA.612%40TK2MSFTNGP12.phx.gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.



Relevant Pages

  • Re: Why NOT hungarian notation?
    ... I wish I had known about Apps Hungarian because ... When I see code that does not use Hungarian notation I feel like half my brain ... What are the real cons for using it? ... I tend to use it a lot, especially when IDing my controls. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Another newbie question
    ... you seem to be referring only to Systems Hungarian. ... I think what Ralph is trying to indicate is that Apps Hungarian can be quite useful. ... Dim lngCounterMainLoop as Long ...
    (microsoft.public.vb.general.discussion)
  • Re: How to name variables in a program?
    ... > but the rumour suggests that Hungarian notation originated from a ... > missunderstanding of Apps hungarian, ...
    (comp.programming)
  • Re: public global constants
    ... Apps Hungarian and Systems Hungarian, ... "They" would be Jack... ...
    (microsoft.public.vb.general.discussion)