Dab tsi yog refactoring hauv kev sim?
Dab tsi yog refactoring hauv kev sim?

Video: Dab tsi yog refactoring hauv kev sim?

Video: Dab tsi yog refactoring hauv kev sim?
Video: muab tus kwv tua txi twj kum kev npam loj heev(3/5/2022). 2024, Hlis ntuj nqeg
Anonim

< Taw qhia rau Software Engineering | Kev sim . Code refactoring yog "txoj kev qhuab qhia rau kev hloov kho cov cai", tau ua txhawm rau txhawm rau txhim kho qee qhov tsis ua haujlwm ntawm cov software.

Ua kom qhov no nyob rau hauv kev xav, dab tsi yog txhais los ntawm refactoring?

" Refactoring yog cov txheej txheem ntawm kev hloov kho software hauv txoj hauv kev uas nws tsis hloov tus cwj pwm sab nraud ntawm cov cai tseem txhim kho nws cov qauv sab hauv. " - MartinFowler hauv RefactoringImprovingTheDesignOfExistingCode.

Tsis tas li ntawd, thaum twg yuav tsum tau refactoring? Refactoring yog tus txheej txheem ntawm kev hloov cov qauv ntawm txoj cai tsis hloov nws tus cwj pwm. Nws yuav tsum siv los yooj yim ntxiv cov yam ntxwv. Vim tias qhov tshwm sim yog cov cai uas "tsim" zoo dua, qee zaum tib neeg tsis meej pem thiab xav tias refactoring yog qhov kawg rau nws tus kheej.

Yog li ntawd, dab tsi yog lub hom phiaj ntawm refactoring code?

Code refactoring yog qhov txheej txheem ntawm kev hloov lub khoos phis tawj lub khoos phis tawj sab hauv yam tsis tau hloov kho nws tus cwj pwm ua haujlwm sab nraud lossis kev ua haujlwm uas twb muaj lawm, txhawm rau txhim kho cov haujlwm sab hauv tsis ua haujlwm ntawm cov software, piv txwv li txhawm rau txhim kho cov lej nyeem, kom yooj yim cov qauv qauv, hloov cov lej rau

Dab tsi yog refactoring hauv Scrum?

Code Refactoring hauv Agile Programming. Code Refactoring yog tus txheej txheem ntawm kev nthuav dav thiab yooj yim rau kev tsim cov cai uas twb muaj lawm, tsis tas yuav hloov nws tus cwj pwm. Yooj yim pab pawg tswj hwm thiab txuas ntxiv lawv cov lej ntau los ntawm iteration mus rau iteration, thiab tsis tas mus li refactoring , qhov no nyuaj ua.

Pom zoo: