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
lsコマンドを作る際に助けになりそうな10の知識.pdf
Search
shita
February 03, 2020
1
220
lsコマンドを作る際に助けになりそうな10の知識.pdf
shita
February 03, 2020
Tweet
Share
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Unsuck your backbone
ammeep
668
57k
We Have a Design System, Now What?
morganepeng
50
7.2k
Code Reviewing Like a Champion
maltzj
520
39k
Ruby is Unlike a Banana
tanoku
96
11k
Statistics for Hackers
jakevdp
796
220k
RailsConf 2023
tenderlove
29
900
Why Our Code Smells
bkeepers
PRO
334
57k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
A designer walks into a library…
pauljervisheath
202
24k
Typedesign – Prime Four
hannesfritz
40
2.4k
Rails Girls Zürich Keynote
gr2m
94
13k
Transcript
lsίϚϯυΛ࡞Δࡍʹ ॿ͚ʹͳΓͦ͏ͳ10ͷࣝ ۦ͚ग़͠ΤϯδχΞͷͨΊͷɺॳΊͯͷLTձ@FJORD
ࣗݾհ • @shita1112 • ϑΟϤϧυϒʔτΩϟϯϓଔ • mofmof inc.ʢϑϦʔϥϯεʣ
ϑΟϤϧυͷ໊ϓϥςΟε ʰlsίϚϯυΛ࡞Δʱ
lsίϚϯυΛRubyͰ࡞ͬͯ͘ ͍ͩ͞ʢཁʣ
RubyͷίʔυΛॻ͘ͱ͍͏ҙຯͰFizzBuzzͱࣅͯΔ ͨͩFizzBuzz͕10ߦఔͳͷʹରͯ͠lsίϚϯυ 100~200ߦఔʹͳΔͷͰɺΦϒδΣΫτࢦͳͲͷ ͕ࣝඞཁʹͳͬͯ͘Δ
ͨͩಈ͚ͩ͘Ͱବ classΛͬͯߏԽͨ͠ΓɺಡΈ͍͢ ίʔυΛॻ͍ͨΓɺͪΌΜͱ࣮ફతͳίʔ υΛॻ͔ͳ͍ͱ͍͚ͳ͍
ͭ·ΓɺΉ͍ͣ
ͦ͜Ͱ͓ͬͯ͘ͱཱͪͦ ͏ͳ10ͷࣝΛڞ༗͠·͢ lsίϚϯυ͡Όͳͯ͘ී௨ʹRubyͷϓϩάϥϜΛ࡞Δࡍʹཱͪ·͢
1. ඞཁͳϝιουΛ୳͍ͨ͠ -> pry σϞ
2. σόοά͍ͨ͠ -> pry-byebug σϞ
3. RubyͷྲّྀͰॻ͖͍ͨ -> ruby-style-guide - Ruby৭Μͳॻ͖ํ͕Ͱ͖Δ - Ͱॻ͖ํ͋Δఔἧ͑ͨ΄͏͕ಡΈ͍͢ - ڧ͍ਓୡͷؒͰڞ༗͞Ε͍ͯΔRubyͷॻ͖ํͷϕετϓϥΫςΟεू
- ඞಡ https://github.com/fortissimo1997/ruby-style-guide/blob/japanese/ README.ja.md
4. RubyͷྲّྀΛڧ੍͍ͨ͠ -> rubocop σϞ
5. Ϋϥεઃܭͷࢦ͕ཉ͍͠-> Sandi Metz' Rules - ΦϒδΣΫτࢦઃܭ࣮ફΨΠυͷஶऀͰ͋ΔSandi Metz͕ఏএ͠ ͨ4ͭͷϧʔϧ -
Ϋϥε100ߦҎԼ - ϝιου5ߦҎԼ - ϝιουҾ4ͭҎԼ - ΞΫγϣϯͷΠϯελϯεม1͚ͭͩ https://thoughtbot.com/blog/sandi-metz-rules-for-developers
6. RubyͷΠσΟΦϜΛ͍͍ͨ -> Effective Ruby
7. ಡΈ͍͢ίʔυΛॻ͖͍ͨ -> Ϧʔμϒϧίʔυ ݱͰνʔϜͰ։ൃ͢ΔɻͦͷͨΊʰଞͷਓ͕࠷࣌ؒͰཧղͰ͖ΔʱίʔυΛॻ͘͜ ͱ͕େࣄ
8. ΫϥεઃܭͳΜΘ͔ΒΜ -> ΦϒδΣΫτࢦઃܭ࣮ફΨΠυ - ϙϦϞʔϑΟζϜ/ΧϓηϧԽ/ܧঝ/μοΫλΠϐϯά /SOLID/SRP/OCP/LSP/... - ΦϒδΣΫτࢦͷຊJavaͰॻ͔Ε͍ͯΔ͜ͱ͕ ଟ͍͕ɺ͜ΕRuby͚ʹॻ͔Ε͍ͯΔ
- ໊ஶɻ͚ͩͲ͍͠
9. ڧ͍printσόοάΛ͍ͨ͠ -> tapp σϞ
10. ྑ͍ίʔυʹ͍ͨ͠ -> ϦϑΝΫλϦϯά:RubyΤσΟγϣϯ
Ұ൪Φεεϝʂ
ઈ൛
3/21ʹ෮ץʂ
8,800ԁʂ(੫ࠐΈ)
None
ϑΟϤϧυ͞ΜͰങͬͯΒͬͯɺ ΈΜͳͰճ͠ಡΈ͠·͠ΐ͏ʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·͠ ͨʂ