Click here to Skip to main content
15,564,315 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: Classic FORTRAN Pin
jsc423-Jan-23 11:53
professionaljsc423-Jan-23 11:53 
GeneralRe: Classic FORTRAN Pin
Peter_in_27803-Jan-23 12:07
professionalPeter_in_27803-Jan-23 12:07 
GeneralRe: Classic FORTRAN Pin
jsc424-Jan-23 0:25
professionaljsc424-Jan-23 0:25 
GeneralRe: Classic FORTRAN Pin
trønderen3-Jan-23 17:54
trønderen3-Jan-23 17:54 
GeneralRe: Classic FORTRAN Pin
lewist574-Jan-23 6:27
lewist574-Jan-23 6:27 
GeneralRe: Classic FORTRAN Pin
trønderen4-Jan-23 9:53
trønderen4-Jan-23 9:53 
GeneralRe: Classic FORTRAN Pin
lewist576-Jan-23 17:02
lewist576-Jan-23 17:02 
GeneralLong filename problems in 2022? Pin
honey the codewitch24-Oct-22 15:40
mvahoney the codewitch24-Oct-22 15:40 
I just spent two hours debugging a problem with my handheld NES emulator (ESP32 based) not loading a bunch of the ROMs that I have.

When I read certain files I was getting nothing but zeroes back. The file was the right size but it's like all the data was zeroed.

I was pulling my hair out because the same copy of the file on my PC read fine. The one on the SD card I copied from the PC did not.

Turns out the copy was bad somehow. Nothing wrong with my code. However, it seems like (I think, but I need to test more) that if I copy them with long names intact they don't work. If I rename them to a shorter name first, they work. Either way, everything looks like it works until you open the file.
To err is human. Fortune favors the monsters.

GeneralRe: Long filename problems in 2022? Pin
MarkTJohnson25-Oct-22 8:21
professionalMarkTJohnson25-Oct-22 8:21 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch25-Oct-22 9:22
mvahoney the codewitch25-Oct-22 9:22 
GeneralRe: Long filename problems in 2022? Pin
Jörgen Andersson25-Oct-22 22:28
professionalJörgen Andersson25-Oct-22 22:28 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch26-Oct-22 1:43
mvahoney the codewitch26-Oct-22 1:43 
GeneralRe: Long filename problems in 2022? Pin
Nelek4-Nov-22 16:28
protectorNelek4-Nov-22 16:28 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch4-Nov-22 16:49
mvahoney the codewitch4-Nov-22 16:49 
GeneralRe: Long filename problems in 2022? Pin
Nelek5-Nov-22 11:26
protectorNelek5-Nov-22 11:26 
GeneralRe: Long filename problems in 2022? Pin
Gary R. Wheeler10-Dec-22 7:33
Gary R. Wheeler10-Dec-22 7:33 
GeneralRe: Long filename problems in 2022? Pin
trønderen5-Nov-22 5:44
trønderen5-Nov-22 5:44 
GeneralRe: Long filename problems in 2022? Pin
Nelek5-Nov-22 11:25
protectorNelek5-Nov-22 11:25 
GeneralRe: Long filename problems in 2022? Pin
englebart15-Jan-23 11:05
professionalenglebart15-Jan-23 11:05 
GeneralRe: Long filename problems in 2022? Pin
JohnDG523-Jan-23 4:17
JohnDG523-Jan-23 4:17 
AnswerRe: Long filename problems in 2022? Pin
Emilie Kelleher27-Nov-22 22:52
Emilie Kelleher27-Nov-22 22:52 
NewsStrange apparatus Pin
RickZeeland20-Oct-22 20:09
mveRickZeeland20-Oct-22 20:09 
GeneralRe: Strange apparatus Pin
peterkm21-Oct-22 2:01
peterkm21-Oct-22 2:01 
GeneralRe: Strange apparatus Pin
MarkTJohnson21-Oct-22 4:15
professionalMarkTJohnson21-Oct-22 4:15 
GeneralRe: Strange apparatus Pin
RickZeeland21-Oct-22 4:26
mveRickZeeland21-Oct-22 4:26 

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.