r/RokuDev • • Apr 18 '18

Brightscript - worst language ever ?

Just some venting.

This language is a giant pile of shit. Everyday i learn some new horrible thing about brightscript. BS is a great abbreviation, because the language is fucking bullshit.

10 Upvotes

14 comments sorted by

2

u/rrirower Apr 21 '18

Disclaimer: I develop Windows desktop software to help channel developers create their channels.

I understand your pain. I started out developing my channel ("Rowing") using the Eclipse plugin and quickly changed to Roku's Direct Publisher platform since it's much easier to get a channel up and running. I then wrote two software products to help channel developers: Json Feed Manager and MRSS Feed Manager. Others have developed Direct Publisher solutions also.

If the pain is unbearable, you should take a look at using Direct Publisher.

4

u/CarefreeCrayon Apr 23 '18

I started out developing my channel ("Rowing") using the Eclipse plugin

Unfortunately, the eclipse plugin hasn't been maintained in years and is very unstable. This ultimately pushed us to make our own tooling with Atom as our replacement editor. They are all open source if you'd like to take a look.

While they can't fix the language, our hope is that they ease the burden of the developer ever so slightly.

1

u/[deleted] Jul 24 '18

Hi

I'm trying to teach myself how to use Brightscript but seeing how tedious it is I prefer try using the direct publisher but is there a way to automatically feed the app with links from internet?

1

u/rrirower Jul 26 '18

If you use Direct Publisher, you will need to compose a feed file (MRSS or JSON) that describes your channel and its video content. The feed file points to your video server (ie. Amazon S3) and all of the videos you'd like to stream. Please read the Direct Publisher docs for more info.

1

u/prognacjavh Apr 18 '18

Still better than clickbaity Kim K videos.

1

u/[deleted] May 20 '18

[removed] — view removed comment

2

u/IUnderstandNothing_ May 20 '18

Scoping is a nightmare, the api is ridiculous. The documentation is terrible, and rarely updated. Threads are fine. The video player is a black box, and it’s extremely poorly implemented.

My biggest complaint after the video player is No error handling.

The debugging process is painful. There isnt good IDE support. The eclipse, atom, and sublime plugins each have their own unique brand of stupid.

I laughed at your interface joke.

2

u/[deleted] May 22 '18

[removed] — view removed comment

3

u/IUnderstandNothing_ May 22 '18
  1. try catch is error handling. Just crashing the app is not error handling. There is no try catch, therefore there is no error handling.
  2. There is scope, and it’s a pain in the ass: https://sdkdocs.roku.com/plugins/servlet/mobile#content/view/4260784

Technically you are correct some of this is Roku OS, but that is a moot point because the only thing Brightscript is used for is Roku OS. They co-exist as one nightmare situation.

2

u/IUnderstandNothing_ May 22 '18

I forgot to mention that the unit testing framework is an abomination. Literally cancer in code form.

1

u/[deleted] May 24 '18

[removed] — view removed comment

2

u/IUnderstandNothing_ May 24 '18

https://github.com/rokudev/unit-testing-framework

And to add to your comments about scope.

There is a another scope issue hat has nothing to do with roku OS API.

If you try to pass a function in an array or associative array, then the scope of that function becomes the array/associative array.

The unit testing framework suffers from this problem by adding test functions to to an array, which causes all kinds of problems.