The more I use Euphoria... (was: A Portable API for Euphoria)
- Posted by Jacques Guy <j.guy at TRL.TELSTRA.COM.AU> Apr 03, 1998
- 774 views
Irv Mullins wrote: > Euphoria 1.5 compares well with, for example, Borland's 6.0 > version of Pascal, which took what -- 8 or 10 years to evolve? It compares well with Turbo Pascal 7 too. Since I took the leap into Euphoria, I haven't written a single line of Pascal. > What surprised me was how little code (usually 20-50 lines) > it takes to implement each new window gadget, and how > easy it is to have a new gadget *inherit* behaviors from > its parent object. I wrote myself a dictionary-producing piece of code. 39 lines (not counting blank lines and comments). Then I took a look at the same thing which I had written in Borland Pascal 7 a year ago: 1349 lines (blank lines and comments included, but there are very few comments). And my Euphoria dictionary is much more flexible than my Pascal one. Yes, there are no typing mistakes: THIRTY-NINE lines of Euphoria (55 counting blanks and comments), ONE THOUSAND THREE HUNDRED AND FORTY-NINE of Pascal. Pardon me for shouting, but I think it was appropriate. The more I use Euphoria, the more I like it (that's what I wanted to say, I got side-tracked). But there is more to it. I just bought "Code Complete", which although a Microsoft press title, is a truly excellent book on programming. Euphoria is not mentioned in it of course, since it was not born when the book was written. But its features are there, all positively reported. I have even reconciled myself with the "strange" behaviour of parameters, functions, and procedures. I have now discovered how some apparent shortcomings are in fact easily overcome by using modules (implemented as include files), and I now see that these "shortcomings" actually coax you into modular programming. Need I say more? Frogguy (the other Jacques)