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
490
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Faster Mobile Websites
deanohume
305
30k
The Cost Of JavaScript in 2023
addyosmani
45
7k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Scaling GitHub
holman
458
140k
Building Your Own Lightsaber
phodgson
103
6.1k
The Cult of Friendly URLs
andyhume
78
6.1k
A Philosophy of Restraint
colly
203
16k
How to train your dragon (web standard)
notwaldorf
88
5.7k
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