Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep code behind UI organized?

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?

like image 954
Ristovak Avatar asked Aug 12 '10 06:08

Ristovak


People also ask

What are the three key standpoints for organizing code?

This article outlines four different strategies for organizing code: by component, by toolbox, by layer, and by kind.


2 Answers

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

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

like image 176
sje397 Avatar answered Sep 19 '22 20:09

sje397


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?

like image 37
elCapitano Avatar answered Sep 20 '22 20:09

elCapitano