Click here to Skip to main content
15,887,485 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: Thanks for the trip down memory lane Pin
englebart2-Sep-22 3:51
professionalenglebart2-Sep-22 3:51 
GeneralRe: Thanks for the trip down memory lane Pin
Kirk 1038982111-Feb-21 1:00
Kirk 1038982111-Feb-21 1:00 
GeneralRe: Thanks for the trip down memory lane Pin
Wayne Welpe11-Feb-21 2:17
Wayne Welpe11-Feb-21 2:17 
GeneralRe: Thanks for the trip down memory lane Pin
Gary R. Wheeler19-Mar-21 13:58
Gary R. Wheeler19-Mar-21 13:58 
GeneralRe: Thanks for the trip down memory lane Pin
RDM Jr1-Jan-22 5:20
RDM Jr1-Jan-22 5:20 
Generalad hoc Programming PinPopular
raddevus6-Jan-21 9:19
mvaraddevus6-Jan-21 9:19 
GeneralRe: ad hoc Programming Pin
  Forogar  6-Jan-21 9:26
professional  Forogar  6-Jan-21 9:26 
GeneralRe: ad hoc Programming PinPopular
Ryan Peden6-Jan-21 10:47
professionalRyan Peden6-Jan-21 10:47 
C# sort of has it too, with deconstructing:

Deconstructing tuples and other types | Microsoft Docs[^]

It's quick and easy to do with tuples, but you can add any number of Deconstruct methods to a class as well. I see destructuring (in any language) as another tool in your toolbox that can be helpful if used judiciously. Of course, that depends on people having good taste and knowing when to use something, and when not to. Dead | X|

I also find it mildly amusing that every language seems to be slowly implementing features Common Lisp had decades ago - destructuring bind, in this case. I'm convinced that Lisp programmers are playing the long game and aiming to achieve ultimate victory by very gradually changing every programming language into Lisp. Maybe some variant of Greenspun's Tenth Rule in action here. Laugh | :laugh:
GeneralRe: ad hoc Programming Pin
raddevus6-Jan-21 10:54
mvaraddevus6-Jan-21 10:54 
GeneralRe: ad hoc Programming PinPopular
Ryan Peden6-Jan-21 11:04
professionalRyan Peden6-Jan-21 11:04 
GeneralRe: ad hoc Programming Pin
Jon McKee6-Jan-21 11:29
professionalJon McKee6-Jan-21 11:29 
GeneralRe: ad hoc Programming Pin
honey the codewitch6-Jan-21 14:45
mvahoney the codewitch6-Jan-21 14:45 
GeneralRe: ad hoc Programming Pin
Jon McKee6-Jan-21 14:48
professionalJon McKee6-Jan-21 14:48 
GeneralRe: ad hoc Programming Pin
honey the codewitch6-Jan-21 14:49
mvahoney the codewitch6-Jan-21 14:49 
GeneralRe: ad hoc Programming Pin
Jon McKee6-Jan-21 14:58
professionalJon McKee6-Jan-21 14:58 
GeneralRe: ad hoc Programming Pin
honey the codewitch6-Jan-21 15:54
mvahoney the codewitch6-Jan-21 15:54 
GeneralRe: ad hoc Programming Pin
GuyThiebaut10-Feb-21 21:07
professionalGuyThiebaut10-Feb-21 21:07 
GeneralRe: ad hoc Programming Pin
Jon McKee11-Feb-21 0:17
professionalJon McKee11-Feb-21 0:17 
GeneralRe: ad hoc Programming Pin
Rob Grainger16-Mar-21 5:49
Rob Grainger16-Mar-21 5:49 
GeneralRe: ad hoc Programming Pin
Jon McKee16-Mar-21 10:30
professionalJon McKee16-Mar-21 10:30 
GeneralRe: ad hoc Programming Pin
Richard Deeming6-Jan-21 23:40
mveRichard Deeming6-Jan-21 23:40 
GeneralRe: ad hoc Programming Pin
Marc Clifton6-Jan-21 11:45
mvaMarc Clifton6-Jan-21 11:45 
GeneralRe: ad hoc Programming Pin
Chris Maunder5-Feb-21 14:01
cofounderChris Maunder5-Feb-21 14:01 
GeneralRe: ad hoc Programming Pin
GuyThiebaut10-Feb-21 21:06
professionalGuyThiebaut10-Feb-21 21:06 
GeneralMore clueless Web App designers? Pin
PIEBALDconsult2-Jan-21 13:05
mvePIEBALDconsult2-Jan-21 13:05 

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.