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
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Into the Great Unknown - MozCon
thekraken
33
1.5k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Become a Pro
speakerdeck
PRO
26
5k
Being A Developer After 40
akosma
87
590k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
The Language of Interfaces
destraynor
154
24k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
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
ϑΟϤϧυ͞ΜͰങͬͯΒͬͯɺ ΈΜͳͰճ͠ಡΈ͠·͠ΐ͏ʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·͠ ͨʂ