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
Gopher-dojo-lt.pdf
Search
ogidow
December 03, 2018
1
83
Gopher-dojo-lt.pdf
ogidow
December 03, 2018
Tweet
Share
More Decks by ogidow
See All by ogidow
minneにおけるGraphQLの導入事例
ogidow
0
1.2k
Elasticsearch勉強会
ogidow
0
2.8k
ドリコム若手発表会
ogidow
0
580
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Building Applications with DynamoDB
mza
91
6.1k
Unsuck your backbone
ammeep
669
57k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Into the Great Unknown - MozCon
thekraken
33
1.5k
Navigating Team Friction
lara
183
15k
Statistics for Hackers
jakevdp
796
220k
A Tale of Four Properties
chriscoyier
157
23k
How GitHub (no longer) Works
holman
311
140k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
97
Transcript
Ԯಊमଠ(.01FQBCP *OD (PQIFSಓ-5େձ 3VCZΤϯδχΞ͕(Pݴޠʹೖͯ͠ਏ͍ ͔Βָ͍͠ʹมΘͬͨॠؒ
ࣗݾհ wԮಊमଠ !PHJEPX w3BJMTͰ$UP$ͷ&$αΠτ࡞ͬͯ·͢ w3VCZྺ w(Pݴޠྺϲ݄ HPQIFSಓͷ՝࡞࣌ʹॳΊͯॻ͍ͨ
͢͜ͱ wSVCZͱҧ͍ͬͯਏ͍ͱࢥͬͨͱ͜ͱ wHPݴޠʹೖ͍ͯ͠Δ͏ͪʹHPݴޠָ͕͘͠ͳͬͨॠؒ
SVCZͱҧ͍ͯͯਏ͍ͱࢥͬͯͨ͜ͱ
͜Ε͘Β͍ݴޠϨϕϧͰ༻ҙͯ͠ΔΖ
ྫ͑ wྻ ͘͠εϥΠε ΛٯॱͰग़ྗ͢Δ
SVCZͩͱ array = ["hoge", "fuga", "foo"] p array.reverse
(Pݴޠͩͱ ۪ʹ࣮ package main import ( "fmt" ) func main()
{ arr := []string{"hoge", "fuga", "foo"} fmt.Println(reverseArray(arr)) } func reverseArray(arr []string) []string { maxLen := len(arr) res := []string{} for i := maxLen - 1; i >= 0; i-- { res = append(res, arr[i]) } return res }
͜͏͢Δ͔͠ͳ͍ͷ͔ʜ
HPʹJOUFSGBDFʹΑͬͯఔΑ͘நԽ͞ Εͨඪ४ϥΠϒϥϦ܈ͱϢʔβఆٛܕ͕ଘ ࡏ͢Δ
TPSU3FWFSTF
TPSU3FWFSTF wTUSJOHͷྻ ·ͨεϥΠε ʹJOUFSGBDF͕࣮͞Ε͍ͯͳ͍ͷ Ͱͦͷ··Ͱ͑ͳ͍
࣮͞Ε͍ͯͳ͍ͷͳΒ࣮ͯ͋͛͠ Εྑ͍͡Όͳ͍
None
wSVCZͷΑ͏ʹϓϦϛςΟϒܕ͕ͳΜ͔ศརϝιου͍࣋ͬͯΔͱ͍͏ ͜ͱͳ͍ wͨͩ५ͳඪ४ύοέʔδ܈͕JOUFSGBDFʹΑͬͯྑ͍ײ͡ʹநԽ ͞Ε͍ͯΔ wϢʔβఆٛܕͱ͍͏ڧྗͳݴޠ༷͋Γ࣍ୈͰेͳදݱྗΛ ൃش͢Δ
ʹ࣍ୈͰSVCZΑΓදݱྗ͋Δ ͷͰ
(Pݴޠָ͍͠Μ
ָ͍͚ͩ͠ͰऴΘΒͤͳ͍ͨΊʹ wͰ͖Δ͚ͩ(Pʹ৮ΕΔΑ͏ʹ͢Δ wۀͰඞཁʹͳͬͨπʔϧͱ͔Λ(PͰॻ͍͍ͯ͘ ͧ
͋Γ͕ͱ͏͍͟͝·ͨ͠