CODING DOJOBaseado em apresentação feita por Uilton Campos
◦ Programadores não treinam;◦ Foco no desenvolvimento de código de produção;
O que fazer?
Motivação
Aprendizado contínuo Ambiente seguro
◦ Não competitivo◦ Colaborativo◦ Inclusivo
Passos de bebê Qualidade Melhoria
Princípios
Computador + Projetor TDD (Vermelho >> Verde >> Refatorar) Sempre começa do zero Todos devem entender
Regras Gerais
Ao final de toda reunião:
◦ O que aprendemos?◦ O que gostamos?
O que poderia melhorar?◦ Discussões, comentários
Retrospectiva
Randori Programação em pares Turnos (5-7 min), para revezamento dos pares Silêncio no vermelho Platéia comenta apenas na fase verde
Formato
Praticar Aprender Ensinar Discussão com base concreta sobre o código
Objetivos
Não pegue um problema real Não corra para resolver o problema Não discuta sobre tecnologias Sem competição entre os participantes Nunca deixe os participantes sem entender
O que não fazer...
Daniel Cukier [locaweb], http://agilblog.locaweb.com.br/2009/10/09/coding-dojo/
CodingDojo.org, http://codingdojo.org/Coding Dojo Piauí, http://www.slideshare.net/regispires/coding-dojo-1923746
Referências
Dúvidas?
Vamos aos problemas...
We all know URLs, http://www.google.se is a popular one.
Develop a class that decomposes a given URL into its constituents. In the above example, we would like to get the result
◦ The protocol: "http"◦ The domain name: "www.google.se"◦ The path: an empty string in our example.
Here are some example tests you could write to design this functionality:
◦ "http://some.thing" should give protocol=="http"◦ "ftp://a.large.site" should give domain=="a.large.site"◦ "http://a.site.with/a-path" should give path=="a-path"
URL splitting
For example, the roman number XVII is means 17. All rules can be found on wikipedia: Roman numerals.
You can go both ways, either int to Roman or Roman to int.
This problem is good for demonstrating the incremental development of an algorithm; it requires a couple of key insights, one around the use of a table, and one around thinking about the order of the tests.
Roman number conversion
ObObrigado!
Top Related