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 Art of Programming - Codeland 2020
erikaheidi
52
13k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
The Invisible Side of Design
smashingmag
297
50k
Producing Creativity
orderedlist
PRO
341
39k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9k
Making Projects Easy
brettharned
115
5.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
A Philosophy of Restraint
colly
203
16k
We Have a Design System, Now What?
morganepeng
50
7.2k
Documentation Writing (for coders)
carmenintech
65
4.4k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
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
ϑΟϤϧυ͞ΜͰങͬͯΒͬͯɺ ΈΜͳͰճ͠ಡΈ͠·͠ΐ͏ʂ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·͠ ͨʂ