Petr Schreiber
24-09-2013, 21:07
After using ThinBASIC for 3 years for professional work, there are few things which I would like to see imlemented one day. I would like to leave it open for discussion for some time, that is why I didn't post this at Support (http://www.thinbasic.com/community/project.php) area.
Optional script pre-parsing
It is very unpleasant to fall into syntax error trap in some less exposed code branch. It would be nice to have syntax checker, which would formally analyse the script without running it. I think it could be done via metadata from thinBasic_LoadSymbolEx for example.
Encapsulation of code units
Some kind of isolated code units has been raised few times here, I think with the dawn of OOP (http://www.thinbasic.com/community/project.php?issueid=440) this comes true step by step :)
Exception handling
Currently, when ThinBASIC and its modules, (especially TBGL) find a serious issue, they raise a RunTimeError dialog, which stops the execution or write ERR variable, which is not realised very often. It would be nice to have a structured exception handling (try/catch/finally), with ability to raise descriptive messages instead of sometimes vague ERR. Structured proposal is posted as attachement here (http://www.thinbasic.com/community/project.php?issueid=221#attachments).
Bonus round: Test driven developement support
My friend Honza from work gave me a book called "Growing Object Oriented Software, Guided by Tests". It describes very interesting approach of designing software in quite unique way - by writing failing tests for features first, and then the actual code. It is approach worth study, as I can see from work it makes sense - code by Honza basically never crashes, which looks like kind of magic (but it is not something esotheric - "just" well thought developement approach).
Petr
Optional script pre-parsing
It is very unpleasant to fall into syntax error trap in some less exposed code branch. It would be nice to have syntax checker, which would formally analyse the script without running it. I think it could be done via metadata from thinBasic_LoadSymbolEx for example.
Encapsulation of code units
Some kind of isolated code units has been raised few times here, I think with the dawn of OOP (http://www.thinbasic.com/community/project.php?issueid=440) this comes true step by step :)
Exception handling
Currently, when ThinBASIC and its modules, (especially TBGL) find a serious issue, they raise a RunTimeError dialog, which stops the execution or write ERR variable, which is not realised very often. It would be nice to have a structured exception handling (try/catch/finally), with ability to raise descriptive messages instead of sometimes vague ERR. Structured proposal is posted as attachement here (http://www.thinbasic.com/community/project.php?issueid=221#attachments).
Bonus round: Test driven developement support
My friend Honza from work gave me a book called "Growing Object Oriented Software, Guided by Tests". It describes very interesting approach of designing software in quite unique way - by writing failing tests for features first, and then the actual code. It is approach worth study, as I can see from work it makes sense - code by Honza basically never crashes, which looks like kind of magic (but it is not something esotheric - "just" well thought developement approach).
Petr