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
85
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
Thoughts on Productivity
jonyablonski
67
4.4k
What's in a price? How to price your products and services
michaelherold
243
12k
Producing Creativity
orderedlist
PRO
341
39k
Building Adaptive Systems
keathley
38
2.3k
Code Reviewing Like a Champion
maltzj
520
39k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Designing for Performance
lara
604
68k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
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Ͱॻ͍͍ͯ͘ ͧ
͋Γ͕ͱ͏͍͟͝·ͨ͠