{"id":1023,"date":"2010-11-24T11:53:39","date_gmt":"2010-11-24T13:53:39","guid":{"rendered":"http:\/\/blog.cancaonova.com\/desenvolvimentoti\/?p=1023"},"modified":"2010-12-21T10:27:49","modified_gmt":"2010-12-21T12:27:49","slug":"coding-dojo-16-descobrindo-anagramas","status":"publish","type":"post","link":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/","title":{"rendered":"Coding Dojo #16 Descobrindo Anagramas"},"content":{"rendered":"<p style=\"text-align: justify;\">\u00daltimo Dojo de Python, deixando saudade, e estimulo para estudar mais e se aprimorar.O encontro foi muito tranquilo, escolhemos um kata menos matem\u00e1tico o que diminuiu o &#8220;stress&#8221; e tempo no planejamento. Em alguns momentos tivemos dificuldades na sintaxe mas foram resolvidas pelo uso do <a href=\"http:\/\/www.swaroopch.com\/notes\/Python_pt-br:Primeiros_Passos#Obtendo_Ajuda\" target=\"_blank\">&#8220;help&#8221; do Python<\/a> atrav\u00e9s do Terminal.<br \/>\nAp\u00f3s a Retrospectiva, tivemos que escolher, por vota\u00e7\u00e3o, a linguagem que ir\u00e1 nos acompanhar durante os pr\u00f3ximos dois meses, o escolhido ent\u00e3o foi &#8220;Ruby + Cucumber&#8221;. O desafio vai ser grande, mas estamos dispostos a compartilhar d\u00favidas e conhecimentos, o que v\u00eam acontecendo, n\u00e3o s\u00f3 com os dojos mas na pr\u00e1tica dos m\u00e9todos ageis.<br \/>\nPensando sempre em inovar os Dojos, tivemos um mini lanchinho durante a Retrospectiva.<\/p>\n<p style=\"text-align: left;\">Origem do kata :\u00a0\u00a0<a title=\"http:\/\/www.dcc.fc.up.pt\/oni\/problemas\/2005\/qualificacao\/probC.html\" href=\"http:\/\/www.dcc.fc.up.pt\/oni\/problemas\/2005\/qualificacao\/probC.html\" target=\"_blank\"><span style=\"font-family: Arial,sans-serif;\"><span style=\"font-size: x-small;\">http:\/\/www.dcc.fc.up.pt\/oni\/problemas\/2005\/qualificacao\/probC.html<\/span><\/span><\/a><a href=\"http:\/\/br.spoj.pl\/problems\/DINOSTRA\/\"><!-- p { margin-bottom: 0.21cm; } --> <\/a><\/p>\n<p>C\u00f3digo fonte do encontro: <a title=\"https:\/\/gist.github.com\/713616\" href=\"https:\/\/gist.github.com\/713616\" target=\"_blank\">https:\/\/gist.github.com\/713616<\/a><\/p>\n<p>anagrama.py<\/p>\n<pre>#@author Rafael Salomao \r\n#@author Natalia Marcondes \r\n#@author Marco Moura \r\n#@author Carlos Eduardo \r\n#@author Patricia Carvalho\r\n\r\nclass Anagrama:\r\n@staticmethod\r\ndef comparar(palavra1, palavra2):\r\nlista_palavra1 = Anagrama.palavra_2_lista_and_sort(palavra1)\r\nlista_palavra2 = Anagrama.palavra_2_lista_and_sort(palavra2)\r\n\r\nreturn lista_palavra1 == lista_palavra2\r\n\r\n@staticmethod\r\ndef palavra_2_lista_and_sort(palavra):\r\nlista = []\r\nlista2 = []\r\nfor i in palavra:\r\nlista.append(i)\r\n\r\nreturn sorted(lista)\r\n\r\nif __name__ == \"__main__\":\r\nprint \"Hello World\"<\/pre>\n<p>new_test.py<\/p>\n<pre>#@author Rafael Salomao \r\n#@author Natalia Marcondes \r\n#@author Marco Moura \r\n#@author Carlos Eduardo \r\n#@author Patricia Carvalho\r\n\r\nimport unittest\r\nfrom Anagrama import Anagrama\r\n\r\nclass New_TestCase(unittest.TestCase):\r\ndef test_identificar_anagrama_duas_palavras_fio_foi(self):\r\nself.assertTrue(Anagrama.comparar(\"fio\", \"foi\"))\r\n\r\ndef test_identificar_anagrama_duas_palavras_fui_foi(self):\r\nself.assertFalse(Anagrama.comparar(\"fui\", \"foi\"))\r\n\r\ndef test_lista_palavra_casa_c_a_s_a(self):\r\nself.assertEquals([\"a\",\"a\",\"c\",\"s\"],Anagrama.palavra_2_lista_and_sort(\"casa\"))\r\n\r\nif __name__ == '__main__':\r\nunittest.main()<\/pre>\n<p><strong>Retrospectiva<\/strong>:<\/p>\n<p>Bom:<\/p>\n<p>&#8211; Katas menos matem\u00e1ticos<br \/>\n&#8211; pontualidade nos hor\u00e1rios<br \/>\n&#8211; Lanchinho final<br \/>\n&#8211; uso do terminal para consulta<br \/>\n&#8211; planejamento r\u00e1pido<\/p>\n<p>Ruim:<\/p>\n<p>&#8211; Falta de um especialista na linguagem<br \/>\n&#8211; Falta de conhecimento aprofundado na linguagem<br \/>\n&#8211; uso da internet como forma de pesquisa<br \/>\n&#8211; Parar o tempo para pesquisar solu\u00e7\u00e3o, deveria fazer parte do tempo do piloto<br \/>\n&#8211; \u00faltimo dojo do python<\/p>\n<p>Pr\u00f3ximos:<\/p>\n<p>&#8211; experimentar m\u00e9todo ping pong<br \/>\n&#8211; Op\u00e7\u00f5es: Java + JUnit , JavaScript + JSUnit, Ruby + Cucumber, .Net, Android<br \/>\n&#8211; Escolhido: Ruby + Cucumber<\/p>\n<p><strong>Fotos do encontro<\/strong><\/p>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-1023 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0608\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0608-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1025\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1025'>\n\t\t\t\tCuradoras lendo seus katas para depois serem escolhidos pela plat\u00e9ia\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0610\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0610-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1026\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1026'>\n\t\t\t\tPlat\u00e9ia pensando na escolha dos katas (Hoje os katas foram t\u00e3o bons que foi dificil escolher kk)\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0611\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0611-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1027\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1027'>\n\t\t\t\tPatr\u00edcia como piloto e Nat\u00e1lia como co-piloto\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0612\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0612-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1028\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1028'>\n\t\t\t\tNat\u00e1lia como piloto e Rafael como co-piloto\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0614\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0614-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1030\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1030'>\n\t\t\t\tRafael como piloto e Marco como co-piloto,  conversando para saber melhor solu\u00e7\u00e3o para o problema\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0615\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0615-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1031\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1031'>\n\t\t\t\tMarco como piloto e Carlos como co-piloto\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.cancaonova.com\/desenvolvimentoti\/coding-dojo-16-descobrindo-anagramas\/lgim0620\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/files\/\/var\/www\/blog.cancaonova.com\/wp-content\/blogs.dir\/3309\/files\/\/2010\/11\/lgim0620-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1032\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1032'>\n\t\t\t\tCarlos como piloto e Patr\u00edcia como co-piloto\n\t\t\t\t<\/dd><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>\u00daltimo Dojo de Python, deixando saudade, e estimulo para estudar mais e se aprimorar.O encontro foi muito tranquilo, escolhemos um kata menos matem\u00e1tico o que diminuiu o &#8220;stress&#8221; e tempo no planejamento. Em alguns momentos tivemos dificuldades na sintaxe mas&#8230;<\/p>\n","protected":false},"author":4437,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[36209,36211],"tags":[103619,103621],"_links":{"self":[{"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/posts\/1023"}],"collection":[{"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/users\/4437"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":14,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/posts\/1023\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cancaonova.com\/desenvolvimentoti\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}