"Travonisoft" wrote:
I have been developing for roku for several months now and one thing still boggles my mind.
Why name a method AsyncGetToFile if it is truly not Asynchronous? If i have to create a message port and put a wait timer on it for a message to appear then this is not Asynchronous at all. Why didn't the developers at roku think that it would be a good idea to allow image loading straight to an object and then it would appear whenever it was loaded? Am I completely lost or does the Roku Development team not know the meaning of the word Asynchronous. I develop for applications with iOS, Android, C#, and Java...
Hmm, i in turn am puzzled how come you'd be developing for "iOS, Android, C#, and Java" yet never grasped the concept of
synchronous vs asynchronous API. A
synchronous call is a blocking call - you make the request - your thread execution stops right there awaiting result - and when the call returns, you got the data or success/fail code. An
asynchronous call on the other hand will not block the caller (returns right away) - and if you expect some result from it, you either get a handle you can poll at will - or provided a callback function - or will receive a message when it is done. Which is the case with AsyncGetToFile, it is asynchronous.
... and never have run into a programming language that is as horrible as brightscript.
You are right but on a technicality only - one won't run into a language that is
exactly "as horrible" as B/S. You'd find some languages that are
less horrible yet many that are
more horrible. Looking for exact match in "horribleness" is like comparing float/doubles for == equality. Somewhat more seriously, B/S i pretty decent language, i would's cluster it somewhere with Perl and Tcl. And as subjective opinions go, i'd say Java the Hutt is much more horrible