I decided all the same for myself to write a script of the system of active advertising.

But for 10 days now I can’t decide in any way whatsoever by procedural or OOP to start writing a project?

After a thorough study of both methods, I can conclude that procedural is faster and OOP is more flexible.

But what to do in this case (after all, the system should initially be designed as highly loaded?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Athari , LEQADA , Timofei Bondarev , tutankhamun , Nick Volynkin ♦ 23 Dec '15 at 6:51 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    3 answers 3

    The choice of the applied paradigm depends on the convenience and desire of the programmer, only when this is the most convenience, and hence the speed of writing, are the main priorities in the project being implemented. In other words - "hot cakes right from the wheels," on this subject, you can read about the methodology of "Extreme Programming". If you are the only participant in the project and no one else bothers about this, and the size of the project (the complexity of the design and execution) is such that it fits completely in your head, then yes - functional programming fits more than (this is IMHO).

      Which method is best possessed, and write.

        You can still write in a functional way =) With proper implementation, this will make it possible to safely scale the system. In general, I agree with the user Sharp - write as you prefer.

        • Is there any place besides wiki to read about programming paradigms in an accessible language? I sort of own the PLO, I can do it purely on functions, and procedures (I know the links / pointers and all that), but I have a feeling that I missed some "highlights". - Sh4dow
        • It is hard to say. I did not see any cool textbooks written in an accessible language. I think that you just need to write and gain experience in a practical way. - gecube
        • Then the question is easier - what is the relationship between scaling and functions? - Sh4dow
        • And straight. If you write without side effects (and FPs actively contribute to this), then you automatically get the opportunity to parallelize the execution process. - gecube
        • one
          Well, for example, from the same Wikipedia:> Another advantage of functional programs is that they provide the broadest possibilities for automatic parallelization of calculations. Since the absence of side effects is guaranteed, in any function call the parallel calculation of two different parameters is always permissible - the order of their calculation cannot affect the result of the call. Not to mention how perfectly the execution of the map algorithm for lists is paralleled :-) - gecube