Back

ⓘ SOLID. Kuhlelo lwamakhompiyutha olwenzelwe into, i- SOLID isichazamazwi se- mnemonic sezinqubomgomo ezinhlanu zokuklama okuhloswe ngazo ukwenza ukwakheka kwesof ..




                                               

Izinhlobo Ze Matter

                                     

ⓘ SOLID

Kuhlelo lwamakhompiyutha olwenzelwe into, i- SOLID isichazamazwi se- mnemonic sezinqubomgomo ezinhlanu zokuklama okuhloswe ngazo ukwenza ukwakheka kwesoftware kuqondeke kakhudlwana, kube nezimo futhi kulondolozwe. Ayihlobene nemigomo yokwakhiwa kwesoftware ye- GRASP. Lezi zimiso zingaphansi kwezimiso eziningi ezithuthukiswa ngunjiniyela wesoftware waseMelika kanye nomqeqeshi uRobert C. Martin. Noma zisebenza kunoma yikuphi ukwakheka okugxilwe entweni, imigomo ye-SOLID nayo ingakha ifilosofi eyisisekelo yezindlela ezinjengokuthuthuka ngokuphuthuma noma ukuthuthukiswa kwesoftware. Umbono wemigomo ye-SOLID wethulwa nguMartin lakhe le-2000 Design and Designs Design, yize isigaxa se-SOLID sangeniswa kamuva nguMichael Feather.

                                     

1. Imiqondo

Umgomo wesibopho esisodwa Isigaba kufanele sibe nesibopho esisodwa, okungukuthi, izinguquko engxenyeni eyodwa yokucaciswa kwesoftware kuphela okufanele zikwazi ukuthinta okubekiwe kwesigaba. Umgomo ovaliwe "Izinhlaka zesoftware. kufanele ivulelwe ukunwetshwa, kepha ivalelwe ukuguqulwa. Umgomo wokufaka esikhundleni weLiskov "Izinhloso ezinhlelweni kufanele zibambezelwe ngezigatshana zezincazelo zazo ngaphandle kokushintsha ukunemba kwalolo hlelo." Bheka futhi ukwakhiwa ngenkontileka. Umgomo wokuhlukanisa "Izindawo eziningi eziqondene namakhasimende zingcono kune-interface eyodwa yenhloso ejwayelekile." Umgomo wokuncika Umuntu kufanele "ancike kokukhishwayo abstended, kokucindezelwayo kufakwe ndawonye concretions."