Slide 1

Slide 1 text

THIAGO SCALONE - @scalone DaFunk IOT FRAMEWORK

Slide 2

Slide 2 text

Wecolme Message! The activities of a company associated with buying and selling a product or service that includes advertising, social media, selling products Marketing is based on thinking about the business in terms of customer needs and their satisfaction marketing differs from selling because in the words of the best university of the world.

Slide 3

Slide 3 text

Wecolme Message! The activities of a company associated with buying and selling a product or service that includes advertising, social media, selling products Marketing is based on thinking about the business in terms of customer needs and their satisfaction marketing differs from selling because in the words of the best university of the world.

Slide 4

Slide 4 text

Wecolme Message! The activities of a company associated with buying and selling a product or service that includes advertising, social media, selling products Marketing is based on thinking about the business in terms of customer needs and their satisfaction marketing differs from selling because in the words of the best university of the world.

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

HAPPY! Feling 1994

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

2000

Slide 9

Slide 9 text

2000

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

2004

Slide 12

Slide 12 text

2004

Slide 13

Slide 13 text

2004

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

2007

Slide 16

Slide 16 text

2007

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Slide 20

Slide 20 text

mruby

Slide 21

Slide 21 text

THIAGO SCALONE - @scalone DaFunk IOT FRAMEWORK

Slide 22

Slide 22 text

Wecolme Message! The activities of a company associated with buying and selling a product or service that includes advertising, social media, selling products Marketing is based on thinking about the business in terms of customer needs and their satisfaction marketing differs from selling because in the words of the best university of the world.

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

THIAGO SCALONE - @scalone DaFunk IOT FRAMEWORK

Slide 26

Slide 26 text

FRAMEWORK

Slide 27

Slide 27 text

FRAMEWORK reusable set of libraries or classes for a software system

Slide 28

Slide 28 text

FRAMEWORK

Slide 29

Slide 29 text

FRAMEWORK Philosophy

Slide 30

Slide 30 text

FRAMEWORK Philosophy Design

Slide 31

Slide 31 text

FRAMEWORK Philosophy Design Good Practices

Slide 32

Slide 32 text

FRAMEWORK Philosophy Design Good Practices Backward compatibility

Slide 33

Slide 33 text

FRAMEWORK Philosophy Design Good Practices Backward compatibility Tools

Slide 34

Slide 34 text

FRAMEWORK GUIDE

Slide 35

Slide 35 text

FRAMEWORK GUIDE

Slide 36

Slide 36 text

DaFunk

Slide 37

Slide 37 text

Pillars

Slide 38

Slide 38 text

Pillars

Slide 39

Slide 39 text

Pillars Optimize for happiness

Slide 40

Slide 40 text

Pillars Optimize for happiness Cross Compilation

Slide 41

Slide 41 text

Pillars Optimize for happiness Cross Compilation Modularity

Slide 42

Slide 42 text

Pillars Optimize for happiness Cross Compilation Modularity Small better

Slide 43

Slide 43 text

Pillars Optimize for happiness Cross Compilation Modularity Small better Convention over configuratio

Slide 44

Slide 44 text

Ecosystem

Slide 45

Slide 45 text

mruby + mruby-cli Mruby-da-funk C/C++ - Posix

Slide 46

Slide 46 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb

Slide 47

Slide 47 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb

Slide 48

Slide 48 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb

Slide 49

Slide 49 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb class Device class Audio def self.adapter Device.adapter::Audio end def self.beep(tone, seconds) milli = seconds * 1000 adapter.beep(tone, milli) end end end

Slide 50

Slide 50 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb class Device class Audio def self.adapter Device.adapter::Audio end def self.beep(tone, seconds) milli = seconds * 1000 adapter.beep(tone, milli) end end end

Slide 51

Slide 51 text

lib/device/ !"" application.rb !"" audio.rb !"" crypto.rb !"" display.rb !"" io.rb !"" magnetic.rb !"" network.rb !"" printer.rb !"" runtime.rb !"" system.rb #"" version.rb class Device class Audio def self.adapter Device.adapter::Audio end def self.beep(tone, seconds) milli = seconds * 1000 adapter.beep(tone, milli) end end end

Slide 52

Slide 52 text

Adapter Pattern

Slide 53

Slide 53 text

Modularity

Slide 54

Slide 54 text

Modularity

Slide 55

Slide 55 text

Cross Compilation

Slide 56

Slide 56 text

mruby-cli

Slide 57

Slide 57 text

The Pitch

Slide 58

Slide 58 text

Why?

Slide 59

Slide 59 text

Web API Mail Analytics Communication Monitoring Authentication Errors

Slide 60

Slide 60 text

$ my-cli

Slide 61

Slide 61 text

Who Github - Hub Heroku - Heroku Toolbelt AWS - aws-cli Trello - trelo_cli Slack - slack-cli CW - cloudwalk

Slide 62

Slide 62 text

CRuby

Slide 63

Slide 63 text

CRuby Requires Ruby

Slide 64

Slide 64 text

CRuby Requires Ruby Performance (Require)

Slide 65

Slide 65 text

CRuby Requires Ruby Performance (Require) Ruby Versions

Slide 66

Slide 66 text

CRuby Requires Ruby Performance (Require) Ruby Versions Packaging Problems

Slide 67

Slide 67 text

:(

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

$ GOOS=linux GOARCH=amd64 go build $ GOOS=windos GOARCH=amd64 go build $ GOOS=darwin GOARCH=amd64 go build

Slide 70

Slide 70 text

HAPPY! Feling

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

mruby-cli

Slide 73

Slide 73 text

+ = https://github.com/hone/mruby-cli mruby-cli + = https://github.com/hone/mruby-cli mruby-cli + =

Slide 74

Slide 74 text

.RB Review

Slide 75

Slide 75 text

BYTECODE MRB .RB Review

Slide 76

Slide 76 text

BYTECODE MRB VM + MRBGEM + MRB .RB Review

Slide 77

Slide 77 text

BYTECODE MRB VM + MRBGEM + MRB BIN .RB Review

Slide 78

Slide 78 text

+ = https://github.com/hone/mruby-cli mruby-cli + = https://github.com/hone/mruby-cli mruby-cli + =

Slide 79

Slide 79 text

+ = https://github.com/hone mrub

Slide 80

Slide 80 text

+ = https://github.com/hone mrub MRuby App MRuby VM Mrbgem Cross Compilation

Slide 81

Slide 81 text

+ = https://github.com/hone mrub MRuby App MRuby VM Mrbgem Cross Compilation

Slide 82

Slide 82 text

+ = https://github.com/hone mrub MRuby App MRuby VM Mrbgem Cross Compilation

Slide 83

Slide 83 text

+ = https://github.com/hone mrub MRuby App MRuby VM Mrbgem Cross Compilation

Slide 84

Slide 84 text

+ = https://github.com/hone/mruby-cli mruby-cli + = https://github.com/hone/mruby-cli mruby-cli + =

Slide 85

Slide 85 text

Ecosystem

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

DEMO

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

Thank you @scalone THIAGO SCALONE - thiago@scalone.com.br