Click here to Skip to main content
15,886,518 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: More mining from our deep seam of WTF's Pin
vonb4-Jul-13 3:48
vonb4-Jul-13 3:48 
GeneralRe: More mining from our deep seam of WTF's Pin
Raybarg8-Jul-13 20:56
professionalRaybarg8-Jul-13 20:56 
GeneralRe: More mining from our deep seam of WTF's Pin
Rob Grainger9-Jul-13 0:00
Rob Grainger9-Jul-13 0:00 
GeneralRe: More mining from our deep seam of WTF's Pin
Raybarg9-Jul-13 19:14
professionalRaybarg9-Jul-13 19:14 
GeneralFirst time worked on Umbraco CMS Pin
crazie.coder30-Jun-13 19:40
professionalcrazie.coder30-Jun-13 19:40 
GeneralRe: First time worked on Umbraco CMS Pin
OriginalGriff30-Jun-13 20:35
mveOriginalGriff30-Jun-13 20:35 
GeneralRe: First time worked on Umbraco CMS Pin
AspDotNetDev1-Jul-13 5:02
protectorAspDotNetDev1-Jul-13 5:02 
RantAnd I will show you how deep the rabbit hole runs !!! PinPopular
virang_2126-Jun-13 14:40
virang_2126-Jun-13 14:40 
While converting old FoxPro project to new .NET solution.. This is what I am putting up with... Frown | :(

Delphi
IF printer_type = 1 then
	* ELECTRIC LABEL		
	IF ALLTRIM(lin_array(2)) = "ENVIRO" then
		DO eleclabv4
	ELSE
		DO eleclabv1
	ENDIF
	
*	label form testlab noconsole TO PRINTER
ELSE
	IF printer_type = 2 then
		* GAS LABEL
		DO gaslabv1
	ELSE
		IF printer_type = 3 then
			SET FILTER TO dpl.dpl_part = "50V136G"  && need to trick the label printing routine to see 1 record to print .. enamel chain items don't have any records in the datplate (dpl) file, therefore nothing will print if we don't trick the program
			DO echnlabv1
		ELSE
			IF printer_type = 4 then
				DO gaslabv2
			ELSE
				IF printer_type = 5 then
					*Sunpro gas
					DO gaslabv3
				ELSE
					IF printer_type = 6 then
						*Sunpro electric
						DO gaslabv3
					ELSE
						IF printer_type = 7 then
							* Titan
							DO eleclabv2
						ELSE
							IF printer_type = 8 then
								* Centaur
								DO eleclabv3
							ELSE
								IF printer_type = 9 then
									* GEneric label
									DO genlabelele
								ELSE
									IF printer_type = 10 then
										* GEneric label
										DO genlabelgas
									ELSE
										IF printer_type = 11 then
											* Revision D Electric label
											DO genlabeleleRevD
										ELSE
											IF printer_type = 12 then
												* Revision D Electric label
												DO genlabelgasRevD
											ELSE
												IF printer_type = 13 then
													* Revision D Electric label
													DO conergyelec
												ELSE
													IF printer_type = 15 then
														* Therman electric label
														DO genlabeleleThermann
													ELSE
														IF printer_type = 16 then
															* Therman electric label
															DO genlabeleleChina2
														ELSE
															IF printer_type = 17 then
																* H4047 A version label
																DO eleclabv5
															endif														
														endif														
													endif						
												endif
											endif
										endif
									endif
								endif
							endif
						endif
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF
ENDIF

Zen and the art of software maintenance : rm -rf *

Math is like love : a simple idea but it can get complicated.

GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
_Damian S_26-Jun-13 15:01
professional_Damian S_26-Jun-13 15:01 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Dennis E White26-Jun-13 15:25
professionalDennis E White26-Jun-13 15:25 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Ron Beyer26-Jun-13 15:29
professionalRon Beyer26-Jun-13 15:29 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Nagy Vilmos28-Jun-13 2:09
professionalNagy Vilmos28-Jun-13 2:09 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Killzone DeathMan28-Jun-13 5:29
Killzone DeathMan28-Jun-13 5:29 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
vonb26-Jun-13 19:26
vonb26-Jun-13 19:26 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
hansoctantan28-Jun-13 0:02
professionalhansoctantan28-Jun-13 0:02 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Killzone DeathMan28-Jun-13 5:27
Killzone DeathMan28-Jun-13 5:27 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
Lutosław28-Jun-13 13:50
Lutosław28-Jun-13 13:50 
GeneralRe: And I will show you how deep the rabbit hole runs !!! Pin
MarkTJohnson8-Jul-13 8:44
professionalMarkTJohnson8-Jul-13 8:44 
GeneralWhen Gobbledygook, Do Nada (Except Break the Build) PinPopular
AspDotNetDev26-Jun-13 12:11
protectorAspDotNetDev26-Jun-13 12:11 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
lewax0026-Jun-13 13:39
lewax0026-Jun-13 13:39 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Argonia26-Jun-13 22:03
professionalArgonia26-Jun-13 22:03 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Richard Deeming26-Jun-13 23:57
mveRichard Deeming26-Jun-13 23:57 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Argonia27-Jun-13 0:03
professionalArgonia27-Jun-13 0:03 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
OriginalGriff27-Jun-13 0:12
mveOriginalGriff27-Jun-13 0:12 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Freak3027-Jun-13 0:57
Freak3027-Jun-13 0:57 

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.