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
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
BBQ
matthewcrist
85
9.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Into the Great Unknown - MozCon
thekraken
33
1.5k
How GitHub (no longer) Works
holman
311
140k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
GitHub's CSS Performance
jonrohan
1030
460k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
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
ϑΟϤϧυ͞ΜͰങͬͯΒͬͯɺ ΈΜͳͰճ͠ಡΈ͠·͠ΐ͏ʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·͠ ͨʂ