Click here to Skip to main content
15,897,187 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 Use Member Variables Pin
Nagy Vilmos19-Jul-10 21:36
professionalNagy Vilmos19-Jul-10 21:36 
GeneralRe: How to Use Member Variables Pin
Luc Pattyn19-Jul-10 23:20
sitebuilderLuc Pattyn19-Jul-10 23:20 
GeneralRe: How to Use Member Variables Pin
Robert Rohde20-Jul-10 2:05
Robert Rohde20-Jul-10 2:05 
GeneralRe: How to Use Member Variables Pin
Eddy Vluggen20-Jul-10 2:24
professionalEddy Vluggen20-Jul-10 2:24 
AnswerRe: How to Use Member Variables Pin
Luc Pattyn20-Jul-10 2:58
sitebuilderLuc Pattyn20-Jul-10 2:58 
GeneralRe: How to Use Member Variables Pin
ely_bob22-Jul-10 3:41
professionalely_bob22-Jul-10 3:41 
GeneralRe: How to Use Member Variables Pin
Robert Rohde20-Jul-10 5:35
Robert Rohde20-Jul-10 5:35 
GeneralRe: How to Use Member Variables Pin
Rob Grainger21-Jul-10 23:42
Rob Grainger21-Jul-10 23:42 
Funny, I have the opposite viewpoint. I regard static members of any type - including such methods - as a code smell. If a method has requires no access to an instance's state, is it really a method at all, are we really doing object-oriented programming here?

Gilad Bracha's Room 101[^] has some excellent posts on the problems of static. Particular, look for "Constructors considered harmful" (they're a form of static method), and "Cutting out static".
GeneralRe: How to Use Member Variables PinPopular
Gary Wheeler22-Jul-10 2:18
Gary Wheeler22-Jul-10 2:18 
GeneralRe: How to Use Member Variables Pin
Anna-Jayne Metcalfe22-Jul-10 7:54
Anna-Jayne Metcalfe22-Jul-10 7:54 
GeneralRe: How to Use Member Variables Pin
Gary Wheeler22-Jul-10 8:08
Gary Wheeler22-Jul-10 8:08 
GeneralRe: How to Use Member Variables Pin
Anna-Jayne Metcalfe22-Jul-10 8:56
Anna-Jayne Metcalfe22-Jul-10 8:56 
GeneralRe: How to Use Member Variables Pin
Gary Wheeler22-Jul-10 9:02
Gary Wheeler22-Jul-10 9:02 
GeneralRe: How to Use Member Variables Pin
Anna-Jayne Metcalfe22-Jul-10 11:20
Anna-Jayne Metcalfe22-Jul-10 11:20 
GeneralRe: How to Use Member Variables Pin
Member 422705822-Jul-10 14:28
Member 422705822-Jul-10 14:28 
GeneralRe: How to Use Member Variables Pin
Nagy Vilmos24-Jul-10 21:52
professionalNagy Vilmos24-Jul-10 21:52 
GeneralRe: How to Use Member Variables Pin
Anna-Jayne Metcalfe24-Jul-10 21:55
Anna-Jayne Metcalfe24-Jul-10 21:55 
GeneralRe: How to Use Member Variables Pin
Rob Grainger20-Jul-10 1:21
Rob Grainger20-Jul-10 1:21 
GeneralRe: How to Use Member Variables Pin
RugbyLeague20-Jul-10 4:09
RugbyLeague20-Jul-10 4:09 
GeneralRe: How to Use Member Variables Pin
leppie20-Jul-10 20:23
leppie20-Jul-10 20:23 
GeneralRe: How to Use Member Variables Pin
S. Senthil Kumar25-Jul-10 9:15
S. Senthil Kumar25-Jul-10 9:15 
GeneralString.Format??? PinPopular
Not Active8-Jul-10 13:04
mentorNot Active8-Jul-10 13:04 
GeneralRe: String.Format??? Pin
User 27431628-Jul-10 20:50
User 27431628-Jul-10 20:50 
GeneralRe: String.Format??? Pin
oggenok649-Jul-10 0:33
oggenok649-Jul-10 0:33 
GeneralRe: String.Format??? Pin
User 27431629-Jul-10 0:44
User 27431629-Jul-10 0: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.