Click here to Skip to main content
16,005,181 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: VB.NET Pin
Christian Graus5-Mar-07 1:13
protectorChristian Graus5-Mar-07 1:13 
GeneralRe: VB.NET Pin
Shog95-Mar-07 3:25
sitebuilderShog95-Mar-07 3:25 
GeneralRe: VB.NET Pin
Duncan Edwards Jones5-Mar-07 4:03
professionalDuncan Edwards Jones5-Mar-07 4:03 
GeneralRe: VB.NET Pin
Shog95-Mar-07 4:22
sitebuilderShog95-Mar-07 4:22 
GeneralRe: VB.NET Pin
pbraun5-Mar-07 9:26
pbraun5-Mar-07 9:26 
GeneralRe: VB.NET Pin
Sam Loveridge5-Mar-07 11:33
Sam Loveridge5-Mar-07 11:33 
GeneralRe: VB.NET Pin
GWB@s1c6-Mar-07 10:41
GWB@s1c6-Mar-07 10:41 
GeneralVB.NET -> C# ? Pin
Christian Graus3-Mar-07 23:05
protectorChristian Graus3-Mar-07 23:05 
I work on an app that was started by someone else in VB.NET. I hope it was the conversion to C# that causes me to still find code like:

for(int i = 0; i <= myObject.Length - 1; ++ i)

or, even better:

int g = item.Count - 1 + 1;

I find examples of both of these almost every time I wander into the guts of stuff I've not had to touch before, like some of the basic controls we suddenly decide to change after 2 years.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: VB.NET -> C# ? Pin
Bradml3-Mar-07 23:24
Bradml3-Mar-07 23:24 
GeneralRe: VB.NET -> C# ? Pin
Christian Graus3-Mar-07 23:37
protectorChristian Graus3-Mar-07 23:37 
GeneralRe: VB.NET -> C# ? Pin
Bradml4-Mar-07 0:20
Bradml4-Mar-07 0:20 
GeneralRe: VB.NET -> C# ? Pin
Christian Graus4-Mar-07 0:34
protectorChristian Graus4-Mar-07 0:34 
GeneralRe: VB.NET -> C# ? Pin
Bradml4-Mar-07 0:41
Bradml4-Mar-07 0:41 
GeneralRe: VB.NET -> C# ? Pin
Vasudevan Deepak Kumar4-Mar-07 1:51
Vasudevan Deepak Kumar4-Mar-07 1:51 
GeneralRe: VB.NET -> C# ? Pin
Sam Loveridge5-Mar-07 11:40
Sam Loveridge5-Mar-07 11:40 
GeneralRe: VB.NET -> C# ? Pin
Shog95-Mar-07 13:54
sitebuilderShog95-Mar-07 13:54 
GeneralRe: VB.NET -> C# ? Pin
AndrewVos6-Mar-07 5:38
AndrewVos6-Mar-07 5:38 
GeneralRe: VB.NET -> C# ? Pin
DA_Loring6-Mar-07 3:21
DA_Loring6-Mar-07 3:21 
GeneralRe: VB.NET -> C# ? Pin
Pascal Ganaye5-Mar-07 3:38
Pascal Ganaye5-Mar-07 3:38 
GeneralRe: VB.NET -> C# ? Pin
Fernando A. Gomez F.5-Mar-07 13:31
Fernando A. Gomez F.5-Mar-07 13:31 
GeneralRe: VB.NET -> C# ? Pin
jhwurmbach6-Mar-07 23:41
jhwurmbach6-Mar-07 23:41 
GeneralRe: VB.NET -> C# ? Pin
Muammar©5-Mar-07 18:52
Muammar©5-Mar-07 18:52 
GeneralRe: VB.NET -> C# ? Pin
Marcus J. Smith5-Mar-07 9:14
professionalMarcus J. Smith5-Mar-07 9:14 
GeneralWT? In the .NET Framework Pin
Ed.Poore3-Mar-07 11:12
Ed.Poore3-Mar-07 11:12 
GeneralInternal Error. Pin
Monty22-Mar-07 19:05
Monty22-Mar-07 19:05 

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.