Language and development rules: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 560: Line 560:
Many frameworks have chosen to put the C code part (Controller) and the V code part (View) in different files, or even separate directories. The maintenance seems easier on paper, in practice, you have to juggle constantly between a ton of files when your project become larger. In Dolibarr, the separation is made by a simple comment section. The part of code C (Controller) is therefore the code that follow the tag
Many frameworks have chosen to put the C code part (Controller) and the V code part (View) in different files, or even separate directories. The maintenance seems easier on paper, in practice, you have to juggle constantly between a ton of files when your project become larger. In Dolibarr, the separation is made by a simple comment section. The part of code C (Controller) is therefore the code that follow the tag
<pre>
<pre>
/ *
/*
  * Actions
  * Actions
  * /
  * /
Line 566: Line 566:
It is followed by the part of code V (Vue), well separated from the C by the tag
It is followed by the part of code V (Vue), well separated from the C by the tag
<pre>
<pre>
/ *
/*
  * View
  * View
  * /
  * /

Navigation menu