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
450
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
290
オブジェクトしこう
okuramasafumi
2
210
Debugging Alba
okuramasafumi
1
190
Learning Ruby
okuramasafumi
5
560
Other Decks in Technology
See All in Technology
Introduction to Works of ML Engineer in LY Corporation
lycorp_recruit_jp
0
150
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
130
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
2
240
SDNという名のデータプレーンプログラミングの歴史
ebiken
PRO
2
170
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
200
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
TypeScriptの次なる大進化なるか!? 条件型を返り値とする関数の型推論
uhyo
2
1.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
120
DynamoDB でスロットリングが発生したとき/when_throttling_occurs_in_dynamodb_short
emiki
0
270
プロダクト活用度で見えた真実 ホリゾンタルSaaSでの顧客解像度の高め方
tadaken3
0
220
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
780
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
550
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
A better future with KSS
kneath
238
17k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Music & Morning Musume
bryan
46
6.2k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Faster Mobile Websites
deanohume
305
30k
Happy Clients
brianwarren
98
6.7k
Optimizing for Happiness
mojombo
376
70k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
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
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ