Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Java屋さんがGoのFAQを読んでみた
Search
su-kun1899
December 03, 2018
0
430
Java屋さんがGoのFAQを読んでみた
Gopher道場#4 卒業式&LT大会での発表資料です。
su-kun1899
December 03, 2018
Tweet
Share
More Decks by su-kun1899
See All by su-kun1899
はじめての Ruby と Ruby On Rails
sukun1899
0
68
息をするようにエラー監視する
sukun1899
0
3.1k
複雑なドメインに泥臭く立ち向かう
sukun1899
8
7.6k
SpringBootとMyBatisでデータベースを可視化する
sukun1899
4
2.4k
ぼくらのコードレビュー
sukun1899
3
630
モノリスの分割
sukun1899
4
770
なまえをだいじに
sukun1899
1
490
Featured
See All Featured
Code Review Best Practice
trishagee
65
17k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
Thoughts on Productivity
jonyablonski
68
4.4k
Code Reviewing Like a Champion
maltzj
521
39k
Making Projects Easy
brettharned
116
6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
BBQ
matthewcrist
85
9.4k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Transcript
Java͞Μ͕GoͷFAQΛ ಡΜͰΈͨ 2018/12/03 Gopherಓ#4 ଔۀࣜˍLTେձ
ࣗݾհ —@su_kun_1899 —αʔόαΠυΤϯδχΞ —Java —࠷ۙͬͺΒKotlin —Go·ͩझຯ
͢͜ͱ —GoͷFAQ —https://golang.org/doc/faq
Q. What's the origin of the gopher mascot? https://golang.org/doc/gopher/run.png
A. ϗϦωζϛͰ͢ https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Pocket-GopherAno-Nuevo-SP.jpg/1084px-Pocket-GopherAno-Nuevo-SP.jpg
—ԼʹେͳτϯωϧΛ۷Δ —ϛωιλभͷѪশͷͻͱͭɺ"the Gopher State" —ϧωɾϑϨϯνͱ͍͏ਓ͕ॻ͍ͨ
Javaͩͱ https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Duke3D.png/440px-Duke3D.png
Q. Is Go an object-oriented language?
A. Yes and no.
—ܕͱϝιου͋Δ —ܧঝͳ͍
Javaͩͱ public class FooImpl implements Foo { @Override public void
hello() { // do something } }
Q.Why does Go not have generic types?
A. ෳࡶʹͳΔ͔Β
—ࠓޙՃ͞ΕΔՄೳੑ͋Δ —ศར͕ͩɺෳࡶ͞Λ࣋ͪࠐΉ
Javaͩͱ List<String> values = new ArrayList();
Q. Why does Go not have exceptions?
A. ෳࡶʹͳΔ͔Β
—ྫ֎Λ੍ޚߏʹ݁ͼ͚ΔͱɺෳࡶͳίʔυʹͳΔ —ී௨ͷΤϥʔΛྫ֎ʹͯ͠͠·͍͕ͪ —Defer, Panic, and Recover
Javaͩͱ —ݕࠪྫ֎ —ඇݕࠪྫ֎ —Error
❤ Go ❤ Java