Click here to Skip to main content
13,555,266 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: Genuine Message on r/compsci (now deleted) Pin
OriginalGriff10-Jan-18 3:53
protectorOriginalGriff10-Jan-18 3:53 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
Wastedtalent10-Jan-18 4:35
professionalWastedtalent10-Jan-18 4:35 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
GuyThiebaut11-Jan-18 21:34
memberGuyThiebaut11-Jan-18 21:34 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
Richard Deeming12-Jan-18 2:05
mvpRichard Deeming12-Jan-18 2:05 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
Jon McKee27-Jan-18 17:38
professionalJon McKee27-Jan-18 17:38 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
Brisingr Aerowing14-Jan-18 23:38
professionalBrisingr Aerowing14-Jan-18 23:38 
GeneralRe: Genuine Message on r/compsci (now deleted) Pin
Hooga Booga29-Jan-18 3:40
memberHooga Booga29-Jan-18 3:40 
RantI failed to predict this one...new csv format Pin
kmoorevs1-Dec-17 10:56
memberkmoorevs1-Dec-17 10:56 
I've been importing from text files, spreadsheets, etc. for over 18 years now. Just when you think you've seen it all a client brings you this:
Each line of a *.csv file starts and ends with double-quotes. OMG | :OMG: Oh yes, we've had handling in place for many years to deal with embedded double-quotes in csv files (generally a sign of formatted numbers)...basically by stripping the formatting between pairs of double-quotes. It's worked great for many years until now...where it unfortunately removed all the commas leaving a big mess...not good! Dead | X| Of course, it's my fault! Sigh | :sigh:

It was an easy fix, but I'm still shaking my head over the fact that their programmer who wrote that export told me that he didn't know why it was getting formatted that way, and that it looked fine to him. Hmmm | :| (due to the fact that the double-quotes didn't show up in Excel...nevermind the fact that column A contained a comma-separated list of the items!)

I must be getting too old to argue, instantly agreed that it was my problem, fixed, tested, signed, sealed and delivered in < 30 minutes. Jpb security I guess! Laugh | :laugh:
"Go forth into the source" - Neal Morse

GeneralRe: I failed to predict this one...new csv format Pin
PIEBALDconsult1-Dec-17 12:47
protectorPIEBALDconsult1-Dec-17 12:47 
GeneralRe: I failed to predict this one...new csv format Pin
Rob Grainger10-Dec-17 12:36
memberRob Grainger10-Dec-17 12:36 
GeneralRe: I failed to predict this one...new csv format Pin
PIEBALDconsult10-Dec-17 12:58
protectorPIEBALDconsult10-Dec-17 12:58 
PraiseRe: I failed to predict this one...new csv format Pin
kmoorevs11-Dec-17 9:02
memberkmoorevs11-Dec-17 9:02 
GeneralRe: I failed to predict this one...new csv format Pin
Brisingr Aerowing1-Dec-17 13:39
professionalBrisingr Aerowing1-Dec-17 13:39 
GeneralRe: I failed to predict this one...new csv format Pin
kmoorevs2-Dec-17 7:58
memberkmoorevs2-Dec-17 7:58 
GeneralRe: I failed to predict this one...new csv format Pin
Ron Anders1-Dec-17 15:02
memberRon Anders1-Dec-17 15:02 
GeneralRe: I failed to predict this one...new csv format Pin
Jeremy Falcon1-Dec-17 16:57
professionalJeremy Falcon1-Dec-17 16:57 
GeneralRe: I failed to predict this one...new csv format Pin
Duncan Edwards Jones1-Dec-17 21:44
professionalDuncan Edwards Jones1-Dec-17 21:44 
GeneralRe: I failed to predict this one...new csv format Pin
kmoorevs2-Dec-17 7:36
memberkmoorevs2-Dec-17 7:36 
GeneralRe: I failed to predict this one...new csv format Pin
Duncan Edwards Jones2-Dec-17 10:02
professionalDuncan Edwards Jones2-Dec-17 10:02 
GeneralRe: I failed to predict this one...new csv format Pin
Tim Carmichael13-Dec-17 3:01
memberTim Carmichael13-Dec-17 3:01 
GeneralRe: I failed to predict this one...new csv format Pin
kmoorevs13-Dec-17 3:06
memberkmoorevs13-Dec-17 3:06 
GeneralRe: I failed to predict this one...new csv format Pin
David A. Gray2-Dec-17 20:06
memberDavid A. Gray2-Dec-17 20:06 
GeneralRe: I failed to predict this one...new csv format Pin
Fueled By Caffeine15-Dec-17 6:16
memberFueled By Caffeine15-Dec-17 6:16 
GeneralRe: I failed to predict this one...new csv format Pin
kmoorevs15-Dec-17 7:54
memberkmoorevs15-Dec-17 7:54 
GeneralRe: I failed to predict this one...new csv format Pin
Ericcodejob7-Jan-18 9:23
memberEriccodejob7-Jan-18 9:23 

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.


Advertise | Privacy |
Web01-2016 | 2.8.180515.1 | Last Updated 24 May 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid