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
60
息をするようにエラー監視する
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
Code Review Best Practice
trishagee
64
17k
Teambox: Starting and Learning
jrom
133
8.8k
Scaling GitHub
holman
458
140k
Designing for Performance
lara
604
68k
Facilitating Awesome Meetings
lara
50
6.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Writing Fast Ruby
sferik
627
61k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
89
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
How to train your dragon (web standard)
notwaldorf
88
5.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
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