Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP vs Other languages (Python/Ruby)
Message
From
22/05/2011 17:02:41
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
21/05/2011 10:22:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01511347
Message ID:
01511420
Views:
107
Apart from the fact that your C# sample uses integer math via random.next(), you're also getting the wrong answer when overflow inevitably occurs. ;-) Whereas the VFP sample is using floating point math and will throw an error if overflow occurs.

Not sure why this sort of trickshot is re-ignited along with the spiteful antagonism that we'd managed to avoid for a while. We all know it's possible to generate examples that "prove" one language is better than another. for example, it's still easy enough to kill a C# app (and the machine it's on) by generating vast datasets that spooled invisibly to disk in FP for 2 decades in my experience with little effect on performance. So? People who need spooling can continue using VFP. People who don't perceive spooling value can move to C#. It's a big wide world with plenty of variability, thank goodness.

In this case, lets all accept that C# is better than VFP in every respect. Cool. Now what about Python/Ruby, since the OP asked about those specifically? That might be an interesting discussion, especially since participants aren't like to start being "amused" at each other (which IME is a label for gratuitous spite showing anything but humor).
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform