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
68
4.4k
The Language of Interfaces
destraynor
155
24k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
360
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.5k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Pragmatic Product Professional
lauravandoore
32
6.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
A better future with KSS
kneath
238
17k
Building an army of robots
kneath
302
45k
The Cult of Friendly URLs
andyhume
78
6.1k
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Ͱॻ͍͍ͯ͘ ͧ
͋Γ͕ͱ͏͍͟͝·ͨ͠