Slide 1

Slide 1 text

຋༁͠Α͏ͥ Crystal.tokyo #8 2018.11.2 Masayuki Uchida a.k.a msky

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

https://qiita.com/advent-calendar/2018/crystal

Slide 5

Slide 5 text

ͱ͜ΖͰւ֎Ͱ͸

Slide 6

Slide 6 text

https://pragprog.com/book/crystal/programming-crystal

Slide 7

Slide 7 text

Զ͕ ຋༁ʢ΍ʣΒͶ͹ ͳΒ͵

Slide 8

Slide 8 text

ओͳ಺༰ • Diving Into Crystal • Crystal Foundations • Typing Variables and Controlling the Flow • Organizing Code In Methods and Procs • Using Classes and Structs • Working With Modules • Managing Projects • Advanced Features • Web Frameworks and the Shard Ecosystem

Slide 9

Slide 9 text

Diving Into Crystal • Rubyͱ͜Μͳʹࣅ͍ͯΔɺ͚Ͳͪΐͬͱҧ͏ • ੩తܕ෇͚ͷϏϧυ͢ΔݴޠͳͲ • ύϑΥʔϚϯεͷҧ͍ͱ͔ •

Slide 10

Slide 10 text

Diving Into Crystalଓ͖ • Sinatra΍KemalͱͷύϑΥʔϚϯεͷൺֱ • ͜Μͳͱ͜ΖͰ࢖͏ͱ͍͍ײ͡ͷྫ • Fast web apps that look and feel like Ruby • Fast Ruby extensions • Backend processing • Web services and microservices • Command-line applications • Data science applications • Games and graphic renderers • Small utility programs • IoT applications

Slide 11

Slide 11 text

Crystal Foundations • νϡʔτϦΞϧͷষ • جຊతͳܕͷઆ໌΍ߏจ

Slide 12

Slide 12 text

Typing Variables and Controlling the Flow • Crystalݻ༗ͷܕม׵ͳͲ • ഑ྻͳͲͱܕ͕ؔ܎͢Δ৔߹ • ܕਪ࿦ • ྫ֎ॲཧͷઆ໌ • Nilableʹ͍ͭͯͷઆ໌

Slide 13

Slide 13 text

Organizing Code In Methods and Procs • ϝιουͱProcͷ࢖͍ํʢͦͷ·· • ܕࢦఆͷ࢓ํͱ͔ɺΦʔόʔϩʔυͷઆ໌

Slide 14

Slide 14 text

Using Classes and Structs • ClassͱStructsʹ͍ͭͯ • ͜ΕΒͷಈ͖ͷҧ͍ͱ༻్ʹ͍ͭͯ

Slide 15

Slide 15 text

ॴײ • ΍΍ݹΊ • ผهͰݱࡏͱͷόʔδϣϯͷҧ͍ʹ͍ͭͯͷ஫ऍ͕͍Δ͔΋ • ͨͩ΍͸Γઆ໌͸ஸೡͳͷͰ຋༁ʢ΍ʣΔՁ஋͸͋Δͱࢥ ΘΕΔ • ࢀՃ͍ͨ͠ਓ͸ • github/msky026