Click here to Skip to main content
15,904,297 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: auto-usings in Visual Studio Pin
englebart25-Oct-23 13:07
professionalenglebart25-Oct-23 13:07 
GeneralDigital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
RickZeeland10-Oct-23 0:08
mveRickZeeland10-Oct-23 0:08 
GeneralRe: Digital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
trønderen10-Oct-23 4:43
trønderen10-Oct-23 4:43 
GeneralRe: Digital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
RickZeeland10-Oct-23 5:59
mveRickZeeland10-Oct-23 5:59 
GeneralThe changing landscape of OOP (from class to struct) PinPopular
raddevus25-Sep-23 6:04
mvaraddevus25-Sep-23 6:04 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Greg Utas25-Sep-23 7:04
professionalGreg Utas25-Sep-23 7:04 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 8:11
mvaraddevus25-Sep-23 8:11 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Greg Utas25-Sep-23 13:24
professionalGreg Utas25-Sep-23 13:24 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon25-Sep-23 7:37
professionalJeremy Falcon25-Sep-23 7:37 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 8:06
mvaraddevus25-Sep-23 8:06 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon25-Sep-23 8:13
professionalJeremy Falcon25-Sep-23 8:13 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 8:35
mvaraddevus25-Sep-23 8:35 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon25-Sep-23 12:26
professionalJeremy Falcon25-Sep-23 12:26 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 9:06
protectorNelek27-Sep-23 9:06 
QuestionRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon27-Sep-23 11:59
professionalJeremy Falcon27-Sep-23 11:59 
AnswerRe: The changing landscape of OOP (from class to struct) Pin
Nelek28-Sep-23 10:06
protectorNelek28-Sep-23 10:06 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Matt Bond27-Sep-23 4:37
Matt Bond27-Sep-23 4:37 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
trønderen25-Sep-23 9:59
trønderen25-Sep-23 9:59 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
trønderen25-Sep-23 8:41
trønderen25-Sep-23 8:41 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 10:15
mvaraddevus25-Sep-23 10:15 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Rick York25-Sep-23 10:25
mveRick York25-Sep-23 10:25 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 9:08
protectorNelek27-Sep-23 9:08 
PraiseRe: The changing landscape of OOP (from class to struct) Pin
Gary Wheeler27-Sep-23 1:36
Gary Wheeler27-Sep-23 1:36 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon27-Sep-23 2:36
professionalJeremy Falcon27-Sep-23 2:36 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Chris Baker 202127-Sep-23 8:36
Chris Baker 202127-Sep-23 8:36 
Is "prefer composition over inheritance" functional? I'm not sure that it is. I think it's simply another OO approach to code re-use. Personally, I'm not against a certain level of inheritence, but I much prefer composing objects for functionality.

I'm not sure if I'm missing something but what has a sealed class to do with immutability. A class is immutable if you can't change it's data, a sealed class means it can't be inherited from.

I agree on the C# funtion point, it annoys me how everything needds to now be functional, I chose C# for it's OO properties, when I want to do funtional programming I'll use F#. (it'll be a pretty cold day in hell for that to happen though Laugh | :laugh: )

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.