Clean Code



Download 3,58 Mb.
Pdf ko'rish
bet6/384
Sana05.04.2022
Hajmi3,58 Mb.
#530298
1   2   3   4   5   6   7   8   9   ...   384
Bog'liq
Clean Code

Have No Side Effects
...........................................................................44
Output Arguments ............................................................................45
Command Query Separation
.............................................................45


ix
Contents
Prefer Exceptions to Returning Error Codes
...................................46
Extract Try/Catch Blocks .................................................................46
Error Handling Is One Thing............................................................47
The
Error.java
 Dependency Magnet .............................................47
Don’t Repeat Yourself
.........................................................................48
Structured Programming
...................................................................48
How Do You Write Functions Like This?
..........................................49
Conclusion
............................................................................................49
SetupTeardownIncluder
.....................................................................50
Bibliography
.........................................................................................52
Chapter 4: Comments
.......................................................................53
Comments Do Not Make Up for Bad Code
.......................................55
Explain Yourself in Code
....................................................................55
Good Comments
..................................................................................55
Legal Comments...............................................................................55
Informative Comments.....................................................................56
Explanation of Intent ........................................................................56
Clarification ......................................................................................57
Warning of Consequences ................................................................58
TODO Comments.............................................................................58
Amplification....................................................................................59
Javadocs in Public APIs....................................................................59

Download 3,58 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   384




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