Click here to Skip to main content
15,898,939 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: 'Item': member names cannot be the same as their enclosing type Pin
Thomas Weller22-Nov-08 16:54
Thomas Weller22-Nov-08 16:54 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Redwan Albougha22-Nov-08 22:15
Redwan Albougha22-Nov-08 22:15 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Thomas Weller23-Nov-08 1:57
Thomas Weller23-Nov-08 1:57 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Redwan Albougha23-Nov-08 2:22
Redwan Albougha23-Nov-08 2:22 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Rob Graham23-Nov-08 3:46
Rob Graham23-Nov-08 3:46 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Redwan Albougha23-Nov-08 3:52
Redwan Albougha23-Nov-08 3:52 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
PIEBALDconsult23-Nov-08 5:57
mvePIEBALDconsult23-Nov-08 5:57 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Paul Conrad23-Nov-08 6:45
professionalPaul Conrad23-Nov-08 6:45 
PIEBALDconsult wrote:
Why not? If I'm writing a Fibonacci method why shouldn't I put it in a class named Fibonacci?


Exactly. Why not? If programming the class in C++, when you reference it you use something like Fibonacci::Fibonacci, which has always been clear to me what's going on.

"The clue train passed his station without stopping." - John Simmons / outlaw programmer

"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham


GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron23-Nov-08 7:22
WilliamSauron23-Nov-08 7:22 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Paul Conrad23-Nov-08 7:26
professionalPaul Conrad23-Nov-08 7:26 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron23-Nov-08 7:34
WilliamSauron23-Nov-08 7:34 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Paul Conrad23-Nov-08 7:38
professionalPaul Conrad23-Nov-08 7:38 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
PIEBALDconsult24-Nov-08 5:41
mvePIEBALDconsult24-Nov-08 5:41 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron24-Nov-08 10:43
WilliamSauron24-Nov-08 10:43 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
PIEBALDconsult24-Nov-08 15:12
mvePIEBALDconsult24-Nov-08 15:12 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron24-Nov-08 21:27
WilliamSauron24-Nov-08 21:27 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
PIEBALDconsult25-Nov-08 3:20
mvePIEBALDconsult25-Nov-08 3:20 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron25-Nov-08 4:05
WilliamSauron25-Nov-08 4:05 
GeneralRe: 'Item': member names cannot be the same as their enclosing type [modified] Pin
PIEBALDconsult25-Nov-08 7:51
mvePIEBALDconsult25-Nov-08 7:51 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
leppie26-Nov-08 2:12
leppie26-Nov-08 2:12 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron26-Nov-08 9:08
WilliamSauron26-Nov-08 9:08 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
leppie26-Nov-08 9:15
leppie26-Nov-08 9:15 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
WilliamSauron26-Nov-08 9:20
WilliamSauron26-Nov-08 9:20 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
Redwan Albougha26-Nov-08 8:16
Redwan Albougha26-Nov-08 8:16 
GeneralRe: 'Item': member names cannot be the same as their enclosing type Pin
leppie26-Nov-08 2:10
leppie26-Nov-08 2:10 

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.