Click here to Skip to main content
15,888,351 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: Possibly the hottest mess I've seen in some time Pin
DrWalter PE26-Apr-23 18:38
professionalDrWalter PE26-Apr-23 18:38 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey3-Apr-23 0:31
mveMike Hankey3-Apr-23 0:31 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
honey the codewitch3-Apr-23 7:40
mvahoney the codewitch3-Apr-23 7:40 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey3-Apr-23 8:05
mveMike Hankey3-Apr-23 8:05 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mircea Neacsu11-Apr-23 12:15
Mircea Neacsu11-Apr-23 12:15 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey11-Apr-23 12:35
mveMike Hankey11-Apr-23 12:35 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
DrWalter PE26-Apr-23 12:46
professionalDrWalter PE26-Apr-23 12:46 
GeneralRe: Possibly the hottest mess I've seen in some time Pin
Mike Hankey26-Apr-23 12:57
mveMike Hankey26-Apr-23 12:57 
GeneralI question Microsoft's documentation Pin
PIEBALDconsult31-Mar-23 5:13
mvePIEBALDconsult31-Mar-23 5:13 
GeneralRe: I question Microsoft's documentation Pin
RainHat3-Apr-23 4:06
RainHat3-Apr-23 4:06 
GeneralRe: I question Microsoft's documentation Pin
PIEBALDconsult3-Apr-23 4:42
mvePIEBALDconsult3-Apr-23 4:42 
GeneralRe: I question Microsoft's documentation Pin
Gary R. Wheeler28-Apr-23 11:45
Gary R. Wheeler28-Apr-23 11:45 
GeneralGDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 8:29
mvahoney the codewitch18-Mar-23 8:29 
GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 12:45
mvaraddevus18-Mar-23 12:45 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 12:52
mvahoney the codewitch18-Mar-23 12:52 
GeneralRe: GDMA on the ESP32S3 Pin
raddevus18-Mar-23 12:59
mvaraddevus18-Mar-23 12:59 
GeneralRe: GDMA on the ESP32S3 Pin
honey the codewitch18-Mar-23 13:31
mvahoney the codewitch18-Mar-23 13:31 
GeneralI must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 13:47
mvePIEBALDconsult17-Mar-23 13:47 
GeneralRe: I must be doing something wrong... Pin
0x01AA17-Mar-23 14:31
mve0x01AA17-Mar-23 14:31 
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 14:57
trønderen17-Mar-23 14:57 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult17-Mar-23 16:05
mvePIEBALDconsult17-Mar-23 16:05 
I'm twenty years OpenVMS clean now. (Other than some minor dabbling, which I can't even do now that HP has killed the hobbyist program again.)

A similar process I have is IO-bound -- writing the results to disk -- so multi-threading won't help with that one.

But this one is writing to the database (SQL Server, SqlBulkCopy).
* Read 1000 objects
* Prepare each object to write to the database
* Write the objects to the database
* Repeat as needed (250000+ total objects)
I timed the reading and the writing portions, the total time for writing was very low.

The reading part is reading DNS data from domain controllers via LDAP, so I was expecting that the reading was taking the time, so I am astonished that I'm not seeing much time spent doing the actual reading.

Anyway, it can wait for Monday.
GeneralRe: I must be doing something wrong... Pin
trønderen17-Mar-23 17:17
trønderen17-Mar-23 17:17 
GeneralRe: I must be doing something wrong... Pin
PIEBALDconsult18-Mar-23 6:15
mvePIEBALDconsult18-Mar-23 6:15 
GeneralRe: I must be doing something wrong... Pin
GuyThiebaut19-Mar-23 22:02
professionalGuyThiebaut19-Mar-23 22:02 
GeneralRe: I must be doing something wrong... Pin
Daniel Pfeffer19-Mar-23 23:07
professionalDaniel Pfeffer19-Mar-23 23:07 

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.