D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] And you wonder why the tubes are blocked ...

 

stinga@xxxxxxxxxxxxx wrote:
On 02/03/10 10:21:13, Gordon Henderson wrote:

Is it me, or are we doomed to this lazy programmer approach? (Or is that "just the way is it" with this new fangled web2oreah)


We are doomed by poor coding and lazy programmers.

My story is some contractor came in to help us with some Cobol on vt terminals. Rather than print the clear screen code he created a string 80 bytes long and printed that 24 times... hmmm...
When I did a spot of programming on *cough* SCO Unix *cough* years back (about 1996 I think), I learnt a rather useful lesson. I'd been writing a program to convert information and got it to update the screen for every record it converted. Basically it was using a whole load of unnecessary CPU resources just to update the terminal screen, until someone pointed out to me that the program would run much quicker if it didn't spend half it's time updating the screen.

Sure enough the more seasoned programmers were right. I guess nowadays though some programmers are more interested in flashy interfaces.

Rob


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html