Click here to Skip to main content
16,004,192 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: Strong Typing Pin
Ret Orrick9-May-07 4:04
Ret Orrick9-May-07 4:04 
GeneralRe: Strong Typing Pin
Russell Jones11-May-07 2:51
Russell Jones11-May-07 2:51 
GeneralRe: Strong Typing Pin
John R. Shaw6-May-07 6:01
John R. Shaw6-May-07 6:01 
GeneralRe: Strong Typing Pin
Shog96-May-07 8:24
sitebuilderShog96-May-07 8:24 
GeneralRe: Strong Typing Pin
PIEBALDconsult6-May-07 10:59
mvePIEBALDconsult6-May-07 10:59 
GeneralRe: Strong Typing Pin
eggsovereasy6-May-07 19:10
eggsovereasy6-May-07 19:10 
GeneralRe: Strong Typing Pin
Chris Maunder8-May-07 7:45
cofounderChris Maunder8-May-07 7:45 
GeneralRe: Strong Typing Pin
XTAL25611-May-07 2:33
XTAL25611-May-07 2:33 
Well I started programming in Java and we were told to put all our declarations up the top (which i think is the Java coding standard), and i like it this way. Makes all your declarations easy to find.
However, sometimes i need a variable at that scope which will only be used further down, so i put it there. It all comes down to the scope of you're variable and where it's used in that scope as to where it should go

Customer in computer shop: "Can you copy the Internet onto this disk for me?"

GeneralRe: Strong Typing Pin
Tristan Rhodes8-May-07 2:45
Tristan Rhodes8-May-07 2:45 
GeneralRe: Strong Typing Pin
Marcus J. Smith8-May-07 2:48
professionalMarcus J. Smith8-May-07 2:48 
GeneralRe: Strong Typing Pin
Tristan Rhodes8-May-07 6:46
Tristan Rhodes8-May-07 6:46 
GeneralRe: Strong Typing Pin
PIEBALDconsult8-May-07 7:34
mvePIEBALDconsult8-May-07 7:34 
GeneralRe: Strong Typing Pin
Tristan Rhodes8-May-07 8:19
Tristan Rhodes8-May-07 8:19 
GeneralRe: Strong Typing Pin
PIEBALDconsult8-May-07 9:37
mvePIEBALDconsult8-May-07 9:37 
GeneralRe: Strong Typing Pin
Tristan Rhodes8-May-07 9:43
Tristan Rhodes8-May-07 9:43 
GeneralRe: Strong Typing Pin
PIEBALDconsult8-May-07 11:38
mvePIEBALDconsult8-May-07 11:38 
GeneralRe: Strong Typing Pin
Tristan Rhodes8-May-07 22:31
Tristan Rhodes8-May-07 22:31 
GeneralRe: Strong Typing Pin
PIEBALDconsult9-May-07 17:13
mvePIEBALDconsult9-May-07 17:13 
GeneralRe: Strong Typing Pin
Marcus J. Smith8-May-07 8:11
professionalMarcus J. Smith8-May-07 8:11 
GeneralRe: Strong Typing Pin
urbane.tiger7-May-07 20:44
urbane.tiger7-May-07 20:44 
GeneralReusable Code Pin
kin3tik3-May-07 9:31
kin3tik3-May-07 9:31 
GeneralRe: Reusable Code Pin
PIEBALDconsult3-May-07 11:57
mvePIEBALDconsult3-May-07 11:57 
AnswerRe: Reusable Code Pin
DavidNohejl3-May-07 12:29
DavidNohejl3-May-07 12:29 
GeneralRe: Reusable Code Pin
Rob Graham3-May-07 12:43
Rob Graham3-May-07 12:43 
GeneralRe: Reusable Code Pin
PIEBALDconsult3-May-07 13:58
mvePIEBALDconsult3-May-07 13: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.