Subj : Re: Reverse words in a string (Another Interview question) To : comp.programming From : Mabden Date : Sun Oct 02 2005 02:46 pm "Gerry Quinn" wrote in message news:MPG.1da885c5b8541cec98a633@news.indigo.ie... > Using the minimal algorithm is like carefully choosing a shopping bag > no larger than will be needed for the goods you intend to buy. It is a > waste of time that yields no significant benefits and reduces > flexibility. I've worn a backpack while walking through a open air bazaar in a country where personal space is not respected as I have become accustomed to. The above would have been Very Welcome... Yet, I find I have to agree that to try to find the most elegant, tight, fastest code (is fastest a word? - I worded it so it is now! (is worded a word? see: "is that a word?"). Uuuuhhh... what was I saying? OH! ... become a futile exercise, which IBM recognized in the 1960's. Namely, that the hardware will catch up. Just upgrade! Why are we worrying about loop optimizations and stack overhead in a world of 300GB hard disks and 2GB RAM machines. I do think that Moore's law is going to start to fail because I haven't seen a 4000MHz machine out there yet, but there is so much that software can do vis-a-vis optimizations of code, that I think we will enter a phase of not upgrading you machine, but upgrading you OS and compiler tools to get your program up to speed. You heard it here first! Unless someone has already said all of this, in which case you heard it hear again and you'll never get back those 4 minutes. p.s. I just checked out Tom's Hardware Guide (http://www.tomshardware.com) and this is the FIRST time I have EVER seen it without a CPU as Front Page News! In fact the CPU section is about BIOS options for beginners! I mean, who knows about THG that is a beginner? The site USED to be about overclocking AMD CPUs from 66MHz to 86MHz or whatever. He talked about jumpering CPU pins and CPU cooling. Now it's BIOS switches for Phoenix chips. Please respond if you even have a Phoenix BIOS. How 1989 is Phoenix BIOS? Am I wrong about this? -- Mabden .