Submit Search
Upload
Reading effective java_3rd
•
0 likes
•
237 views
繁史 河久保
Follow
社内勉強会「EffectiveJava輪読会」の資料
Read less
Read more
Technology
Report
Share
Report
Share
1 of 15
Download now
Download to read offline
Recommended
VisualVMの紹介
VisualVMの紹介
tattyamm
AngularJS+TypeScript - AngularJS 1周年記念勉強会
AngularJS+TypeScript - AngularJS 1周年記念勉強会
Masahiro Wakame
MlnagoyaRx
MlnagoyaRx
Shoichi Kakamu
Js祭り
Js祭り
Yoshihiko Hoshino
外国人旅行者向けラーメン店検索アプリを作る話@Code for KOSEN勉強会#1
外国人旅行者向けラーメン店検索アプリを作る話@Code for KOSEN勉強会#1
Yoshihiro Wada
Buildinsider OFFLINE TypeScriptの基礎から実践・利用事例まで
Buildinsider OFFLINE TypeScriptの基礎から実践・利用事例まで
Masahiro Wakame
覚醒!JavaScript
覚醒!JavaScript
Haraguchi Go
Introduction pp.js
Introduction pp.js
Mizushima Kazuhiro
Recommended
VisualVMの紹介
VisualVMの紹介
tattyamm
AngularJS+TypeScript - AngularJS 1周年記念勉強会
AngularJS+TypeScript - AngularJS 1周年記念勉強会
Masahiro Wakame
MlnagoyaRx
MlnagoyaRx
Shoichi Kakamu
Js祭り
Js祭り
Yoshihiko Hoshino
外国人旅行者向けラーメン店検索アプリを作る話@Code for KOSEN勉強会#1
外国人旅行者向けラーメン店検索アプリを作る話@Code for KOSEN勉強会#1
Yoshihiro Wada
Buildinsider OFFLINE TypeScriptの基礎から実践・利用事例まで
Buildinsider OFFLINE TypeScriptの基礎から実践・利用事例まで
Masahiro Wakame
覚醒!JavaScript
覚醒!JavaScript
Haraguchi Go
Introduction pp.js
Introduction pp.js
Mizushima Kazuhiro
Master AIRE 2014
Master AIRE 2014
CRI Paris
Biblnk
Biblnk
繁史 河久保
Thompson.Orlandi.Williams.DRAFT presentation
Thompson.Orlandi.Williams.DRAFT presentation
cassye2820
01 04 wh_james_dininno
01 04 wh_james_dininno
James Dininno
Participative tools emerging at the CRI
Participative tools emerging at the CRI
CRI Paris
Night Science 2012 booklet
Night Science 2012 booklet
CRI Paris
Dsk dunia seni visual thn 3
Dsk dunia seni visual thn 3
Nordin Laguda
India Union Budget - 2016
India Union Budget - 2016
Sangesh Sase
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
More Related Content
Viewers also liked
Master AIRE 2014
Master AIRE 2014
CRI Paris
Biblnk
Biblnk
繁史 河久保
Thompson.Orlandi.Williams.DRAFT presentation
Thompson.Orlandi.Williams.DRAFT presentation
cassye2820
01 04 wh_james_dininno
01 04 wh_james_dininno
James Dininno
Participative tools emerging at the CRI
Participative tools emerging at the CRI
CRI Paris
Night Science 2012 booklet
Night Science 2012 booklet
CRI Paris
Dsk dunia seni visual thn 3
Dsk dunia seni visual thn 3
Nordin Laguda
India Union Budget - 2016
India Union Budget - 2016
Sangesh Sase
Viewers also liked
(8)
Master AIRE 2014
Master AIRE 2014
Biblnk
Biblnk
Thompson.Orlandi.Williams.DRAFT presentation
Thompson.Orlandi.Williams.DRAFT presentation
01 04 wh_james_dininno
01 04 wh_james_dininno
Participative tools emerging at the CRI
Participative tools emerging at the CRI
Night Science 2012 booklet
Night Science 2012 booklet
Dsk dunia seni visual thn 3
Dsk dunia seni visual thn 3
India Union Budget - 2016
India Union Budget - 2016
Recently uploaded
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
Recently uploaded
(8)
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
Reading effective java_3rd
1.
Reading Effective Java
第3回あなたとJava 2014.08.08 (Fri) @kawakubox
2.
項目57 例外的状況にだけ例外を使用する
3.
XV]_ MRXM! [LMPI
4.
XVYI _ QSYRXEMRW?MAGPMQF
5.
a !? aGEXGL
6.
%VVE]-RHI3YX3JSYRHW)GITXMSRI _ ! a
7.
あ…ありのまま 今 起こった事を話すぜ!
! おれは配列の要素を走査する処理を書いてくれと頼んだと思ったら、 try-catchで括られたコードがcomittされてたんだ。 ! な…何を言っているのか わからねーと思うが おれも 何をされたのか わからなかった…
8.
API設計者へ告ぐ… API利用者に通常のフローで例外を強制しないこと。 !
Iteratorパターン利用したAPIを例に挙げる JSV
9.
-XIVEXSV 'EVHMXI!GEVHWMXIVEXSV
10.
MXILEW2IX
11.
_ 'EVHGEVH!MXIRIX
12.
a next()メソッドは、iteratorの位置に依存している ➡状態依存メソッド
hasNext()メソッドは、次の要素の有無を検査する ➡状態検査メソッド ! 状態検査メソッドがないAPIを立付けると、 例外を捕捉することでしか配列走査処理を実装できなくなる。
13.
項目58 回復可能な状態にはチェックされる例外を、 プログラミングエラーには実行時例外を使用する
14.
Javaにおける例外/エラーの種類 Exception Throwable
Error Runtime Exception OreOreThrowable MyError OutOfMemory GirlfriendNotExists Owata Exception Exception Error API呼び出し側で回復できるような 状況にはチェックされる例外を適 用する
15.
Javaにおける例外/エラーの種類 Exception Throwable
Error Runtime Exception OreOreThrowable MyError プログラミングエラーには実行時 OutOfMemory 例外を適用する GirlfriendNotExists Owata Exception Exception Error ex) APIの事前条件エラーなど
16.
Javaにおける例外/エラーの種類 Exception Throwable
Error Runtime Exception OreOreThrowable MyError OutOfMemory GirlfriendNotExists Owata Exception Exception Error JVMの実行継続できない状況には エラーを適用する
17.
Javaにおける例外/エラーの種類 Exception Throwable
Error Runtime Exception Exceptionを継承しない例外も作れ るが、API使用者の混乱のもと。 やらない OreOreThrowable MyError OutOfMemory GirlfriendNotExists Owata Exception Exception Error ErrorはJVMが使用するという根強い慣 習があるので、基本自作しない。
18.
チェックされる例外を自作する場合は、 回復させるための情報を保持しよう
⹅⣹ஞ၃ FV ़ࣾडᵅञࣽࣷङ⹅⣹ड࿔จञẗ᷎ऌाஞ၃ FV ⫚छᒹᔠ⫚ॅேᔠचऀाडच࣋%4-ഃᷔ⋽फ ஞ၃ࣿẗ᷎ऊऒᵅᷚॅ⧻Ἴऌाआछࣿचऀऱऌ࣌ FV TYFPMGGPEWW-RWYJJMGMIRX*YRHW)GITXMSRIXIRHW)GITXMSR_ TVMZEXIMRXTVMGI ⫚ TVMZEXIMRXTSGOIX ᒹᔠ⫚ ! TYFPMG-RWYJJMGMIRX*YRHW)GITXMSR
19.
MRXTVMGIMRXTSGOIX _ a !
TYFPMGMRXKIX4VMGI
20.
_זa TYFPMGMRXKIX4SGOIX
21.
_זa a
22.
項目59 チェックされる例外を不必要に使用 するのを避ける
23.
API使用者が以下のような手を打つしかで きないような、チェックされる例外はだめ aGEXGL
24.
+MVPJVMIRH2SX)MWXW)GITXMSRI _ ऊङࣽआाबऀचढझࣷ XLVS[RI[%WWIVXMSR)VVSV
25.
a aGEXGL
26.
+MVPJVMIRH2SX)MWXW)GITXMSRI _ PSKKIVIVVSV
27.
ऐखⰅऋI 7]WXIQIMX
28.
a
29.
最後に
30.
チェックされる例外なんて なくなってしまえばいいのに
Download now