Click here to Skip to main content
15,892,161 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: Class with comments that say "Do not use" Pin
Chris Meech19-Apr-10 6:46
Chris Meech19-Apr-10 6:46 
GeneralRe: Class with comments that say "Do not use" Pin
O.Phil16-Apr-10 3:34
O.Phil16-Apr-10 3:34 
GeneralRe: Class with comments that say "Do not use" Pin
Nish Nishant16-Apr-10 3:27
sitebuilderNish Nishant16-Apr-10 3:27 
GeneralRe: Class with comments that say "Do not use" Pin
Abhinav S17-Apr-10 5:43
Abhinav S17-Apr-10 5:43 
GeneralRe: Class with comments that say "Do not use" Pin
Chris Meech19-Apr-10 6:49
Chris Meech19-Apr-10 6:49 
GeneralRe: Class with comments that say "Do not use" Pin
Gregory Gadow29-Apr-10 5:35
Gregory Gadow29-Apr-10 5:35 
GeneralBeginners "luck" Pin
OriginalGriff10-Apr-10 22:09
mveOriginalGriff10-Apr-10 22:09 
GeneralRe: Beginners "luck" Pin
DaveAuld11-Apr-10 0:14
professionalDaveAuld11-Apr-10 0:14 
Yes a bit of a horror, but, yes there is a but, without knowing what was the driver for this question or what the OP was upto, they might have been forced to do it this way, particularly if they are on a programming course etc.

I am currently doing a degree with the OU, and it is all based around Java. The question papers etc, sometimes tell you must do some things a certain way and not use other methods (or built in libraries/extensions etc.

The last paper I was doing was based around threads, it had the 'main' thread, and 3 other worker threads. We had to use semaphores/countdown latches etc. to ensure the workers were finished before the main thread did something, rather than a simple join.
Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


GeneralRe: Beginners "luck" Pin
OriginalGriff11-Apr-10 1:09
mveOriginalGriff11-Apr-10 1:09 
GeneralRe: Beginners "luck" Pin
DaveAuld11-Apr-10 0:18
professionalDaveAuld11-Apr-10 0:18 
GeneralRe: Beginners "luck" Pin
PIEBALDconsult11-Apr-10 4:25
mvePIEBALDconsult11-Apr-10 4:25 
GeneralRe: Beginners "luck" Pin
Jordy "Kaiwa" Ruiter12-Apr-10 6:00
Jordy "Kaiwa" Ruiter12-Apr-10 6:00 
GeneralRe: Beginners "luck" Pin
NormDroid13-Apr-10 2:43
professionalNormDroid13-Apr-10 2:43 
GeneralVB and an SqlDataSource Pin
Steve Wellens5-Apr-10 14:55
Steve Wellens5-Apr-10 14:55 
GeneralRe: VB and an SqlDataSource Pin
PIEBALDconsult5-Apr-10 17:35
mvePIEBALDconsult5-Apr-10 17:35 
GeneralRe: VB and an SqlDataSource Pin
Andrew Rissing6-Apr-10 4:08
Andrew Rissing6-Apr-10 4:08 
GeneralRe: VB and an SqlDataSource Pin
Bernhard Hiller8-Apr-10 22:09
Bernhard Hiller8-Apr-10 22:09 
GeneralRe: VB and an SqlDataSource Pin
supercat99-Apr-10 8:30
supercat99-Apr-10 8:30 
GeneralRe: VB and an SqlDataSource Pin
The Manoj Kumar22-Apr-10 19:32
The Manoj Kumar22-Apr-10 19:32 
GeneralThe Illusion of a Choice Pin
Andrew Rissing5-Apr-10 5:31
Andrew Rissing5-Apr-10 5:31 
GeneralRe: The Illusion of a Choice Pin
Rob Smiley5-Apr-10 9:11
Rob Smiley5-Apr-10 9:11 
GeneralRe: The Illusion of a Choice Pin
Andrew Rissing5-Apr-10 9:24
Andrew Rissing5-Apr-10 9:24 
GeneralRe: The Illusion of a Choice Pin
supercat95-Apr-10 11:00
supercat95-Apr-10 11:00 
GeneralRe: The Illusion of a Choice Pin
dojohansen8-Apr-10 2:30
dojohansen8-Apr-10 2:30 
GeneralRe: The Illusion of a Choice Pin
PIEBALDconsult5-Apr-10 9:36
mvePIEBALDconsult5-Apr-10 9:36 

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.