>The try-catch sample here would catch an exception not an error, but anyway, we agree (i guess) on 1.It would better to code as example 1, 2. Creating small re-usable function is "a best-pratice", (i don't know why you keep comming back on this subject thought, cause it's not the subject of this discussion :) )
Stephane,
I keep coming back to it, not because I don't think you understand, but rather to keep the focus on what's a good practice and what isn't. In my experience, both with Fox and other languages, I keep running across the same problems caused by the developer's themselves.
The problem isn't that these aren't very intelligent, informed people. To the contrary, they are. The problem is that they don't know how to properly construct software, or don't believe that employing the "best practices" yields any tangible benefit.
In fact, employing the best practices not only yields software that is easier to modify and maintain, but is more flexible and makes development of new software faster. This has been proven time and time again through research.
George
Ubi caritas et amor, deus ibi est