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
240
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
470
A suggestion for the future of RDoc
okuramasafumi
1
69
15 JSON serializers for Ruby
okuramasafumi
2
120
Tech Events, Should We See Them from the Outside or the Inside?
okuramasafumi
1
44
Creating gems 101
okuramasafumi
1
84
How NOT to make your DSL terrible
okuramasafumi
0
310
オブジェクトしこう
okuramasafumi
2
220
Debugging Alba
okuramasafumi
1
200
Learning Ruby
okuramasafumi
5
570
Other Decks in Technology
See All in Technology
kargoの魅力について伝える
magisystem0408
0
200
Amazon SageMaker Unified Studio(Preview)、Lakehouse と Amazon S3 Tables
ishikawa_satoru
0
150
Storage Browser for Amazon S3
miu_crescent
1
130
コンテナセキュリティのためのLandlock入門
nullpo_head
2
320
あの日俺達が夢見たサーバレスアーキテクチャ/the-serverless-architecture-we-dreamed-of
tomoki10
0
420
成果を出しながら成長する、アウトプット駆動のキャッチアップ術 / Output-driven catch-up techniques to grow while producing results
aiandrox
0
180
C++26 エラー性動作
faithandbrave
2
670
マルチプロダクト開発の現場でAWS Security Hubを1年以上運用して得た教訓
muziyoshiz
2
2.1k
ハイテク休憩
sat
PRO
2
120
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
180
Jetpack Composeで始めるServer Cache State
ogaclejapan
2
160
非機能品質を作り込むための実践アーキテクチャ
knih
2
660
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Building Adaptive Systems
keathley
38
2.3k
A Tale of Four Properties
chriscoyier
157
23k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Six Lessons from altMBA
skipperchong
27
3.5k
Typedesign – Prime Four
hannesfritz
40
2.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
For a Future-Friendly Web
brad_frost
175
9.4k
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
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ