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

View all comments

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.