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
64
息をするようにエラー監視する
sukun1899
0
3.1k
複雑なドメインに泥臭く立ち向かう
sukun1899
8
7.6k
SpringBootとMyBatisでデータベースを可視化する
sukun1899
4
2.4k
ぼくらのコードレビュー
sukun1899
3
630
モノリスの分割
sukun1899
4
770
なまえをだいじに
sukun1899
1
480
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
A designer walks into a library…
pauljervisheath
204
24k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
A better future with KSS
kneath
238
17k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Why Our Code Smells
bkeepers
PRO
335
57k
Producing Creativity
orderedlist
PRO
341
39k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
4 Signs Your Business is Dying
shpigford
181
21k
Embracing the Ebb and Flow
colly
84
4.5k
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