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
420
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
54
息をするようにエラー監視する
sukun1899
0
3.1k
複雑なドメインに泥臭く立ち向かう
sukun1899
8
7.6k
SpringBootとMyBatisでデータベースを可視化する
sukun1899
4
2.3k
ぼくらのコードレビュー
sukun1899
3
630
モノリスの分割
sukun1899
4
770
なまえをだいじに
sukun1899
1
480
Featured
See All Featured
Producing Creativity
orderedlist
PRO
341
39k
How STYLIGHT went responsive
nonsquared
95
5.2k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Become a Pro
speakerdeck
PRO
24
5k
Designing Experiences People Love
moore
138
23k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
A better future with KSS
kneath
238
17k
Code Reviewing Like a Champion
maltzj
519
39k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
680
Raft: Consensus for Rubyists
vanstee
136
6.6k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
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