Created
July 31, 2019 03:19
-
-
Save danielbdias/04fb37334dcfc6deae82e847f93c3ff1 to your computer and use it in GitHub Desktop.
Pseudo programa mostrando a modelagem de um programa com DDD após a segunda iteração com um usuário.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Coiso | |
# ... | |
end | |
class Rota | |
# ... | |
end | |
class GPS | |
def calcular_rota(coiso) | |
# calculo das instrucoes da rota | |
Rota.new(instrucoes) | |
end | |
# ... | |
end | |
class Program | |
def execute | |
coiso = Coiso.new | |
gps = GPS.new | |
rota = gps.calcular_rota(coiso) | |
rota | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment