1

Topic: Procedural programming vs object-oriented programming

Dear colleagues, I suggest to consider such subject, as comparing of procedural programming with object-oriented programming. In what the difference between these two approaches to programming consists? In what advantages and procedural programming and object-oriented programming limitation? And still such question: if the programmer prefers procedural programming (that is he does not create classes there where he does not see in it necessity), as its chief/employer concerns it?

2

Re: Procedural programming vs object-oriented programming

Hello, RussianFellow, you wrote: RF> In what advantages and procedural programming and object-oriented programming limitation? Look on RSDN more attentively - Disputes: http://rsdn.org/forum/flame.comp/5072299.flat the Author: dilmah Date: 16.02.13 https://rsdn.org/forum/philosophy/4136296.hot the Author: Igor  Date: 30.01.11 https://www.rsdn.org/forum/philosophy/6 … at#6437252 Books: http://rsdn.org/summary/652.xml RF> And still such question: if the programmer prefers procedural programming (that is he does not create classes there where he does not see in it necessity), as its chief/employer concerns it? Approach to the chief and ask.

3

Re: Procedural programming vs object-oriented programming

Hello, RussianFellow, you wrote: RF> Dear colleagues, I suggest to consider such subject, as comparing of procedural programming with object-oriented programming. And I suggest to go deep into history further, and to consider advantages and limitation of structured programming It opens before us a way to arguing of variety of interesting questions. For example: 1. I wrote procedure from 100 lines, and in it 5 goto. My code did not transit , and me forced to rewrite it, using if' and cycles. But so my procedure works on 0.5 % more slowly. How to me to explain to the heads, what it is not right? 2. What do you think of languages without goto? 3. I wrote 100500 code lines, and in one place with goto it turns out for 1000 lines more shortly, than without it. Help to get rid from goto 4. Whether it is necessary to forbid usage goto in languages where it is 5. What it is better, goto or exceptions? 6. Whether suffers Rob Pajk Alzheimer's disease which made a modern language with goto, but bar none? I suppose, at application of some imagination it is possible to invent more many interesting subjects for arguing

4

Re: Procedural programming vs object-oriented programming

Hello, RussianFellow, you wrote: RF> And still such question: if the programmer prefers procedural programming (that is he does not create classes there where he does not see in it necessity) It is incorrect criterion of preference of software. After all preferring OOPs too do not create classes there where they do not see in it necessity. The difference can be in that (I do not insist on it) that they see necessity differently.

5

Re: Procedural programming vs object-oriented programming

RF> Dear colleagues, I suggest to consider such subject, as comparing of procedural programming with object-oriented programming. Who opened this portal?

6

Re: Procedural programming vs object-oriented programming

Hello, koenig, you wrote: RF>> Dear colleagues, I suggest to consider such subject, as comparing of procedural programming with object-oriented programming. K> who opened this portal? He/she is the traveler in time to us flew.

7

Re: Procedural programming vs object-oriented programming

Why the procedural is compared to OOP? I consider that it is necessary to compare things are comparable, i.e. (on _ with functional (programming on lambdas), and OOP it is necessary to compare Procedural programming to system programming (not in sense low-level, and in sense based on the theory of systems)

8

Re: Procedural programming vs object-oriented programming

Styles different are necessary - styles different are important. I often enough mix OOP,  and structured programming within the limits of one code. It is not necessary to oppose them. They add each other

9

Re: Procedural programming vs object-oriented programming

Hello, Pzz, you wrote: Pzz> 2. What do you think of languages without goto? Once I had to understand with not which program on FoxPro. GOTO in it is, but it spring not on the code, and by records in the table. The author of that program dexterously emulated "normal" GOTO by means of artful system of cycles while and heaps of flags. Here then I regretted that GOTO in FoxPro works on how in the Fortran.

10

Re: Procedural programming vs object-oriented programming

Hello, Privalov, you wrote: P> Once I had to understand with not which program on FoxPro. GOTO in it is, but it spring not on the code, and by records in the table. The author of that program dexterously emulated "normal" GOTO by means of artful system of cycles while and heaps of flags. Here then I regretted that GOTO in FoxPro works on how in the Fortran. Well at it how to look. It is possible to tell that in any program on any Java written without usage GOTO it is emulated by other means... <<RSDN@Home 1.0.0 alpha 5 rev. 0>>

11

Re: Procedural programming vs object-oriented programming

Hello, RussianFellow, you wrote: RF> Dear colleagues, I suggest to consider such subject, as comparing of procedural programming with object-oriented programming. RF> in what the difference between these two approaches to programming consists? In what advantages and procedural programming and object-oriented programming limitation? As already marked in a subject, it is not necessary to oppose these two approaches. Use that that approaches in a specific situation. RF> and still such question: if the programmer prefers procedural programming (that is he does not create classes there where he does not see in it necessity), as its chief/employer concerns it? To try it is necessary to write so that the code was clear, tested, supported, expanded. The chief level above the principal of a command normally does not investigate into implementation details. The programmer should not have preferences classes/functions - the suitable method of implementation follows from architecture of the project. And generally, recently good video got to me on this subject: Kevlin Henney - Procedural Programming: It's Back? It Never Went Away https://youtu.be/otAcmD6XEEE

12

Re: Procedural programming vs object-oriented programming

Hello, pagid, you wrote: P> Well it how to look. It is possible to tell that in any program on any Java written without usage GOTO it is emulated by other means All the same  GOTO is present. Clinical cases to assort better with it, than with manually its made emulators.

13

Re: Procedural programming vs object-oriented programming

Hello, Kernan, you wrote: K>> who opened this portal? K> it is the traveler in time to us flew. From the future