Slide 1

Slide 1 text

GRAND UNIFICATION THEORY BRIAN FORD @brixen BARUCO 2012 }WRITING & RUNNING CODE

Slide 2

Slide 2 text

RUBINIUS

Slide 3

Slide 3 text

I want to change how we write and run code

Slide 4

Slide 4 text

debugger profiler coverage type checker editor

Slide 5

Slide 5 text

Smalltalk

Slide 6

Slide 6 text

writing code is a function of running code

Slide 7

Slide 7 text

editors push around characters

Slide 8

Slide 8 text

The board swam wistfully through the narrow sky.

Slide 9

Slide 9 text

Spell checkers

Slide 10

Slide 10 text

Autocorrect?

Slide 11

Slide 11 text

Programming

Slide 12

Slide 12 text

Math Algorithms TDD SOLID Testing Patterns Refactoring Agile Design

Slide 13

Slide 13 text

“good design communicates intention”

Slide 14

Slide 14 text

com-mu-ni-ca-tion noun the imparting or exchange of information or news

Slide 15

Slide 15 text

Implementation Patterns by Kent Beck

Slide 16

Slide 16 text

Programming artifacts

Slide 17

Slide 17 text

What makes good communication?

Slide 18

Slide 18 text

clear adjective obvious or unambiguous

Slide 19

Slide 19 text

sim-ple adjective uncomplicated in form, nature or design

Slide 20

Slide 20 text

rel-e-vant adjective closely connected or appropriate to the matter at hand

Slide 21

Slide 21 text

pre-cise adjective exactness or accuracy of expression or detail

Slide 22

Slide 22 text

me-di-um noun a means by which something is communicated or expressed

Slide 23

Slide 23 text

tone noun a manner of expression

Slide 24

Slide 24 text

safe adjective protected from or not exposed to danger or risk

Slide 25

Slide 25 text

open adjective not closed or blocked up free from obstructions

Slide 26

Slide 26 text

programming language as medium

Slide 27

Slide 27 text

Dynamically Typed Language

Slide 28

Slide 28 text

type noun a category of things having common characteristics

Slide 29

Slide 29 text

A.const_set :B, 1

Slide 30

Slide 30 text

def a.b(x) @b = x end

Slide 31

Slide 31 text

A = Class.new

Slide 32

Slide 32 text

metaprogramming

Slide 33

Slide 33 text

Animal = Object.clone Cat = Animal.clone

Slide 34

Slide 34 text

compute with values that pass messages

Slide 35

Slide 35 text

Typed

Slide 36

Slide 36 text

Dynamic Language

Slide 37

Slide 37 text

dynamic languages communicate better

Slide 38

Slide 38 text

a.map { |x| x.y }

Slide 39

Slide 39 text

a = [1, “x”, nil]

Slide 40

Slide 40 text

correctness vs safety

Slide 41

Slide 41 text

How do we run code?

Slide 42

Slide 42 text

exploratory testing development deployment learning

Slide 43

Slide 43 text

Rubinius precise GC concurrency JIT compiler

Slide 44

Slide 44 text

$ rbx irb(main):001:0> def hello irb(main):002:1> puts "hi" irb(main):003:1> end => #

Slide 45

Slide 45 text

def hello(name) puts “hi #{name}” end

Slide 46

Slide 46 text

================ :hello ================ Arguments: 1 required, 0 post, 1 total Arity: 1 Locals: 1: name Stack size: 4 Line: 1 Lines to IP: 0000: push_self 0001: push_literal "hi " 0003: push_local 0 # name 0005: allow_private 0006: meta_to_s :to_s 0008: string_build 2 0010: allow_private 0011: send_stack :puts, 1 0014: ret ----------------------------------------

Slide 47

Slide 47 text

What can we do?

Slide 48

Slide 48 text

production vs testing

Slide 49

Slide 49 text

feature maps

Slide 50

Slide 50 text

type analysis

Slide 51

Slide 51 text

data flow analysis

Slide 52

Slide 52 text

error analysis

Slide 53

Slide 53 text

compiled code database

Slide 54

Slide 54 text

Challenges

Slide 55

Slide 55 text

information display

Slide 56

Slide 56 text

data supports decisions

Slide 57

Slide 57 text

Do we need tests?

Slide 58

Slide 58 text

blinking cursor = blank stare

Slide 59

Slide 59 text

in-sight noun the capacity to gain an accurate and deep intuitive understanding of a person or thing

Slide 60

Slide 60 text

Thank You

Slide 61

Slide 61 text

rubini.us brixen.io