Click here to Skip to main content
15,887,343 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.

 
GeneralAm I missing Something? Pin
outside cosmic31-Oct-09 22:08
outside cosmic31-Oct-09 22:08 
GeneralRe: Am I missing Something? Pin
OriginalGriff31-Oct-09 22:13
mveOriginalGriff31-Oct-09 22:13 
GeneralRe: Am I missing Something? Pin
outside cosmic31-Oct-09 22:24
outside cosmic31-Oct-09 22:24 
GeneralRe: Am I missing Something? Pin
OriginalGriff31-Oct-09 22:40
mveOriginalGriff31-Oct-09 22:40 
GeneralRe: Am I missing Something? Pin
outside cosmic31-Oct-09 22:54
outside cosmic31-Oct-09 22:54 
GeneralRe: Am I missing Something? Pin
Nagy Vilmos2-Nov-09 4:02
professionalNagy Vilmos2-Nov-09 4:02 
GeneralRe: Am I missing Something? Pin
PIEBALDconsult1-Nov-09 6:02
mvePIEBALDconsult1-Nov-09 6:02 
GeneralRe: Am I missing Something? Pin
Diego.Martinez1-Nov-09 21:53
Diego.Martinez1-Nov-09 21:53 
exactly, i find it very useful to create a Getter/Setter for each member (even if it is public) just in case something changes in the future and it needs to be recovered later.
Example:
if the length now has to adjust, for example, +5 in the current version, simply change the code on GetTranslation(...) { return object.translation+5; } and automatically all the code that refers to this translation is conveniently adjusted.

This is no coding horror, but a wise implementation with future alterability. Smile | :)
GeneralRe: Am I missing Something? Pin
Steven Kirk25-Nov-09 8:44
Steven Kirk25-Nov-09 8:44 
GeneralRe: Am I missing Something? Pin
Keith Barrow2-Nov-09 4:15
professionalKeith Barrow2-Nov-09 4:15 
GeneralRe: Am I missing Something? Pin
0x3c02-Nov-09 4:33
0x3c02-Nov-09 4:33 
GeneralRe: Am I missing Something? Pin
Keith Barrow2-Nov-09 4:58
professionalKeith Barrow2-Nov-09 4:58 
GeneralRe: Am I missing Something? Pin
0x3c02-Nov-09 8:21
0x3c02-Nov-09 8:21 
GeneralRe: Am I missing Something? Pin
Keith Barrow2-Nov-09 9:54
professionalKeith Barrow2-Nov-09 9:54 
GeneralRe: Am I missing Something? Pin
PIEBALDconsult2-Nov-09 17:29
mvePIEBALDconsult2-Nov-09 17:29 
GeneralRe: Am I missing Something? Pin
Jorg DD1-Dec-09 22:03
Jorg DD1-Dec-09 22:03 
GeneralA new way to create a DateTime from the year! Pin
sergiogarcianinja30-Oct-09 7:48
sergiogarcianinja30-Oct-09 7:48 
GeneralRe: A new way to create a DateTime from the year! Pin
Jaime Olivares31-Oct-09 19:12
Jaime Olivares31-Oct-09 19:12 
GeneralRe: A new way to create a DateTime from the year! Pin
sergiogarcianinja5-Nov-09 5:41
sergiogarcianinja5-Nov-09 5:41 
GeneralRe: A new way to create a DateTime from the year! Pin
Chris Maunder5-Nov-09 5:20
cofounderChris Maunder5-Nov-09 5:20 
GeneralRe: A new way to create a DateTime from the year! Pin
dojohansen7-Jan-10 22:51
dojohansen7-Jan-10 22:51 
GeneralRe: A new way to create a DateTime from the year! Pin
David Skelly5-Nov-09 5:34
David Skelly5-Nov-09 5:34 
GeneralRe: A new way to create a DateTime from the year! Pin
sergiogarcianinja5-Nov-09 5:39
sergiogarcianinja5-Nov-09 5:39 
GeneralRe: A new way to create a DateTime from the year! Pin
David Skelly5-Nov-09 23:19
David Skelly5-Nov-09 23:19 
GeneralHow to test equality PinPopular
nathan.northcutt@gmail.com28-Oct-09 10:50
nathan.northcutt@gmail.com28-Oct-09 10:50 

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.