Click here to Skip to main content
15,886,919 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: What is next? Pin
den2k884-Nov-14 21:04
professionalden2k884-Nov-14 21:04 
RantRe: What is next? Pin
Gary R. Wheeler8-Nov-14 1:26
Gary R. Wheeler8-Nov-14 1:26 
GeneralRe: What is next? Pin
_Maxxx_13-Nov-14 18:12
professional_Maxxx_13-Nov-14 18:12 
GeneralRe: What is next? Pin
PIEBALDconsult14-Nov-14 12:49
mvePIEBALDconsult14-Nov-14 12:49 
GeneralAnnouncing RemoteIE: Test the latest IE on Windows, Mac OS X, iOS and Android Pin
Simon O'Riordan from UK4-Nov-14 4:40
Simon O'Riordan from UK4-Nov-14 4:40 
GeneralRe: Announcing RemoteIE: Test the latest IE on Windows, Mac OS X, iOS and Android Pin
PIEBALDconsult4-Nov-14 7:40
mvePIEBALDconsult4-Nov-14 7:40 
GeneralRe: Announcing RemoteIE: Test the latest IE on Windows, Mac OS X, iOS and Android Pin
Simon O'Riordan from UK4-Nov-14 21:11
Simon O'Riordan from UK4-Nov-14 21:11 
GeneralA disturbing new trend? Pin
PIEBALDconsult3-Nov-14 9:33
mvePIEBALDconsult3-Nov-14 9:33 
When I first learned BASIC in the '80s, the only structure available was the array, so we had to use that and build up more complex structures, but that's just not necessary with C#, OOP, and Collections. So I am saddened to these posts from the last few days:

"Int32[] playerNumbers, String[] playerLastName, Int32[] playerPoints" --
Arrays how to delete multiple entries[^]

"Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints" --
Cannot convert type int[] to int[^]

"Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints" --
delete method not deleting[^]

"Array carPark[10][2];" --
What Is Wrong With The Code And Why Doesnt It Run When I Try To Run It In C#[^]

Those first two are the same member, the third probably is as well.
The fourth is at least using a two-dimensional array, but he obviously copied it from somewhere and has no idea what it is.


Oh, sweet Bob, they keep coming...

"public string[][] Select(string query)" --
How to return array or list 2 dimensional from SQL Query[^]


WTF!?

"ProcessDelete(Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints )"
method for copying array into new array[^]


And they just keep coming:

"ProcessDelete(Int32[] playerNumbers, ref Int32 playerCount, String[] playerLastName, Int32[] playerPoints)"
Trouble With Arrays And For Loops[^]


"DeletePlayer(Int32[] playerNumbers, String[] playerLastName, Int32[] playerPoints, ref Int32 playerCount, Int32 MAXPLAYERS)"
For loops and decrement with arrays[^]
GeneralRe: A disturbing new trend? Pin
ledtech33-Nov-14 10:04
ledtech33-Nov-14 10:04 
GeneralRe: A disturbing new trend? Pin
PIEBALDconsult3-Nov-14 10:13
mvePIEBALDconsult3-Nov-14 10:13 
GeneralRe: A disturbing new trend? Pin
Nagy Vilmos4-Nov-14 0:53
professionalNagy Vilmos4-Nov-14 0:53 
GeneralRe: A disturbing new trend? PinPopular
Marc Clifton3-Nov-14 10:44
mvaMarc Clifton3-Nov-14 10:44 
GeneralRe: A disturbing new trend? Pin
PIEBALDconsult3-Nov-14 10:51
mvePIEBALDconsult3-Nov-14 10:51 
GeneralRe: A disturbing new trend? Pin
PhilLenoir3-Nov-14 10:59
professionalPhilLenoir3-Nov-14 10:59 
GeneralRe: A disturbing new trend? Pin
PIEBALDconsult3-Nov-14 11:02
mvePIEBALDconsult3-Nov-14 11:02 
GeneralRe: A disturbing new trend? Pin
PhilLenoir3-Nov-14 11:03
professionalPhilLenoir3-Nov-14 11:03 
GeneralRe: A disturbing new trend? Pin
PhilLenoir3-Nov-14 11:12
professionalPhilLenoir3-Nov-14 11:12 
GeneralRe: A disturbing new trend? Pin
Dan Neely4-Nov-14 2:51
Dan Neely4-Nov-14 2:51 
GeneralRe: A disturbing new trend? Pin
PhilLenoir4-Nov-14 2:57
professionalPhilLenoir4-Nov-14 2:57 
GeneralRe: A disturbing new trend? Pin
Dan Neely4-Nov-14 3:19
Dan Neely4-Nov-14 3:19 
GeneralRe: A disturbing new trend? Pin
PhilLenoir4-Nov-14 3:22
professionalPhilLenoir4-Nov-14 3:22 
GeneralRe: A disturbing new trend? Pin
Dan Neely4-Nov-14 3:34
Dan Neely4-Nov-14 3:34 
GeneralRe: A disturbing new trend? Pin
PhilLenoir4-Nov-14 3:35
professionalPhilLenoir4-Nov-14 3:35 
GeneralRe: A disturbing new trend? Pin
Garth J Lancaster3-Nov-14 14:25
professionalGarth J Lancaster3-Nov-14 14:25 
GeneralRe: A disturbing new trend? Pin
PhilLenoir4-Nov-14 2:55
professionalPhilLenoir4-Nov-14 2:55 

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.