Click here to Skip to main content
15,886,873 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: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 
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 
Is that the same day as you saw BOM for the first time?

What is wrong with BOM? That you don't want to see it at all? That for this specific file, it "isn't needed", because all it contains is 7-bit US-ASCII?

You may of course declare that "I handle 7-bit US-ASCII only, so don't disturb me with anything else - Unicode is not my business, even when the characters are limited to US-ASCII. Just bug off with anything else!"

Fair enough, but then the software you produce is not for me. Most likely not for very many people outside the English speaking world. You are most certainly expected to handle BOM and Unicode/UTF8 today. If you are handling CSV, your are supposed to understand that in major parts of the world, it is five comma three, not five point three.

For the other stuff you mention: Fair enough; that should be easy to handle. If you haven't yet discovered that there are lots of variations in CSV formats (e.g. they are certainly not always comma separated, like in cultures where the decimal separator is not the point), take a look at the import options in Excel: It has handled this stuff for at least 15 year - I'd guess a lot more. Accept reality as it is, not as if reality was a problem.

And so on. You are free to put up a sign at your door: "Warning: No non-American data is handled by our software!" Actually, I'd be happy to know in advance, rather than discovering after I have signed a contract.
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 
GeneralOne of the worst routines I've ever written. Shame on me? Pin
honey the codewitch21-Jun-23 3:16
mvahoney the codewitch21-Jun-23 3:16 
GeneralRe: One of the worst routines I've ever written. Shame on me? Pin
charlieg27-Jun-23 15:30
charlieg27-Jun-23 15:30 

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.