Clean Architecture



Download 6,37 Mb.
Pdf ko'rish
bet21/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   17   18   19   20   21   22   23   24   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

Sta r ting w ith 
th e B r ic k s: 
Prog r a m m i ng 
Pa r a dig m s
www.EBooksWorld.ir


Part II Starting with the Bricks: Programming Paradigms
20
born). What followed was an unceasing flood of new programming 
languages—COBOL, PL/1, SNOBOL, C, Pascal, C++, Java, ad infinitum.
Another, probably more significant, revolution was in programming 
paradigms
. Paradigms are ways of programming, relatively unrelated to 
languages. A paradigm tells you which programming structures to use, and 
when to use them. To date, there have been three such paradigms. For reasons 
we shall discuss later, there are unlikely to be any others. 
www.EBooksWorld.ir


21
3
Pa r a dig m O v e rv ie w
The three paradigms included in this overview chapter are structured 
programming, object-orient programming, and functional programming.
www.EBooksWorld.ir


Chapter 3 Paradigm Overview
22
St r u c t u r e d Pro g r a m m i n g
The first paradigm to be adopted (but not the first to be invented) was 
structured programming, which was discovered by Edsger Wybe Dijkstra in 
1968. Dijkstra showed that the use of unrestrained jumps (
goto
statements) is 
harmful to program structure. As we’ll see in the chapters that follow, he 
replaced those jumps with the more familiar 
if/then/else
and 
do/while/until
constructs.
We can summarize the structured programming paradigm as follows:
Structured programming imposes discipline on direct transfer of control.
O bj e c t- O r i e n t e d Pro g r a m m i n g
The second paradigm to be adopted was actually discovered two years earlier, 
in 1966, by Ole Johan Dahl and Kristen Nygaard. These two programmers 
noticed that the function call stack frame in the 
ALGOL
language could be 
moved to a heap, thereby allowing local variables declared by a function to 
exist long after the function returned. The function became a constructor for 
a class, the local variables became instance variables, and the nested functions 
became methods. This led inevitably to the discovery of polymorphism 
through the disciplined use of function pointers. 
We can summarize the object-oriented programming paradigm as follows:
Object-oriented programming imposes discipline on indirect transfer 
of control.

Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   ...   259




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish