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

 
GeneralFlags constants and new version Pin
Rama Krishna Vavilala15-Nov-07 14:34
Rama Krishna Vavilala15-Nov-07 14:34 
GeneralRe: Flags constants and new version Pin
CPallini15-Nov-07 23:38
mveCPallini15-Nov-07 23:38 
GeneralHow many things are wrong with this code? [modified] Pin
Leisuresuit Larry15-Nov-07 9:35
Leisuresuit Larry15-Nov-07 9:35 
GeneralRe: How many things are wrong with this code? Pin
Pete O'Hanlon15-Nov-07 10:07
mvePete O'Hanlon15-Nov-07 10:07 
GeneralRe: How many things are wrong with this code? Pin
Vasudevan Deepak Kumar15-Nov-07 21:34
Vasudevan Deepak Kumar15-Nov-07 21:34 
GeneralRe: How many things are wrong with this code? Pin
Cristian Amarie16-Nov-07 21:50
Cristian Amarie16-Nov-07 21:50 
GeneralMicrosofts crippled Java Pin
jhwurmbach19-Nov-07 1:55
jhwurmbach19-Nov-07 1:55 
GeneralRe: How many things are wrong with this code? Pin
DavidNohejl15-Nov-07 12:22
DavidNohejl15-Nov-07 12:22 
1) I don't like that "Interface" suffix. And that Invitation is an interface (why?). And what it does anyway? Can't say without complete definition, but IInvitationSender sounds better to me.
2) sendMulipleInvitations should be sendMultipleInvitations (unless you did that typo while posting)
3) listemailAddresses - get rid of that "list" prefix
4) um, what the hell sendMulipleInvitations returns? All invitations that were sucessfully send? Or else I dunno... Either the method has wrong name, or strange return type. Anyway, yeah, List of addresses, hmm better use some EmailAddressCollectionn or List<EmailAddress> (assuming there is class like that, otherwise something like StringCollection).



[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

GeneralRe: How many things are wrong with this code? Pin
Luc Pattyn15-Nov-07 13:01
sitebuilderLuc Pattyn15-Nov-07 13:01 
Generalcan somebody explain the logic of this? [modified] Pin
Dogan Akhan12-Nov-07 22:19
Dogan Akhan12-Nov-07 22:19 
AnswerRe: can somebody explain the logic of this? Pin
Baconbutty12-Nov-07 22:29
Baconbutty12-Nov-07 22:29 
GeneralRe: can somebody explain the logic of this? Pin
NormDroid13-Nov-07 9:09
professionalNormDroid13-Nov-07 9:09 
AnswerRe: can somebody explain the logic of this? Pin
leppie12-Nov-07 22:57
leppie12-Nov-07 22:57 
AnswerRe: can somebody explain the logic of this? Pin
Shpendh12-Nov-07 23:19
Shpendh12-Nov-07 23:19 
GeneralRe: can somebody explain the logic of this? Pin
Paddy Boyd13-Nov-07 1:15
Paddy Boyd13-Nov-07 1:15 
GeneralRe: can somebody explain the logic of this? Pin
KarstenK14-Nov-07 21:41
mveKarstenK14-Nov-07 21:41 
GeneralI'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:07
mvePete O'Hanlon12-Nov-07 2:07 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 2:31
Chris Meech12-Nov-07 2:31 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:33
mvePete O'Hanlon12-Nov-07 2:33 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 2:43
Chris Meech12-Nov-07 2:43 
GeneralRe: I'm speechless about this piece of code. Pin
Ri Qen-Sin12-Nov-07 15:20
Ri Qen-Sin12-Nov-07 15:20 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 21:50
mvePete O'Hanlon12-Nov-07 21:50 
GeneralRe: I'm speechless about this piece of code. Pin
Vasudevan Deepak Kumar13-Nov-07 2:02
Vasudevan Deepak Kumar13-Nov-07 2:02 
GeneralRe: I'm speechless about this piece of code. Pin
Paddy Boyd12-Nov-07 2:39
Paddy Boyd12-Nov-07 2:39 
GeneralRe:STACK OVERFLOW Pin
Chris Meech12-Nov-07 2:44
Chris Meech12-Nov-07 2:44 

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.