p de Podcast

Diga, não peça (Tell, don’t ask)


Listen Later

Como seus objetos se  relacionam? Conhece o "Tell Don't Ask"? E o "Train Wreck"? O que isso  tem a ver com encapsulamento? Aperte o play e confira!


Participantes

Marcio Frayze David  

https://twitter.com/marciofrayze  
https://segunda.tech  
https://masto.donte.com.br/web/accounts/138458  
https://linkedin.com/in/marcio-frayze


Julianno Martins Silva  

https://twitter.com/juliannoms  
https://linkedin.com/in/juliannoms


Links:

Um dos artigos originais onde o termo é criado (Andy Hunt and Dave Thoma), 2003:

http://media.pragprog.com/articles/jan_03_enbug.pdf

Definição de Tell don't ask, Martin Fowler:

https://www.martinfowler.com/bliki/TellDontAsk.html

Vídeo (em inglês) com alguns exemplos:

https://www.youtube.com/watch?v=ZJ6bH6Df4K8

Texto do Giovanni Bassi:

https://www.lambda3.com.br/2009/07/tell-dont-ask-ou-fique-longe-das-minhas-propriedades/

Exemplo TDA: Statement recebe um printer pra impressão do extrato, e não pega o extrato pra imprimir

https://github.com/sandromancuso/Bank-kata/blob/master/src/main/java/org/craftedsw/domain/Statement.java

Screencast Sandro Mancuso

https://www.youtube.com/watch?v=XHnuMjah6ps

https://www.youtube.com/watch?v=gs0rqDdz3ko

https://www.youtube.com/watch?v=R9OAt9AOrzI

http://www.mockobjects.com/2006/10/tell-dont-ask-and-mock-objects.html?m=1

Artigo sobre TDD que cita TDA

https://martinfowler.com/articles/mocksArentStubs.html#DesignStyle

Link sobre TrainWreck

https://wiki.c2.com/?TrainWreck

...more
View all episodesView all episodes
Download on the App Store

p de PodcastBy Marcio Frayze David e Julianno Martins Silva