Clean Architecture



Download 6,37 Mb.
Pdf ko'rish
bet28/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   24   25   26   27   28   29   30   31   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

 
=
 
Gm
1
m
2
/
r
2
is correct.
Science does not work by proving statements true, but rather by 
proving 
statements false
. Those statements that we cannot prove false, after much 
effort, we deem to be true enough for our purposes.
www.EBooksWorld.ir


Conclusion
31
Of course, not all statements are provable. The statement “This is a lie” is 
neither true nor false. It is one of the simplest examples of a statement that is 
not provable.
Ultimately, we can say that mathematics is the discipline of proving provable 
statements true. Science, in contrast, is the discipline of proving provable 
statements false.
Te s t s
Dijkstra once said, “Testing shows the presence, not the absence, of bugs.” In 
other words, a program can be proven incorrect by a test, but it cannot be 
proven correct. All that tests can do, after sufficient testing effort, is allow us 
to deem a program to be correct enough for our purposes.
The implications of this fact are stunning. Software development is not a 
mathematical endeavor, even though it seems to manipulate mathematical 
constructs. Rather, software is like a science. We show correctness by failing 
to prove incorrectness, despite our best efforts.
Such proofs of incorrectness can be applied only to 
provable
programs. 
A program that is not provable—due to unrestrained use of 
goto
, for 
example—cannot be deemed correct no matter how many tests are 
applied to it.
Structured programming forces us to recursively decompose a program into a 
set of small provable functions. We can then use tests to try to prove those 
small provable functions incorrect. If such tests fail to prove incorrectness
then we deem the functions to be correct enough for our purposes.

Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   24   25   26   27   28   29   30   31   ...   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