Click here to Skip to main content
15,887,821 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: String "bitmaps" Pin
PIEBALDconsult20-Aug-10 3:13
mvePIEBALDconsult20-Aug-10 3:13 
GeneralRe: String "bitmaps" Pin
CDP180220-Aug-10 4:32
CDP180220-Aug-10 4:32 
GeneralRe: String "bitmaps" Pin
Gordon Kushner20-Aug-10 5:22
Gordon Kushner20-Aug-10 5:22 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 4:39
Richard A. Dalton20-Aug-10 4:39 
GeneralRe: String "bitmaps" Pin
Gordon Kushner20-Aug-10 5:20
Gordon Kushner20-Aug-10 5:20 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 5:53
Richard A. Dalton20-Aug-10 5:53 
GeneralRe: String "bitmaps" Pin
Gordon Kushner20-Aug-10 6:13
Gordon Kushner20-Aug-10 6:13 
GeneralRe: String "bitmaps" Pin
Rob Grainger20-Aug-10 5:56
Rob Grainger20-Aug-10 5:56 
With a shudder I remember my introduction to programming on a ZX81 with 1K RAM.
After quickly exhausting the possibilities of BASIC in a 1K program (even when programs are stored tokenized, with each keyword a single byte), I had to resort to machine code. A program then consisted of a subroutine (using GOSUB/RETURN) that POKE'd bytes into memory, reading them from hexadecimal strings stored in DATA statements such as.

10 DATA "3AFB3C2A1F"

I had to manually write these hex strings by looking up Z80 opcodes and converting registers etc into bitfields (not enough memory to run an assembler).

Once it was all in memory, I'd write it to a file (cassette-based), then write another program to load the binary data and transfer control into it (can't remember how that was achieved though).

On the other hand, it taught me all the basics of programming, in a very real and demanding environment.

Binary though, I can see no good reason for that.
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 6:58
Richard A. Dalton20-Aug-10 6:58 
GeneralRe: String "bitmaps" Pin
Keith Barrow21-Aug-10 23:45
professionalKeith Barrow21-Aug-10 23:45 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton22-Aug-10 12:21
Richard A. Dalton22-Aug-10 12:21 
GeneralRe: String "bitmaps" Pin
Keith Barrow22-Aug-10 12:49
professionalKeith Barrow22-Aug-10 12:49 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton22-Aug-10 23:32
Richard A. Dalton22-Aug-10 23:32 
GeneralRe: String "bitmaps" Pin
T M Gray20-Aug-10 6:15
T M Gray20-Aug-10 6:15 
GeneralRe: String "bitmaps" Pin
Dr.Walt Fair, PE20-Aug-10 7:56
professionalDr.Walt Fair, PE20-Aug-10 7:56 
GeneralRe: String "bitmaps" Pin
Nagy Vilmos22-Aug-10 0:34
professionalNagy Vilmos22-Aug-10 0:34 
GeneralRe: String "bitmaps" Pin
Blake Miller21-Sep-10 12:30
Blake Miller21-Sep-10 12:30 
GeneralOne of those bad days and now i find stuff like this... Pin
Bigdeak18-Aug-10 1:29
Bigdeak18-Aug-10 1:29 
GeneralRe: One of those bad days and now i find stuff like this... Pin
hammerstein0518-Aug-10 6:22
hammerstein0518-Aug-10 6:22 
JokeRe: One of those bad days and now i find stuff like this... Pin
akyriako7820-Aug-10 2:56
akyriako7820-Aug-10 2:56 
GeneralRe: One of those bad days and now i find stuff like this... Pin
Jeroen De Dauw18-Aug-10 7:22
Jeroen De Dauw18-Aug-10 7:22 
GeneralRe: One of those bad days and now i find stuff like this... Pin
AspDotNetDev18-Aug-10 12:57
protectorAspDotNetDev18-Aug-10 12:57 
GeneralRe: One of those bad days and now i find stuff like this... Pin
Camilo Sanchez18-Aug-10 16:27
Camilo Sanchez18-Aug-10 16:27 
JokeRe: One of those bad days and now i find stuff like this... Pin
AspDotNetDev18-Aug-10 16:29
protectorAspDotNetDev18-Aug-10 16:29 
GeneralRe: One of those bad days and now i find stuff like this... Pin
Camilo Sanchez18-Aug-10 17:38
Camilo Sanchez18-Aug-10 17:38 

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.