Click here to Skip to main content
15,174,232 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: How to zero-pad a number? Pin
PIEBALDconsult2-Oct-13 4:28
professionalPIEBALDconsult2-Oct-13 4:28 
GeneralRe: How to zero-pad a number? Pin
SortaCore2-Oct-13 10:21
MemberSortaCore2-Oct-13 10:21 
GeneralRe: How to zero-pad a number? Pin
SortaCore1-Oct-13 11:48
MemberSortaCore1-Oct-13 11:48 
GeneralRe: How to zero-pad a number? Pin
Dennis_E3-Oct-13 0:19
professionalDennis_E3-Oct-13 0:19 
GeneralThat really makes a difference Pin
mav.northwind26-Sep-13 21:51
Membermav.northwind26-Sep-13 21:51 
GeneralRe: That really makes a difference Pin
GuyThiebaut2-Oct-13 6:31
professionalGuyThiebaut2-Oct-13 6:31 
GeneralRe: That really makes a difference Pin
Athari7-Oct-13 7:50
MemberAthari7-Oct-13 7:50 
GeneralCan I copy that? Pin
BotCar25-Sep-13 3:32
MemberBotCar25-Sep-13 3:32 
I'm currently working with a GUI built by someone who seems to like using the default names for controls. The language in which this GUI was created allows any control to have a label associated with it. I have just come across a control named copyOfcopyOfcopyOfTextField41282, with a label of copyOfcopyOfcopyOfTextField4121.

In this language, it is also common to refer to a control by way of mentioning all its parent controls (which in the GUI builder is often placed in a dropdown with a fixed width to ensure that you cannot see the full control path and name, because that would just make your life too easy). The full path and name of the above control is Group0/Frame/CriteriaBox/VerticalBox2/copyOfcopyOfVerticalBox512/HorizontalBox5/copyOfcopyOfcopyOfTextField41282.

The control in question isn't even visible to the user, and I have no idea what its purpose is.



Kill me now.
What is this talk of release? I do not release software. My software escapes leaving a bloody trail of designers and quality assurance people in its wake.

GeneralRe: Can I copy that? Pin
Pete O'Hanlon25-Sep-13 3:46
mvaPete O'Hanlon25-Sep-13 3:46 
GeneralRe: Can I copy that? Pin
Nicholas Marty25-Sep-13 5:12
professionalNicholas Marty25-Sep-13 5:12 
GeneralWhy is my code so slow?? Pin
vonb24-Sep-13 2:39
Membervonb24-Sep-13 2:39 
GeneralRe: Why is my code so slow?? Pin
Jörgen Andersson24-Sep-13 5:30
professionalJörgen Andersson24-Sep-13 5:30 
GeneralRe: Why is my code so slow?? Pin
vonb24-Sep-13 5:37
Membervonb24-Sep-13 5:37 
GeneralRe: Why is my code so slow?? Pin
Jörgen Andersson24-Sep-13 9:32
professionalJörgen Andersson24-Sep-13 9:32 
GeneralRe: Why is my code so slow?? Pin
Rage24-Sep-13 6:15
professionalRage24-Sep-13 6:15 
GeneralRe: Why is my code so slow?? Pin
Jörgen Andersson24-Sep-13 9:34
professionalJörgen Andersson24-Sep-13 9:34 
GeneralRe: Why is my code so slow?? Pin
BillW3324-Sep-13 6:01
professionalBillW3324-Sep-13 6:01 
GeneralRe: Why is my code so slow?? Pin
OriginalGriff24-Sep-13 9:58
mveOriginalGriff24-Sep-13 9:58 
GeneralRe: Why is my code so slow?? Pin
AmitGajjar25-Sep-13 2:57
professionalAmitGajjar25-Sep-13 2:57 
GeneralRe: Why is my code so slow?? Pin
PIEBALDconsult24-Sep-13 16:38
professionalPIEBALDconsult24-Sep-13 16:38 
GeneralRe: Why is my code so slow?? Pin
vonb24-Sep-13 20:20
Membervonb24-Sep-13 20:20 
GeneralRe: Why is my code so slow?? Pin
PIEBALDconsult24-Sep-13 20:22
professionalPIEBALDconsult24-Sep-13 20:22 
GeneralRe: Why is my code so slow?? Pin
vonb24-Sep-13 20:58
Membervonb24-Sep-13 20:58 
GeneralRe: Why is my code so slow?? Pin
Nagy Vilmos24-Sep-13 23:14
professionalNagy Vilmos24-Sep-13 23:14 
GeneralRe: Why is my code so slow?? Pin
AmitGajjar25-Sep-13 2:58
professionalAmitGajjar25-Sep-13 2:58 

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.