Click here to Skip to main content
15,849,907 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 14:07
professionalenglebart25-Oct-23 14:07 
GeneralDigital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
RickZeeland10-Oct-23 1:08
mveRickZeeland10-Oct-23 1:08 
GeneralRe: Digital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
trønderen10-Oct-23 5:43
trønderen10-Oct-23 5:43 
GeneralRe: Digital film cartridge adds 20 MP micro 4/3 sensor to any 35 mm film camera Pin
RickZeeland10-Oct-23 6:59
mveRickZeeland10-Oct-23 6:59 
GeneralThe changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 7:04
mvaraddevus25-Sep-23 7:04 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Greg Utas25-Sep-23 8:04
professionalGreg Utas25-Sep-23 8:04 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 9:11
mvaraddevus25-Sep-23 9:11 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Greg Utas25-Sep-23 14:24
professionalGreg Utas25-Sep-23 14:24 
In C++, there's no difference between class and a struct, so that comparison with C# is likely to be misleading. In C++, the two keywords often have different semantics by convention, but they're the same to the compiler. If you look at the STL's <chrono>, there's no way to confuse a duration in seconds with one in milliseconds. Their object wrapper precludes it.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: The changing landscape of OOP (from class to struct) PinPopular
Jeremy Falcon25-Sep-23 8:37
professionalJeremy Falcon25-Sep-23 8:37 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 9:06
mvaraddevus25-Sep-23 9:06 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon25-Sep-23 9:13
professionalJeremy Falcon25-Sep-23 9:13 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 9:35
mvaraddevus25-Sep-23 9:35 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon25-Sep-23 13:26
professionalJeremy Falcon25-Sep-23 13:26 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 10:06
protectorNelek27-Sep-23 10:06 
QuestionRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon27-Sep-23 12:59
professionalJeremy Falcon27-Sep-23 12:59 
AnswerRe: The changing landscape of OOP (from class to struct) Pin
Nelek28-Sep-23 11:06
protectorNelek28-Sep-23 11:06 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Matt Bond27-Sep-23 5:37
Matt Bond27-Sep-23 5:37 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
trønderen25-Sep-23 10:59
trønderen25-Sep-23 10:59 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
trønderen25-Sep-23 9:41
trønderen25-Sep-23 9:41 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus25-Sep-23 11:15
mvaraddevus25-Sep-23 11:15 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Rick York25-Sep-23 11:25
mveRick York25-Sep-23 11:25 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 10:08
protectorNelek27-Sep-23 10:08 
PraiseRe: The changing landscape of OOP (from class to struct) Pin
Gary Wheeler27-Sep-23 2:36
Gary Wheeler27-Sep-23 2:36 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Jeremy Falcon27-Sep-23 3:36
professionalJeremy Falcon27-Sep-23 3:36 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Chris Baker 202127-Sep-23 9:36
Chris Baker 202127-Sep-23 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.