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
Quine, Polyglot, 良いコード
qnighy
4
650
rails new flags - `rails new` のフラグから Rails を構成するコンポーネントの変遷をザックリ眺める
snaka
0
1.8k
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
270
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
680
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
230
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
110
最新TCAキャッチアップ
0si43
0
220
Ethereum_.pdf
nekomatu
0
470
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.9k
flutterkaigi_2024.pdf
kyoheig3
0
210
Remix on Hono on Cloudflare Workers
yusukebe
1
320
Jakarta EE meets AI
ivargrimstad
0
390
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Designing Experiences People Love
moore
138
23k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Code Reviewing Like a Champion
maltzj
520
39k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
140
Navigating Team Friction
lara
183
14k
What's in a price? How to price your products and services
michaelherold
243
12k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
4 Signs Your Business is Dying
shpigford
180
21k
Facilitating Awesome Meetings
lara
50
6.1k
Agile that works and the tools we love
rasmusluckow
327
21k
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