Click here to Skip to main content
15,886,963 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: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 9:02
mvaraddevus27-Sep-23 9:02 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Juan Pablo Reyes Altamirano27-Sep-23 8:31
Juan Pablo Reyes Altamirano27-Sep-23 8:31 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus27-Sep-23 9:08
mvaraddevus27-Sep-23 9:08 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
Nelek27-Sep-23 9:26
protectorNelek27-Sep-23 9:26 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
ChristianLavigne29-Sep-23 2:33
professionalChristianLavigne29-Sep-23 2:33 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
raddevus29-Sep-23 10:15
mvaraddevus29-Sep-23 10:15 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
PIEBALDconsult29-Sep-23 9:33
mvePIEBALDconsult29-Sep-23 9:33 
GeneralRe: The changing landscape of OOP (from class to struct) Pin
honey the codewitch4-Oct-23 4:56
mvahoney the codewitch4-Oct-23 4:56 
While I can see the value in some corner cases perhaps, I feel like the acceptor, such as a parameter name on a method should describe what it accepts.

Maybe it's just because I grew up with that, but putting the units for example, on the data type itself seems just ... unusual, and kind of awkward to me.

Maybe that's not the best argument against it, but I place a lot of value on being able to lean on habits, so long as the habits aren't actually counterproductive. All else considered equal, I place more value in doing something in a way that's supported by "muscle memory" than I do on implementing something perhaps in a more formalized way, and the reason is, if you can lean into your habits, as long as you develop decent habits you get less bugs and more productivity.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

RantThe Day I Learned to Deal With the BOM Pin
kmoorevs15-Sep-23 9:21
kmoorevs15-Sep-23 9:21 
GeneralRe: The Day I Learned to Hate the BOM Pin
trønderen15-Sep-23 9:53
trønderen15-Sep-23 9:53 
GeneralRe: The Day I Learned to Hate the BOM Pin
kmoorevs17-Sep-23 12:25
kmoorevs17-Sep-23 12:25 
GeneralRe: The Day I Learned to Hate the BOM Pin
PIEBALDconsult20-Sep-23 12:20
mvePIEBALDconsult20-Sep-23 12:20 
GeneralRe: The Day I Learned to Deal With the BOM Pin
Richard MacCutchan17-Sep-23 22:03
mveRichard MacCutchan17-Sep-23 22:03 
GeneralRe: The Day I Learned to Deal With the BOM Pin
PIEBALDconsult20-Sep-23 12:18
mvePIEBALDconsult20-Sep-23 12:18 
GeneralRe: The Day I Learned to Deal With the BOM Pin
honey the codewitch4-Oct-23 4:59
mvahoney the codewitch4-Oct-23 4:59 
Generaljsfiddle nightmare: Schrodinger's lost code Pin
raddevus4-Aug-23 4:45
mvaraddevus4-Aug-23 4:45 
GeneralRe: jsfiddle nightmare: Schrodinger's lost code Pin
Richard Deeming4-Aug-23 4:49
mveRichard Deeming4-Aug-23 4:49 
GeneralRe: jsfiddle nightmare: Schrodinger's lost code Pin
raddevus4-Aug-23 4:59
mvaraddevus4-Aug-23 4:59 
PraiseRe: jsfiddle nightmare: Schrodinger's lost code Pin
Slacker00729-Aug-23 6:43
professionalSlacker00729-Aug-23 6:43 
GeneralRe: jsfiddle nightmare: Schrodinger's lost code Pin
Gary R. Wheeler7-Sep-23 13:01
Gary R. Wheeler7-Sep-23 13:01 
JokeRe: jsfiddle nightmare: Schrodinger's lost code Pin
Peter_in_27807-Sep-23 13:15
professionalPeter_in_27807-Sep-23 13:15 
GeneralRe: jsfiddle nightmare: Schrodinger's lost code Pin
Richard Deeming7-Sep-23 21:32
mveRichard Deeming7-Sep-23 21:32 
GeneralRe: jsfiddle nightmare: Schrodinger's lost code Pin
Jeremy Falcon25-Sep-23 8:04
professionalJeremy Falcon25-Sep-23 8:04 
GeneralMicrosoft IIS FTP docs Pin
raddevus7-Jul-23 8:56
mvaraddevus7-Jul-23 8:56 
GeneralRe: Microsoft IIS FTP docs Pin
honey the codewitch26-Jul-23 9:32
mvahoney the codewitch26-Jul-23 9:32 

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.