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

Lightning Talk - Call Graphs

Lightning Talk - Call Graphs

Gain insights into how behaviour is being invoked and avoid common pitfalls through Call Graph Diagrams.

James Moriarty

April 12, 2019
Tweet

More Decks by James Moriarty

Other Decks in Technology

Transcript

  1. FUTURE MEDIA LAB

    View Slide

  2. James Moriarty

    View Slide

  3. class A
    def self.z
    B.y
    end
    end
    class B
    def self.y
    puts "hello world"
    end
    end
    A.z # => "hello world"
    “message passing is a technique
    for invoking behavior”
    A -- y -> B
    ● A is the sender
    ● B is the receiver
    ● y is the message

    View Slide

  4. “a set of vertices and edges”

    View Slide

  5. class A
    def self.x
    B.new.y
    end
    end
    class B
    def y
    1 + C.z do 1 end
    end
    end
    class C
    def self.z
    yield
    end
    end

    View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. module Poto
    module FileRepository
    module AWS
    class S3
    def all(prefix:, page:, per_page:)
    objects = client.objects(
    page: page,
    per_page: per_page,
    prefix: prefix
    )
    FileCollectionMapper.new(objects).call
    end
    end
    end
    end
    end

    View Slide

  10. View Slide