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
230
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
Why did my proposals get rejected?
okuramasafumi
1
440
A suggestion for the future of RDoc
okuramasafumi
1
66
15 JSON serializers for Ruby
okuramasafumi
2
110
Tech Events, Should We See Them from the Outside or the Inside?
okuramasafumi
1
39
Creating gems 101
okuramasafumi
1
82
How NOT to make your DSL terrible
okuramasafumi
0
280
オブジェクトしこう
okuramasafumi
2
210
Debugging Alba
okuramasafumi
1
190
Learning Ruby
okuramasafumi
5
560
Other Decks in Technology
See All in Technology
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
220
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
隣接領域をBeyondするFinatextのエンジニア組織設計 / beyond-engineering-areas
stajima
1
270
強いチームと開発生産性
onk
PRO
33
11k
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
380
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
190
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
社内で最大の技術的負債のリファクタリングに取り組んだお話し
kidooonn
1
540
いざ、BSC討伐の旅
nikinusu
2
770
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
940
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
What's new in Ruby 2.0
geeforr
343
31k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Bash Introduction
62gerente
608
210k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Practical Orchestrator
shlominoach
186
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
For a Future-Friendly Web
brad_frost
175
9.4k
Designing for Performance
lara
604
68k
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
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ