Share
Embed
TRUE, SOLID and DRY
Object Oriented Design main component is Dependency Management. These principles helps for doing and effective Dependency Management.
Manuel Vidaurre
May 15, 2014
Transcript
8 slides
-
Manuel Vidaurre http://about.me/manuel.vidaurre TRUE, SOLID y DRY que usamos de
estos acrónimos Manuel Vidaurre http://about.me/manuel.vidaurre -
Manuel Vidaurre http://about.me/manuel.vidaurre Code Smells In computer programming, code smell
is any symptom in the source code of a program that possibly indicates a deeper problem. Code smells are usually not bugs—they are not technically incorrect and do not currently prevent the program from functioning. Instead, they indicate weaknesses in design that may be slowing down development or increasing the risk of bugs or failures in the future. -
3 Manuel Vidaurre http://about.me/manuel.vidaurre Code Smells for OOD – Rigidity.
The tendency for software to be difficult to change, even in simple ways! – Fragility. The tendency of the software to break in many places every time it is changed! – Immobility. The inability to reuse software from other projects or from parts of the same project.! – Viscosity:! – viscosity of the design comes when the design preserving methods are harder to employ than the hacks! – viscosity of environment comes about when the development environment is slow and inefficient.! -
Manuel Vidaurre http://about.me/manuel.vidaurre 4314JOHMF3FTQPOTJCJMJUZ1SJODJQMF TIPVMEIBWFPOF BOEPOMZPOF SFBTPOUPDIBOHF 0$10QFO$MPTFE1SJODJQMF TIPVMECFPQFOGPSFYUFOTJPO CVUDMPTFEGPSNPEJGJDBUJPO
-41-JTLPW4VCTUJUVUJPO1SJODJQMF TIPVMECFSFQMBDFBCMFXJUIJOTUBODFTPGUIFJSTVCUZQFT XJUIPVUBMUFSJOHUIFDPSSFDUOFTT *4/*OUFSGBDF4FHSFHBUJPO1SJODJQMF TIPVMEIBWFNBOZDMJFOUTQFDJGJDJOUFSGBDFTSBUIFSUIBOPOF HFOFSBMQVSQPTFJOUFSGBDF %*1%FQFOEFODZ*OWFSTJPO1SJODJQMF TIPVMEEFQFOEVQPOBCTUSBDUJPOT%POPUEFQFOEVQPO DPODSFUJPOT SOLID Classic -
Manuel Vidaurre http://about.me/manuel.vidaurre 4314JOHMF3FTQPOTJCJMJUZ1SJODJQMF TIPVMEIBWFPOF BOEPOMZPOF SFBTPOUPDIBOHF 0$10QFO$MPTFE1SJODJQMF TIPVMECFPQFOGPSFYUFOTJPO CVUDMPTFEGPSNPEJGJDBUJPO
-41-JTLPW4VCTUJUVUJPO1SJODJQMF TIPVMECFSFQMBDFBCMFXJUIJOTUBODFTPGUIFJSTVCUZQFT XJUIPVUBMUFSJOHUIFDPSSFDUOFTT *P%*OKFDUJPOPG%FQFOEFODJFT DPMMBCPSBUJOHDMBTTFTTIPVMEEFQFOEPOBJOUFSNFEJBUF tJOKFDUFEuEFQFOEFODZ %1%FNFUFS1SJODJQMF TIPVMETQFBLPOMZUPJNNFEJBUFMZDPMMBCPSBUPST SOLID Ruby version -
Manuel Vidaurre http://about.me/manuel.vidaurre 53"/41"3&/55IFDPOTFRVFODFTPGDIBOHFTIPVMECF PCWJPVTJOUIFDPEFUIBUJTDIBOHJOHBOEJOEJTUBOUDPEFUIBU SFMJFEVQPOJU 3&"40/"#-&5IFDPTUPGBOZDIBOHFTIPVMECF QSPQPSUJPOBMUPUIFCFOFGJUTUIFDIBOHFBDIJFWFT 64"#-&&YJTUJOHDPEFTIPVMECFVTBCMFJOOFXBOE VOFYQFDUFEDPOUFYUT
&9&.1-"3:5IFDPEFJUTFMGTIPVMEFODPVSBHFUIPTFXIP DIBOHFJUUPQFSQFUVBUFUIFTFRVBMJUJFT TRUE