Click here to Skip to main content
15,913,836 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Vikram A Punathambekar16-May-07 1:21
Vikram A Punathambekar16-May-07 1:21 
General[modified] Re: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
CPallini16-May-07 1:34
mveCPallini16-May-07 1:34 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
DavidNohejl15-May-07 23:47
DavidNohejl15-May-07 23:47 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Vasudevan Deepak Kumar16-May-07 0:16
Vasudevan Deepak Kumar16-May-07 0:16 
JokeRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Chris Meech16-May-07 2:45
Chris Meech16-May-07 2:45 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw16-May-07 21:45
John R. Shaw16-May-07 21:45 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Pete O'Hanlon16-May-07 22:25
mvePete O'Hanlon16-May-07 22:25 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw16-May-07 22:44
John R. Shaw16-May-07 22:44 
Do you know what a long pointer is? I do.

Hungarian notation has its uses, but it falls way short of what it was intended to do. In the case presented an int is probably 32 bit and an long is probably 32 bits, so coding wise it makes no difference until you start using a 64 bit compiler, in which case they will probably both be the same again.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Pete O'Hanlon17-May-07 1:31
mvePete O'Hanlon17-May-07 1:31 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw17-May-07 2:49
John R. Shaw17-May-07 2:49 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Pete O'Hanlon17-May-07 3:24
mvePete O'Hanlon17-May-07 3:24 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw17-May-07 3:38
John R. Shaw17-May-07 3:38 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Pete O'Hanlon17-May-07 4:20
mvePete O'Hanlon17-May-07 4:20 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw17-May-07 4:54
John R. Shaw17-May-07 4:54 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
ricecake22-May-07 4:05
ricecake22-May-07 4:05 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Rob Grainger17-May-07 5:57
Rob Grainger17-May-07 5:57 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
ricecake22-May-07 4:01
ricecake22-May-07 4:01 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw25-May-07 13:53
John R. Shaw25-May-07 13:53 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw25-May-07 13:48
John R. Shaw25-May-07 13:48 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Arun.Immanuel17-May-07 3:00
Arun.Immanuel17-May-07 3:00 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw17-May-07 4:09
John R. Shaw17-May-07 4:09 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Arun.Immanuel17-May-07 4:19
Arun.Immanuel17-May-07 4:19 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
John R. Shaw17-May-07 5:11
John R. Shaw17-May-07 5:11 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Arun.Immanuel17-May-07 5:52
Arun.Immanuel17-May-07 5:52 
GeneralOr in C++ (MFC) for that matter... Pin
Rob Grainger17-May-07 2:38
Rob Grainger17-May-07 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.