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
Unhappy Exception Handling
Search
Junichi Ito
November 15, 2018
Programming
1
2.9k
Unhappy Exception Handling
I talked at Ruby Conf 2018 lightning talks.
Junichi Ito
November 15, 2018
Tweet
Share
More Decks by Junichi Ito
See All by Junichi Ito
Enjoy Ruby programming, Enjoy Ruby community! #osrb03
jnchito
3
11k
良質な技術記事を量産する秘訣 / #MeetsPro
jnchito
22
15k
出版したら終わり、にしない技術書執筆 / #DevRel #DevReljp
jnchito
0
12k
リーダブルテストコード / #vstat
jnchito
82
96k
銀座Rails版 「Rubyプログラミング問題に チャレンジ!」公開コードレビュー / ginzarails code review
jnchito
3
2.9k
TokyoGirls.rb Meetup vol.2 #tokyogirlsrb
jnchito
0
5.3k
○○からRubyへ / #toyamark
jnchito
3
4.6k
プログラマがコードを書きながら考えること / #ginzarails
jnchito
4
12k
なぜテストを書くの?(または書かないの?) 〜テストコードの7つの役割〜 / #tamarubykaigi01
jnchito
45
74k
Other Decks in Programming
See All in Programming
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Realtime API 入門
riofujimon
0
150
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
CSC509 Lecture 09
javiergs
PRO
0
140
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.3k
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
Optimizing for Happiness
mojombo
376
70k
Documentation Writing (for coders)
carmenintech
65
4.4k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
A Philosophy of Restraint
colly
203
16k
Scaling GitHub
holman
458
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Code Reviewing Like a Champion
maltzj
520
39k
Transcript
6/)"11:&9$&15*0/)"/%-*/( +VOJDIJ*UP
5IFCBTJDTZOUBYPGFYDFQUJPOIBOEMJOHJO3VCZ begin # Exception might happen a = 1 /
0 rescue => e # Handle the exception # and the program continues puts "error: #{e.message}" end puts a Twitter @jnchito / GitHub JunichiIto
*UJTWFSZTJNQMF CVU ➤ 4PNFQSPHSBNNFSTNJTVTFFYDFQUJPOIBOEMJOH ➤ 5IFZNJTVOEFSTUBOEl*GFYDFQUJPOIBQQFOT VTFASFTDVFA5IBU`TPLBZz ➤ 5IFZCFHJOXSJUJOHASFTDVFAFWFSZXIFSF ➤
5IFZCFMJFWFl.ZQSPHSBNJTOPXSFMJBCMFz ➤/0! Twitter @jnchito / GitHub JunichiIto
40.&:&"34"(0 Twitter @jnchito / GitHub JunichiIto
*IBEBUSPVCMFBUBQSFWJPVTKPC ➤ *KPJOFEBQSFWJPVTDPNQBOZBTBOJOIPVTFTPGUXBSFFOHJOFFS ➤ *CFDBNFUIFNBJOUBJOFSPGBOFYJTUJOHJOIPVTFXFCBQQMJDBUJPO ➤ *UXBTBHPPECPZCFDBVTFJUIBECFFOSVOOJOH1&3'&$5-:GPSZFBST ➤ 0OFEBZ *IBEBOPQQPSUVOJUZUPUBMLXJUIPOFPGUIFVTFST
➤ )FTIPXFENFIJTSFHVMBSPQFSBUJPO*XBTXBUDIJOHJU ➤ )FDMJDLFEUIFTBWFCVUUPO UIFO*TBXBEJBMPHl4ZTUFNFSSz ➤ l0I XIBU 8IBU`TUIJT z ➤ l8FTFFJUWFSZPGUFO4PXF`SFDMJDLJOHUIFTBWFCVUUPOBHBJOBOEBHBJOz Twitter @jnchito / GitHub JunichiIto
None
5IFDPEFXBTMJLFUIJT OPU3BJMTBDUVBMMZ def update @post.update!(post_params) redirect_to @post rescue => e
# Just display error code flash[:alert] = "System err: #{e.code}" render :edit end ➤ /FJUIFSOPUJpFE OPSMPHHFE8FOFWFSOPUJDFEFWFOJGBOFSSPSPDDVSSFE ➤ 6OGPSUVOBUFMZ UIFVTFSTIBEBQSPDFEVSF l*GZPVHFUUIJTFSSPS LFFQPOSFUSZz ➤ 5IFSPPUDBVTF%FBEMPDLXBTJOWPMWFETPGSFRVFOUMZEVFUPBCBEUBCMFEFTJHO 6/)"11:&9$&15*0/ )"/%-*/()&3& Twitter @jnchito / GitHub JunichiIto
$PODMVTJPO8IBUDBOXFMFBSOGSPNUIJTTUPSZ ➤ 5IFNJTVTFPGFYDFQUJPOIBOEMJOHMFBETUFSSJCMFDPOTFRVFODFT ➤ 8IBUZPVDBOEPBOEXIBUZPVTIPVME PSTIPVMEO`U EPBSFEJ⒎FSFOU ➤ *GZPVEPO`UDPOpEFODFJOFYDFQUJPOIBOEMJOHT
➤ %0/05VTFASFTDVFATPDBTVBMMZ ➤ %FMFHBUFFYDFQUJPOIBOEMJOHUPGSBNFXPSLT QBHF MPHHJOH FUD ➤ "TLNFOUPSTGPSIFMQBCPVUZPVSDPEFEFTJHO ➤ -FU`TEPIBQQZFYDFQUJPOIBOEMJOH❤ Twitter @jnchito / GitHub JunichiIto
"#065.& ➤ +VOJDIJ*UP $BMMNF+VO ➤ 4PGUXBSF&OHJOFFSBU4POJD(BSEFO*OD ➤ %FWFMPQJOH3BJMTBQQMJDBUJPOT ➤
Twitter @jnchito ➤ GitHub JunichiIto
1&340/"-803,4 ➤ 5SBOTMBUFE&WFSZEBZ3BJMT5FTUJOHXJUI34QFD https://leanpub.com/everydayrailsrspec-jp
1&340/"-803,4 ➤ 8SPUFBCPPLDBMMFE*OUSPEVDUJPOUP3VCZ 1SPHSBNNJOHGPS'VUVSF1SPGFTTJPOBMT https://ruby-book.jnito.com/en While reading the manuscript, I
felt many times "Oh, this is what it means to truly understand other people's feelings." This book is definitely useful for everyone to go on to the "next step”. From the foreword by Matz English Publisher W anted! “Learn Ruby Before Rails.
5)"/,:06 Twitter @jnchito GitHub JunichiIto Book https://ruby-book.jnito.com/en