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
ActiveSupport Core Extension extends your creat...
Search
m1sogi
April 13, 2016
Programming
0
110
ActiveSupport Core Extension extends your creativity.
m1sogi
April 13, 2016
Tweet
Share
More Decks by m1sogi
See All by m1sogi
Enjoy Electron Everyone!
misogi
0
74
Other Decks in Programming
See All in Programming
CSC307 Lecture 03
javiergs
PRO
1
490
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
110
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
Basic Architectures
denyspoltorak
0
680
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.2k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
AI時代の認知負荷との向き合い方
optfit
0
160
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
53
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
260
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
330
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
66
Tell your own story through comics
letsgokoyo
1
810
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
230
Transcript
ActiveSupport Core Extension extends your creativity. @m1sogi
@m1sogi Slack ͓͡͞Μ Ruby/PHP programmer C#, ڝϓϩ, Haskell, TypeScript
vscode rubocop plugin https://github.com/misogi/vscode-ruby-rubocop
Where is cool ruby code?
• Principle of Lease Surprise (࠷ۙͦ͏Ͱͳ͍) • ଟ༷ੑ
Ruby ActiveRecord ActionPack ActionView ActiveJob ActiveSupport My program! other gems
-ive support • Core extension • Autoload, Concern, Gzip, JSON,
Logger, ProxyObject, …..
gem install activesupport irb -r active_support > require ‘active_support/core_ext’ >
’’.blank? => true Install
[1,2,3].inject(0) {|a, i| a + i} [1,2,3].inject(0, :+)
> [1,2,3].sum => 6 Open class!
arr.prepend(4) arr.unshift(4) == arr << 4 arr.push(4) == arr.append(4) “name”.starts_with?(‘s’)
“name”.ends_with?(‘s’) “name”.start_with?(‘s’) “name”.end_with?(‘s’) == ==
arr.second arr[1] == arr[2] == arr.third arr.forty_two == arr[41] Equal
to self[41]. Also known as accessing "the reddit". arr[-2] arr.second_to_last ==
Object#deep_dup
String
Class#class_attribute Meta programming! DPPLQBEίʔσΟϯάඪ४
ActiveSupport -> Ruby ‘xml’.try!(:upcase) ‘xml’&.upcase s = <<DOC.strip_heredoc ग़ੈͷ֗ ͦΕদ
DOC s = <<~DOC ग़ੈͷ֗ ͦΕদ DOC
For code reading
Conclusion • active_support ͷ Ґஔ͚ͮͱ Rails ͷߟ͑ • ศརػೳʢΈͳ͞Μʣ
• ίʔυϦʔσΟϯάʹ