Those tricks are at http://www.piclist.com under routines, math, basic math Programming like that must be at least partly innate talent, 'cause I haaaaavvve tried. I can do other things well, but the math stuff just kills me. I'm still recovering from the blow to my ego from having my first code challenge ignored. One thing that I have learned is that One must: 1. Care; to have the energy to: 2. Try; which will ALWAYS cause one to: 3. Fail; from which we will gain: 4. Experience; which will allow one to reliably: 5. Succeed Thinking that one can skip step 3 is a common error. Success without experience is luck and luck is not repeatable Please mark further posts on this thread [OT]. --- James Newton (PICList Admin #3) mailto:jamesnewton@piclist.com 1-619-652-0593 PIC/PICList FAQ: http://www.piclist.com or .org -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of William Chops Westfield Sent: Wednesday, March 08, 2000 18:43 To: PICLIST@MITVMA.MIT.EDU Subject: Re: How to write code that no one will laugh at (was: "Re: RMS Measurement again") > How does one learn to write code like [Scott Dattalo] and Andy > Warren, Dimitry, etc.? Just practice? Innate talent? Practice, talent; of course. But mostly it boils down to TRYING. I mean, we all might have a gut feeling that there would be "tricks" to squaring a number (for example) that would allow it to be done more easilly than simply multiplying, but how many of would take the time and effort to research the math and tune the code... BillW