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
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
327
21k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Build The Right Thing And Hit Your Dates
maggiecrowley
31
2.3k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Fontdeck: Realign not Redesign
paulrobertlloyd
81
5.2k
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
ϑΟϤϧυ͞ΜͰങͬͯΒͬͯɺ ΈΜͳͰճ͠ಡΈ͠·͠ΐ͏ʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·͠ ͨʂ