Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Complexity

 Complexity

A short talk about complexity, delivered at Bath Ruby 2016

John Cinnamond

March 11, 2016
Tweet

More Decks by John Cinnamond

Other Decks in Programming

Transcript

  1. $ bundle install Using rake 10.5.0 Using rails 4.2.5.2 Installing

    ab-testing-because-business Using node 6.0.1 Using vb.net 14.0 Using microsoft-iis 5.1
  2. $ bundle install Using rake 10.5.0 Using peoples-front-of-judea 1.4.3 Using

    judean-peoples-front 2.1.0 Using judean-popular-peoples-front 0.9 Using ab-testing-because-business 1.0 Installing awesome-copy-change 0.1 Using romanes-eunt-domus 1.0.0-beta3 A møøse once bit my sister…
  3. AwesomeCopyChange.config do |config| change 'romanus eunt domus', to: 'romani ite

    domum' end config/initializers/awesome_copy_change.rb
  4. AwesomeCopyChange.config do |config| change 'romanus eunt domus', to: 'romani ite

    domum' end config/initializers/awesome_copy_change.rb :shipit:
  5. $ find vendor/bundle/ruby/2.3.0/gems -name \*.rb | egrep -v 'spec|test' |

    xargs cat | grep '^\s*def\b' | wc -l 35454 (methods)
  6. $ find vendor/bundle/ruby/2.3.0/gems -name \*.rb | egrep -v 'spec|test' |

    xargs cat | grep '^\s*def method_missing\b' | wc -l 35454 (methods) 93 (method_missing)
  7. $ find vendor/bundle/ruby/2.3.0/gems -name \*.rb | egrep -v 'spec|test' |

    xargs cat | grep '^\bdefine_method\b' | wc -l 35454 (methods) 93 (method_missing) 205 (define_method)
  8. $ find app -name '*.rb' | xargs cat | grep

    -v '^\s*#' | grep -v '^\s*$' | wc -l 1007
  9. $ find vendor/bundle/ruby/2.3.0/gems -name \*.rb | egrep -v 'spec|test' |

    xargs cat | grep -v '^\s*#' | grep -v '^\s*$' | wc -l 377195