Click here to Skip to main content
15,892,298 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: Replace what? Pin
leppie25-Apr-08 5:47
leppie25-Apr-08 5:47 
GeneralRe: Replace what? Pin
PIEBALDconsult25-Apr-08 6:06
mvePIEBALDconsult25-Apr-08 6:06 
GeneralRe: Replace what? Pin
Brady Kelly26-Apr-08 0:48
Brady Kelly26-Apr-08 0:48 
GeneralRe: Replace what? Pin
elektrowolf25-Apr-08 8:32
elektrowolf25-Apr-08 8:32 
JokeRe: Replace what? Pin
Spacix One29-Apr-08 5:13
Spacix One29-Apr-08 5:13 
GeneralRe: Replace what? Pin
Brady Kelly29-Apr-08 5:23
Brady Kelly29-Apr-08 5:23 
JokeRe: Replace what? Pin
Spacix One2-May-08 5:28
Spacix One2-May-08 5:28 
GeneralUseless... Pin
Dave Sexton22-Apr-08 23:00
Dave Sexton22-Apr-08 23:00 
Recently came across this gem.

<br />
protected void Foo()<br />
{<br />
	//...<br />
	PreProcess(arg);<br />
	//...<br />
}<br />
<br />
<br />
private void PreProcess(string arg)<br />
{<br />
	try<br />
	{<br />
		return;<br />
	}<br />
	catch(Exception ex)<br />
	{<br />
		//....<br />
	}<br />
}<br />


D'Oh! | :doh:




But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
Because programming is an art, not a science. Marc Clifton



QuestionRe: Useless... Pin
CPallini22-Apr-08 23:22
mveCPallini22-Apr-08 23:22 
GeneralRe: Useless... Pin
Spunky Coder23-Apr-08 0:22
Spunky Coder23-Apr-08 0:22 
GeneralRearranging... Pin
CPallini23-Apr-08 2:08
mveCPallini23-Apr-08 2:08 
GeneralRe: Useless... Pin
Stephen Hewitt23-Apr-08 21:21
Stephen Hewitt23-Apr-08 21:21 
GeneralRe: Useless... Pin
BadKarma23-Apr-08 1:09
BadKarma23-Apr-08 1:09 
JokeRe: Useless... Pin
elektrowolf23-Apr-08 3:39
elektrowolf23-Apr-08 3:39 
GeneralRe: Useless... Pin
Dave Sexton23-Apr-08 4:03
Dave Sexton23-Apr-08 4:03 
GeneralRe: Useless... Pin
StM0n23-Apr-08 20:15
StM0n23-Apr-08 20:15 
GeneralRe: Useless... Pin
MarkB77723-Apr-08 20:26
MarkB77723-Apr-08 20:26 
GeneralRe: Useless... Pin
Pete O'Hanlon23-Apr-08 22:25
mvePete O'Hanlon23-Apr-08 22:25 
GeneralRe: Useless... Pin
Saurabh.Garg27-Apr-08 4:06
Saurabh.Garg27-Apr-08 4:06 
GeneralRe: Useless... Pin
Dave Sexton27-Apr-08 22:20
Dave Sexton27-Apr-08 22:20 
GeneralRe: Useless... Pin
Saurabh.Garg27-Apr-08 22:29
Saurabh.Garg27-Apr-08 22:29 
GeneralRe: Useless... Pin
Dave Sexton27-Apr-08 22:45
Dave Sexton27-Apr-08 22:45 
GeneralRe: Useless... Pin
Spacix One28-Apr-08 7:22
Spacix One28-Apr-08 7:22 
GeneralRe: Useless... Pin
Yasser Azeem15-May-08 2:07
Yasser Azeem15-May-08 2:07 
GeneralOh man... Pin
MarkB77720-Apr-08 20:06
MarkB77720-Apr-08 20:06 

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.