Perspective issue with users

Regarding your code and component property references, you are creating a "brittle" application. If you move any of the conponents or wrap them inside another container then the application breaks as you are using absolute paths everywhere.

Have a look at my comments on Trouble with 'if' statement, button event - #5 by Transistor where I explain how the application can be cleaned up by using a view's custom properties to hold the values of components using bidirectional bindings. Your code then just references self.view.custom.xxxxx and there are no absolute or relative paths. It brings great joy to you and to those who maintain your code in the future!

2 Likes