views:

48

answers:

3

In my experience code behind UI can easily get ugly, and inorganized, e.g. long functions, lots of variables etc. How do you manage the code behind UI?

+2  A: 

The MVC pattern is often used to impose some structure and organisation.

Following the principles of SOLID OO design and similar ideas helps.

sje397
+1  A: 

It depends on your programming-language.

Threre are a lot of QA-Tools for different languages. Have a look at wikipedia

Which languages and techniques do you use?

elCapitano
A: 

One solution is to use 'immediate mode' UIs. It basically boils down to only caring about the UI element you're currently focussed on and binding the variables with data-side app variables. This is the opposite of retention mode UIs

Great video here.

acron