complexidade ciclomatica
DESCRIPTION
Complexidade Ciclomática, quem são os vilões e como vence-losTRANSCRIPT
![Page 1: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/1.jpg)
Complexidade Ciclomática
Vinicius D. Pasquantonio
![Page 2: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/2.jpg)
CÓDIGO LEGADO
![Page 3: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/3.jpg)
MUITAS RESPONSABILIDADES
![Page 4: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/4.jpg)
MUITA INFORMAÇÃO
![Page 5: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/5.jpg)
![Page 6: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/6.jpg)
![Page 7: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/7.jpg)
![Page 8: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/8.jpg)
![Page 9: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/9.jpg)
![Page 10: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/10.jpg)
FORWHILE
SWITCH
![Page 11: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/11.jpg)
COMPLEXIDADE CICLOMÁTICA
![Page 12: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/12.jpg)
![Page 13: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/13.jpg)
QUANTO MAIS CAMINHOS, PIOR
![Page 14: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/14.jpg)
BAD FIX
![Page 15: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/15.jpg)
![Page 16: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/16.jpg)
Orientação a Objetos
![Page 17: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/17.jpg)
S.O.L.I.D.Single responsibility, Open-closed, Liskov
substitution, Interface segregation e Dependency inversion
![Page 18: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/18.jpg)
KISS
Keep It Simple, Stupid
![Page 19: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/19.jpg)
DESIGN PATTERNS
![Page 20: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/20.jpg)
"O conceito de estratégia, em grego strateegia, em latim strategi, em francês stratégie... Os senhores
estão anotando?" Capitão Nascimento
![Page 21: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/21.jpg)
STRATEGY
![Page 22: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/22.jpg)
“A primeira regra de funções é que
elas devem ser pequenas. A segunda regra de funções é que elas devem ser ainda menores.”
— Uncle Bob
![Page 23: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/23.jpg)
“Funções devem fazer uma coisa
apenas. Fazê-la bem. Fazer somente ela.”— Uncle Bob
![Page 24: Complexidade Ciclomatica](https://reader033.vdocuments.net/reader033/viewer/2022061607/55799f3cd8b42ac1148b46a7/html5/thumbnails/24.jpg)
MENOS É MAIS