Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!motcsd!starnet!sschaem From: sschaem@starnet.uucp (Stephan Schaem) Newsgroups: comp.sys.amiga.programmer Subject: Re: Lemmings - a tutorial Part IV Message-ID: <1991Apr4.221438.10203@starnet.uucp> Date: 4 Apr 91 22:14:38 GMT References: <1991Mar31.195148.6667@starnet.uucp> <24001@well.sf.ca.us> <1991Apr3.104218.5224@neon.Stanford.EDU> Organization: Starnet-Public Access UNIX-Los Altos,CA 415-949-3133, login:info Lines: 37 Sory ther? 6 line of code a day? What kind 300 C lines for a complex math function? (300 char per line:-) more than 100 optimized line a day is what you can do in assembly... so 6 line must be in a pretty weird language. (of course 100 bug free), last example was a 2 layer star display routine passing beyong background object with various speed on a scrolling display (involving screen 'interupt' acknoledge). That was the first time I done it, 64 lines 20 minuts. Its code and logic optimized... test the 6 planes, use msg, but only restore 3 and set 3 bitplanes. It work from a list structure including, last restore, speed and pos. So for simple stuff like that why bother to do it in C? (I Myke:-) So lets say 64 line per half hour. If I'm in a good mood I can write 500 lines a night in semi debuged code (the thing dont crash on normal usage), and not optmized. I dont do that every night, and 1 or 2 hundreds is more like it. A guy that write 6 lines a days is brain dead! or is curently learning. And if for C you count { } ( ) its pretty low:-) , JK. Also my code is line to line commented, with explicite instruction action.So usally I read my comment not the code... So when I need to change, adapt, modifie in ANY way its pretty easy... 6 is an exageration! Some complex software in C on the SGI are more than 20,000 lines long, that would mean 10 year of work. Also after a while programing is a repeatition or what you have already done, so you keep library handy.But has showed above for simple task involving programing 6 is too low. How many compagnie is ready to accept that:-) The guy comes in take a coffe, write his 6 lines and come home... Stephan.