Slide 1

Slide 1 text

Java԰͞Μ͕GoͷFAQΛ ಡΜͰΈͨ 2018/12/03 Gopherಓ৔#4 ଔۀࣜˍLTେձ

Slide 2

Slide 2 text

ࣗݾ঺հ —@su_kun_1899 —αʔόαΠυΤϯδχΞ —Java԰ —࠷ۙ͸΋ͬͺΒKotlin —Go͸·ͩझຯ

Slide 3

Slide 3 text

࿩͢͜ͱ —GoͷFAQ —https://golang.org/doc/faq

Slide 4

Slide 4 text

Q. What's the origin of the gopher mascot? https://golang.org/doc/gopher/run.png

Slide 5

Slide 5 text

A. ϗϦωζϛͰ͢ https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Pocket-GopherAno-Nuevo-SP.jpg/1084px-Pocket-GopherAno-Nuevo-SP.jpg

Slide 6

Slide 6 text

—஍Լʹ޿େͳτϯωϧΛ۷Δ —ϛωιλभͷѪশͷͻͱͭ͸ɺ"the Gopher State" —ϧωɾϑϨϯνͱ͍͏ਓ͕ॻ͍ͨ

Slide 7

Slide 7 text

Javaͩͱ https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Duke3D.png/440px-Duke3D.png

Slide 8

Slide 8 text

Q. Is Go an object-oriented language?

Slide 9

Slide 9 text

A. Yes and no.

Slide 10

Slide 10 text

—ܕͱϝιου͸͋Δ —ܧঝ͸ͳ͍

Slide 11

Slide 11 text

Javaͩͱ public class FooImpl implements Foo { @Override public void hello() { // do something } }

Slide 12

Slide 12 text

Q.Why does Go not have generic types?

Slide 13

Slide 13 text

A. ෳࡶʹͳΔ͔Β

Slide 14

Slide 14 text

—ࠓޙ௥Ճ͞ΕΔՄೳੑ͸͋Δ —ศར͕ͩɺෳࡶ͞Λ࣋ͪࠐΉ

Slide 15

Slide 15 text

Javaͩͱ List values = new ArrayList();

Slide 16

Slide 16 text

Q. Why does Go not have exceptions?

Slide 17

Slide 17 text

A. ෳࡶʹͳΔ͔Β

Slide 18

Slide 18 text

—ྫ֎Λ੍ޚߏ଄ʹ݁ͼ෇͚ΔͱɺෳࡶͳίʔυʹͳΔ —ී௨ͷΤϥʔΛྫ֎ʹͯ͠͠·͍͕ͪ —Defer, Panic, and Recover

Slide 19

Slide 19 text

Javaͩͱ —ݕࠪྫ֎ —ඇݕࠪྫ֎ —Error

Slide 20

Slide 20 text

❤ Go ❤ Java