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
3k
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
16k
出版したら終わり、にしない技術書執筆 / #DevRel #DevReljp
jnchito
0
12k
リーダブルテストコード / #vstat
jnchito
83
99k
銀座Rails版 「Rubyプログラミング問題に チャレンジ!」公開コードレビュー / ginzarails code review
jnchito
3
3k
TokyoGirls.rb Meetup vol.2 #tokyogirlsrb
jnchito
0
5.4k
○○からRubyへ / #toyamark
jnchito
3
4.7k
プログラマがコードを書きながら考えること / #ginzarails
jnchito
4
12k
なぜテストを書くの?(または書かないの?) 〜テストコードの7つの役割〜 / #tamarubykaigi01
jnchito
45
76k
Other Decks in Programming
See All in Programming
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
160
AI時代のプログラミング教育 / programming education in ai era
kishida
23
21k
Compose Navigation実装の見通しを良くする
hiroaki404
0
180
Devin , 正しい付き合い方と使い方 / Living and Working with Devin
yukinagae
1
530
アーキテクトと美学 / Architecture and Aesthetics
nrslib
12
3.1k
php-fpm がリクエスト処理する仕組みを追う / Tracing-How-php-fpm-Handles-Requests
shin1x1
5
830
NestJSのコードからOpenAPIを自動生成する際の最適解を探す
astatsuya
0
190
S3静的ホスティング+Next.js静的エクスポート で格安webアプリ構築
iharuoru
0
200
英語 × の私が、生成AIの力を借りて、OSSに初コントリビュートした話
personabb
0
100
PsySHから紐解くREPLの仕組み
muno92
PRO
1
520
SQL Server ベクトル検索
odashinsuke
0
120
‘무차별 LGTM~👍’만 외치던 우리가 ‘고봉밥 코드 리뷰’를?
hannah0731
0
530
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
328
21k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Why Our Code Smells
bkeepers
PRO
336
57k
RailsConf 2023
tenderlove
29
1k
How to Think Like a Performance Engineer
csswizardry
22
1.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
12
610
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
Testing 201, or: Great Expectations
jmmastey
42
7.4k
Building Adaptive Systems
keathley
41
2.5k
4 Signs Your Business is Dying
shpigford
183
22k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
18k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
177
52k
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