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
5
Search
Masafumi Okura
July 29, 2023
Technology
0
220
5
TokyuRuby会議14
https://tokyurubykaigi.github.io/tokyu14/
Masafumi Okura
July 29, 2023
Tweet
Share
More Decks by Masafumi Okura
See All by Masafumi Okura
Creating gems 101
okuramasafumi
1
58
How NOT to make your DSL terrible
okuramasafumi
0
250
オブジェクトしこう
okuramasafumi
2
200
Debugging Alba
okuramasafumi
1
170
Learning Ruby
okuramasafumi
5
530
How to build a conference for both newbies and seasoned devs
okuramasafumi
1
1.7k
Why doesn't Ruby have Boolean class?
okuramasafumi
4
2.1k
Writing Minitest clone in 30 minutes
okuramasafumi
0
470
Developing a Vim plugin with Ruby
okuramasafumi
0
650
Other Decks in Technology
See All in Technology
『GRANBLUE FANTASY: Relink』最高の「没入感」を実現するカットシーン制作手法とそれを支える技術
cygames
1
150
フルカイテン株式会社 採用資料
fullkaiten
0
32k
サプライチェーン攻撃に備える
ryunen344
0
380
チームビルディングは"感性"で向き合おう / Team Building with Awareness
kohzas
0
270
Swift Testingのconfirmationを コードリーディング/Dive into Swift Testing confirmation
laprasdrum
2
270
フロントエンド開発事例③ Yahoo! JAPAN トップページ
lycorptech_jp
PRO
0
100
OSTという文化を組織に根付かせてみた
sansantech
PRO
2
420
Google CloudのLLM活用の選択肢を広げるVertex AIのパートナーモデル
nayuts
0
130
eBPFのこれまでとこれから
yutarohayakawa
10
3.3k
Mocking in Rust Applications
taiki45
2
420
OCI で始める!! Red Hat OpenShift / Get Started OpenShift on OCI
oracle4engineer
PRO
1
190
技術的負債解消の取り組みと専門チームのお話
bengo4com
0
340
Featured
See All Featured
Clear Off the Table
cherdarchuk
91
320k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
The Language of Interfaces
destraynor
153
23k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
Atom: Resistance is Futile
akmur
261
25k
Unsuck your backbone
ammeep
667
57k
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Creatively Recalculating Your Daily Design Routine
revolveconf
215
12k
Six Lessons from altMBA
skipperchong
26
3.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
5
490
Transcript
Neovim, LSP, Ruby TokyuRubyձٞ14 OKURA Masafumi, 2023-07-29
ࣗݾհ • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • Vimྺɿ10ʢRubyྺͱಉ͡ʂʣ • ͖ͳVimͷίϚϯυɿuʢΞϯυΡʣ
Neovim
TreeSitter
JSONͰఆٛ͞Ε ͨύʔαʔ
ΑΓྑ͍ ϋΠϥΠτͳͲ
Ruby
ඍົʹյΕ͍ͯΔ
additional_vim_regex_highlightin g = { "ruby", "vim" }
VimΈࠐΈͷ SyntaxΛ༗ޮԽ
Ͱ͖Εͨ͘͠ͳ ͍…
ੈ·͞ʹ ”େύʔαʔ࣌” * https://yui-knk.hatenablog.com/entry/2023/05/23/191049
TreeSitterͷRuby ରԠΛվળͯ͘͠ ΕΔਓɺٻΉʂ
1
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ
ωϧυϦοϓͰᔸΕΔ࠷ߴͷ ᘖᘣ TokyuRubyձٞ14 OKURA Masafumi, 2023-07-29
ࣗݾհ • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ͖ͳᘖᘣ౾ͷḦΓํɿϑϨϯνϩʔετ • ͖ͳ٤ళɿೣ೬ࣷ
ᘖᘣͷᔸΕํ
ϖʔύʔυϦοϓ • ϝϦοτ • ָʢಛʹܕ͚ย͚ʣ • நग़ํ๏ΛͰ͖Δ • σϝϦοτ •
ຯ͕୶ധʹͳΓ͕ͪʢϖʔύʔ͕ΦΠϧΛٵ͏ͷͰʣ • ϑΟϧλʔͷิॆ͕ඞཁ
ϑϨϯνϓϨε • ϝϦοτ • ؆୯ͰᔸΕ͍͢ • ΦΠϧ͕๛ͰίΫ͕͋Δ • σϝϦοτ •
ث۩ͷআ͕େม • คͬΆ͘ͳΔ • ࡉ͔͍ௐઅۤख
ωϧυϦοϓ • ϝϦοτ • ΦΠϧ͕దʹग़͍ͯΔ • நग़ํ๏ΛͰ͖Δ • σϝϦοτ •
ث۩ʢϑΟϧλʔʣͷ͓खೖΕ͕໘
ωϧυϦοϓ͕ Ұ൪ඒຯ͍͠ ͱࢥ͏
2
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ
ActiveSupportͷIn fl ectorʹ ͍ͭͯ TokyuRubyձٞ14 OKURA Masafumi, 2023-07-29
ࣗݾհ • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ͖ͳActiveSupportͷΫϥεɿIn fl ector •
ਪ͠Railsίϛολʔɿbyroot
In fl ector
୯ܗͱෳܗΛ มͨ͠Γ͢Δ
camelize
underscore
ٯͷಈ͖Λ͢Δ
ҙ
camelize(underscore('SSLError')) # => "SslError"
3
͝ਗ਼ௌʢུʣ
Kaigi on Rails CFPͷ͓Βͤ TokyuRubyձٞ14 OKURA Masafumi, 2023-07-29
ࣗݾհ • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ՝֎׆ಈɿKaigi on RailsͷӡӦ •
ߦͬͯΈ͍ͨΧϯϑΝϨϯεɿEuruko
Kaigi on Rails
Call for Papers (Proposals)
7݄31·Ͱʂ
https:// okuramasafumi.hate nablog.jp/entry/ 2023/07/12/182236
ϓϩϙʔβϧΛ ௨͢ςΫχοΫ
1. Ξϐʔϧ͢Δϙ ΠϯτΛ໌֬ʹ͢ Δ
2. ௌऺΛ໌֬Խ͢ Δ
3. ྔΛॻ͘
ຊฤ
10݄27,28
ઙڮ ώϡʔϦοΫϗʔϧ& ΧϯϑΝϨϯε
4
͝ਗ਼ௌʢུʣ
RubyͰϋϩʔϫʔϧυ͢Δ 31൪ͷํ๏ TokyuRubyձٞ14 OKURA Masafumi, 2023-07-29
ࣗݾհ • ໊લɿେխ࢙ • ॴଐɿϑϦʔϥϯε • ͖ͳRubyͷϝιουɿinstance_eval • ͖ͳgemɿAlbaʢࣗ࡞ࣗԋʣ
Ruby30प Πϕϯτ
ʮRubyͰϋϩʔϫʔϧυ͢ Δ30ͷํ๏ʯ
31൪ͷํ๏
TokyuRubyձٞ
%W(T H o e k l y l u o
R , u \u0020 b w y o K r a l i d g ! i).select.with_index {|s, i| i.odd? }.join
Hello, world!
TokyuRubyKaigi
5
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ