PDA

View Full Version : going rate for typing in programs



vic user
September 15th, 2004, 01:04 PM
i currently give my daughter five cents for every line of code she types in.

this does several things:

1) i get programs typed in for me

2) she is getting some computer training of a sort :)

3) she gets extra money if she wants it

i find also giving some money per line, has also made her want to type in longer programs, which is just fine by me!

carlsson
September 17th, 2004, 07:05 AM
How much do you deduct for hard-spotted typos and errors built into the listing, respectively? :)

vic user
September 17th, 2004, 09:00 AM
hehe, no i let her get away with murder ;)

i do any debugging

barryp
September 17th, 2004, 05:54 PM
i currently give my daughter five cents for every line of code she types in.

I used to have my son edit existing (BASIC) programs, mostly games. He liked to give himself more/unlimited lives, higher point scores or whatever. I'd help him when he didn't understand program logic. It interested him and I thought it might provide him a better education...


Maybe not.

vic user
September 17th, 2004, 06:08 PM
Neat!

I am hoping that through using one or some of the micro adventure books (not sure if you know of them), to introduce my daughter to a bit of program logic, structure etc..

carlsson
September 21st, 2004, 12:32 AM
I'm sure your daugther would drool over a really long hexadecimal dump, a'la the MLX listings in COMPUTE! or other magazines. Or maybe not, those are rather tricky to enter. Earlier this year I hacked together a cross-MLX tool to allow me to scan and OCR the listing and process by PC rather than typing it. The amount of OCR errors are about the same as the type-in errors. Even worse when a ML listing contains unexpected errors; it gets rather difficult to figure out which instruction(s) are wrong in the final result, or if the whole listing is broken.

vic user
September 21st, 2004, 03:58 AM
too bad i do not live close to you, as i would like to see a demo of the whole process

carlsson
September 22nd, 2004, 02:09 AM
Well, I can try to describe it in text. We assume a COMPUTE MLX listing. Basically you would scan a listing and mark the areas you want to recognize with your OCR software. Mark the columns or areas in the "right" order so you don't have to shift around a lot later. Perform a rough recognition and save the result as a text file. Open it in a text editor, and try to spot the most common errors, like O for 0, I for 1, : for 1, S for 5, & for 6 etc.

Now compile mlx.c which is a crude command line tool which takes the name of the text file and where you want to store the binary result. It will tell you if there are checksum errors and where. The output file should be directly loadable on a computer or emulator.

I used this process to enter a listing in February, see "vic-emu.txt" in this archive:

http://www.mds.mdh.se/~dal95acn/vicfiles/enchanted-journey.zip

To enter the Basic listings, you can do likewise, but replace the mlx step with one of the Basic tokenizers available (petcat, bastext, tok64 etc). Of course, typing line by line is more old-fashion and maybe more fun if you have the time and incentive.

vic user
September 22nd, 2004, 04:04 AM
i like the process.

i would like to try it out with a basic listing.

this should actually be pretty darn easy using my model 100 as well