"brocker" wrote:
and they all do it in a different way
"ChrisDotson" wrote:
For example, I can't find "categoryLeaf" anywhere in the documentation yet it's used in the videoplayer example.
"ChrisDotson" wrote:
Honestly, for the videoplayer example.... why do you need 11 BRS files to pull that off?
"TheEndless" wrote:
categoryLeaf isn't a BrightScript component. It's a node in the XML being used in that example, and is specific to that example (see the categories.xml file).
"TheEndless" wrote:
You don't *need* 11 files. You can put all of that code in the same file, but it's broken into logical groups (files) to make it easier for both code navigation and re-use.
"TheEndless" wrote:
Um.. yeah, it does. Why the rolling eyes?
"TheEndless" wrote:
No one said you were alone in your frustrations. You asked a question about why there were 11 files, and I was trying to explain it. The videoplayer example is one of the more complex examples in the SDK, and isn't really one that you should be starting off with. The "simple" examples are intended to demonstrate individual features of the SDK (akin to the basic "Hello World" you referred to in your post). Once you understand those, and how the components interact, then you should move on to the more complex examples, like the videoplayer example, which is more or less a full blown channel. At that point, the multiple files should make a lot more sense to you.
"TheEndless" wrote:
You don't *need* 11 files. You can put all of that code in the same file, but it's broken into logical groups (files) to make it easier for both code navigation and re-use.
I don't find it the least bit useful or helpful for someone who, like me, is trying to learn the language. The comments help a little, but not enough if you're starting from scratch. Obviously I'm not alone with my frustrations. Like anything, some people will pick it up and have no problem. I just think ROKU would see greater success if the learning curve wasn't as steep and even novice developers (again, like myself) could come in and quickly learn how to make a channel.
"kbenson" wrote:
Personally, I think using roImageCanvas for the base and teaching super simple BrightScript techniques on top of that would be good for a tutorial. The canvas object has a really low barrier for starting to use it, and it's easy to have something that visual on the screen in 10-15 lines of code. Throw in a loop or two and some string manipulation to display stuff on the screen, and you can have a really quick tutorial that covers CreateObject(), arrays, functions, and event handling. All the examples are just more complex variations on that.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!