Click here to Skip to main content
15,913,773 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
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 
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 
LOL! Sorry I tend not to notice the ‘.Net’ reference when looking at code that appears to be C or C++. Try that same logic in C or C++ and you will see it does not apply. When computers used 16 bit words an ‘int’ was supposed to be 16 bits as per language specifications (but actually it depended on the compiler). When they changed to 32 bit words (size of register) and new compilers came out, then ‘int’ became 32 bits per language specifications, which made it the same as a long. I do not know what artificial limits C# uses, but C and C++ uses register size and the compiler vendor sets the limits according to the standard. Any code you develop should be archived along with a copy of the compiler (environment) and the associated libraries, so that it can be recreated without having to modify it.

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 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 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Vasudevan Deepak Kumar24-May-07 23:23
Vasudevan Deepak Kumar24-May-07 23:23 
Generalwhat is the difference in one _gc * and two _gc *? Pin
syedhasan14-May-07 23:18
syedhasan14-May-07 23:18 

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.