Slide 1

Slide 1 text

DON’T FEED THE ZOMBIES! Ernesto Tagwerker @etagwerker

Slide 2

Slide 2 text

MEET THE ZOMBIES

Slide 3

Slide 3 text

¿Cuántos zombies conocés?

Slide 4

Slide 4 text

Nuestro mundo está lleno de zombies

Slide 5

Slide 5 text

ERNESTO TAGWERKER Co-Founder @ Ombu Labs

Slide 6

Slide 6 text

1. Construimos 2. Construimos PMVs 3. Mantenemos zombies

Slide 7

Slide 7 text

Mantenibilidad no es algo sexy

Slide 8

Slide 8 text

Node.js, Clojure, Scala, etc. No es

Slide 9

Slide 9 text

Aún así es más importante

Slide 10

Slide 10 text

¿Qué es la calidad?

Slide 11

Slide 11 text

“Que cumpla con los requerimientos”

Slide 12

Slide 12 text

Calidad (ISO 9126) • Funcionalidad • Confiabilidad • Usabilidad • Eficiencia • Mantenibilidad • Portabilidad

Slide 13

Slide 13 text

1. Funcionalidad ISO 9126

Slide 14

Slide 14 text

2. Confiabilidad ISO 9126

Slide 15

Slide 15 text

3. Usabilidad ISO 9126

Slide 16

Slide 16 text

4. Eficiencia ISO 9126

Slide 17

Slide 17 text

5. Mantenibilidad ISO 9126

Slide 18

Slide 18 text

6. Portabilidad ISO 9126

Slide 19

Slide 19 text

Cómo construir software mantenible

Slide 20

Slide 20 text

Paradigmas de programación

Slide 21

Slide 21 text

Diseño orientado a objetos

Slide 22

Slide 22 text

Patrones de diseño

Slide 23

Slide 23 text

TDD is not dead

Slide 24

Slide 24 text

Testing

Slide 25

Slide 25 text

Experiencia

Slide 26

Slide 26 text

Un problema real

Slide 27

Slide 27 text

Tu próximo proyecto

Slide 28

Slide 28 text

“Si igual yo no lo voy a mantener”

Slide 29

Slide 29 text

Deuda técnica Decisiones pobres

Slide 30

Slide 30 text

Menos tests Deuda técnica

Slide 31

Slide 31 text

Menos mantenible Menos tests

Slide 32

Slide 32 text

0 tests

Slide 33

Slide 33 text

“El código tiene calidad”

Slide 34

Slide 34 text

Alternativas

Slide 35

Slide 35 text

“Mata a ese zombie”

Slide 36

Slide 36 text

“Noooooooo”

Slide 37

Slide 37 text

Mantener o no mantener

Slide 38

Slide 38 text

Culpa del otro desarrollador

Slide 39

Slide 39 text

The sleepless developer

Slide 40

Slide 40 text

Cómo convivir con un zombie

Slide 41

Slide 41 text

Crear tests de integración

Slide 42

Slide 42 text

describe 'the homepage' do it 'should not explode' do visit '/home' expect(page).to have_content 'Welcome!' end end

Slide 43

Slide 43 text

Configurar integración continua

Slide 44

Slide 44 text

• Travis CI • Circle CI • TDDium (Solano Labs) • Codeship

Slide 45

Slide 45 text

Run flog

Slide 46

Slide 46 text

ombushop$ flog -g .! 24226.6: flog total! 9.7: flog/method average! ! 2511.0: Admin total! 87.7: Admin::TaxonsController#update_before ./ app/controllers/admin/taxons_controller.rb:59! 79.1: Admin::ApplicationHelper#show_wizard? ./ app/helpers/admin/application_helper.rb:114! 60.3: Admin::VariantsController#create ./app/ controllers/admin/variants_controller.rb:92! 48.7: Admin::OrdersController#update ./app/ controllers/admin/orders_controller.rb:24! ...!

Slide 47

Slide 47 text

dinero_mail_ipn$ flog -g .! 584.9: flog total! 8.0: flog/method average! ! 189.1: TestDineroMailIpn total! 62.7: TestDineroMailIpn::context(when I query the Dinero Mail API via GET)::should#return OK with 1 payment ./test/test_dinero_mail_ipn.rb:20! 62.7: TestDineroMailIpn::context(when I query the Dinero Mail API via GET)::should#return OK with 2 payments ./test/test_dinero_mail_ipn.rb:43! 19.2: TestDineroMailIpn::context(when I query the Dinero Mail API via GET)::should#return Error for the query ./test/test_dinero_mail_ipn.rb:66!

Slide 48

Slide 48 text

Code Climate

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

Divide and conquer

Slide 52

Slide 52 text

OmbuShop

Slide 53

Slide 53 text

OmbuShop Admin Core Jobs Ayuda Router API

Slide 54

Slide 54 text

CSS

Slide 55

Slide 55 text

CSS utilities quarks atoms molecules pages

Slide 56

Slide 56 text

CSS Utilities • _clearfix.scss • _reset.scss • _grid.scss • _mixins_ombu.scss

Slide 57

Slide 57 text

CSS Quarks • _lists.scss • _paragraphs.scss • _tables.scss

Slide 58

Slide 58 text

CSS Atoms • _errors.scss • _buttons.scss • _forms.scss

Slide 59

Slide 59 text

CSS Molecules • _marketing_footer.scss • _navbar.scss • _dialog.scss

Slide 60

Slide 60 text

CSS Pages • _marketing_jobs.scss • _marketing_partners.scss • _admin_products.scss

Slide 61

Slide 61 text

Conclusión

Slide 62

Slide 62 text

Further Reading • http://12factor.net/ • http://en.wikipedia.org/wiki/ISO/IEC_9126 • http://blog.codeclimate.com/blog/2013/08/07/deciphering-ruby-code-metrics/ • http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/ dp/0201633612 • http://www.amazon.com/Extreme-Programming-Explained-Embrace-Edition/ dp/0321278658 • http://www.smashingmagazine.com/2013/08/02/other-interface-atomic- design-sass/

Slide 63

Slide 63 text

¡Gracias! Ernesto Tagwerker @etagwerker