Click here to Skip to main content
15,867,686 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 10:53
professionaljsc423-Jan-23 10:53 
GeneralRe: Classic FORTRAN Pin
Peter_in_27803-Jan-23 11:07
professionalPeter_in_27803-Jan-23 11:07 
GeneralRe: Classic FORTRAN Pin
jsc423-Jan-23 23:25
professionaljsc423-Jan-23 23:25 
GeneralRe: Classic FORTRAN Pin
trønderen3-Jan-23 16:54
trønderen3-Jan-23 16:54 
GeneralRe: Classic FORTRAN Pin
lewist574-Jan-23 5:27
lewist574-Jan-23 5:27 
GeneralRe: Classic FORTRAN Pin
trønderen4-Jan-23 8:53
trønderen4-Jan-23 8:53 
GeneralRe: Classic FORTRAN Pin
lewist576-Jan-23 16:02
lewist576-Jan-23 16:02 
GeneralLong filename problems in 2022? Pin
honey the codewitch24-Oct-22 14:40
mvahoney the codewitch24-Oct-22 14: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 7:21
professionalMarkTJohnson25-Oct-22 7:21 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch25-Oct-22 8:22
mvahoney the codewitch25-Oct-22 8:22 
GeneralRe: Long filename problems in 2022? Pin
Jörgen Andersson25-Oct-22 21:28
professionalJörgen Andersson25-Oct-22 21:28 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch26-Oct-22 0:43
mvahoney the codewitch26-Oct-22 0:43 
GeneralRe: Long filename problems in 2022? Pin
Nelek4-Nov-22 15:28
protectorNelek4-Nov-22 15:28 
GeneralRe: Long filename problems in 2022? Pin
honey the codewitch4-Nov-22 15:49
mvahoney the codewitch4-Nov-22 15:49 
GeneralRe: Long filename problems in 2022? Pin
Nelek5-Nov-22 10:26
protectorNelek5-Nov-22 10:26 
GeneralRe: Long filename problems in 2022? Pin
Gary R. Wheeler10-Dec-22 6:33
Gary R. Wheeler10-Dec-22 6:33 
GeneralRe: Long filename problems in 2022? Pin
trønderen5-Nov-22 4:44
trønderen5-Nov-22 4:44 
GeneralRe: Long filename problems in 2022? Pin
Nelek5-Nov-22 10:25
protectorNelek5-Nov-22 10:25 
GeneralRe: Long filename problems in 2022? Pin
englebart15-Jan-23 10:05
professionalenglebart15-Jan-23 10:05 
GeneralRe: Long filename problems in 2022? Pin
JohnDG523-Jan-23 3:17
JohnDG523-Jan-23 3:17 
AnswerRe: Long filename problems in 2022? Pin
Emilie Kelleher27-Nov-22 21:52
Emilie Kelleher27-Nov-22 21:52 
NewsStrange apparatus Pin
RickZeeland20-Oct-22 19:09
mveRickZeeland20-Oct-22 19:09 
GeneralRe: Strange apparatus Pin
peterkmx21-Oct-22 1:01
professionalpeterkmx21-Oct-22 1:01 
GeneralRe: Strange apparatus Pin
MarkTJohnson21-Oct-22 3:15
professionalMarkTJohnson21-Oct-22 3:15 
GeneralRe: Strange apparatus Pin
RickZeeland21-Oct-22 3:26
mveRickZeeland21-Oct-22 3: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.