As this question arose, I will probably get to the point. There is a request for a server, it has 26 parameters. (cute true?) Requests to the server can be about 350! in each from 5 to the heap of transmitted parameters.
The point is this, that’s the question.
Each request is broken into my Action. Each action is in a separate file.
// upd_start
Why was chosen precisely partitioning actions on files. The project is big enough. So that all developers do not expand the controller itself, but simply add 1-2 lines to it to connect the new action + it is convenient to edit the project with such pieces, and not with a whole file that would constantly tolerate changes. For me, this is correct.
// upd_end
example:
public function actions() { /* All actions in this controller * are located in folder * application.controllers.frontend.requests */ return array( 'gf' => 'application.controllers.frontend.requests.gf', // и т.д. ); }
First question:
In what language should I write a description for the whole project?
At the moment I am trying to describe in ENG, as can be seen from the above function, the description in ENG.
The gf.php description is also on ENG
@NumSeats - The total number of passengers for which availability is being requested @StartDt - Date of Departure or Arrival. @StartPt - Airport or city code of the customer embarkation. @EndPt - Airport or city code of the customer Destination. @StartTm - Requested departure in 24-hour clock
In principle, I think that this is correct! In terms of the development of the project by other participants, both Russian and English speaking.
But there is one thing. There are people in the company who do not understand the ENG language very much and are therefore asked to comment on the code in Russian.
What's the catch? Well, it's easier to read Russian! I agree that translating Technical ENG is a Kick-Ass as "fun", I’m quietly going crazy + to everything it’s not always possible to translate ENG into RUS correctly due to various circumstances (lack of knowledge of some turns, etc.) In general, there are enough fun things to do. languages.
There are solutions, to score on ENG to write only on RUS, the second solution to write only on ENG, the third to write in 2 options and in ENG / RUS that decides the troubles of both cases, but will increase the number of descriptions to the code, which in my opinion is not good .
Here at the design stage of the project and I want to find out how best to do. On the one hand, I want to give everyone the pleasure of developing and writing a description for everyone, you still have to translate the manual of the system to RUS, on the other hand, writing a descriptor in 2 languages is a chore and somehow too much code in the file.
Will a great description affect code performance?
last edited by 06/11/2013 15:32 There will be additions voiced while everything is.
Waiting for your interesting reviews on the topic.
Naturally I will continue to open new questions on the topic of development.