a********y 发帖数: 20 | |
L*******r 发帖数: 1011 | 2 typically I only use exceptions for rare happened errors.
Althrough MS said using exceptions would not bring too much performance penalty,
I doubt it. Java will have performance penalty when using exceptions especially
for JIT VMs. You can find infromation from IBM.
If the error is really a "wrong opertions", just use exceptions for good code
management. But don't abuse exceptions. I have seen some guy used exceptions
for the situation that would happen > 20% probability. That's really not
excep
【在 a********y 的大作中提到】 : 到底要怎样计划和执行呢? : 谢谢。
|
a********y 发帖数: 20 | 3 Do you plan what exceptions and how many exceptions
before you start coding?
Thx.
【在 L*******r 的大作中提到】 : typically I only use exceptions for rare happened errors. : Althrough MS said using exceptions would not bring too much performance penalty, : I doubt it. Java will have performance penalty when using exceptions especially : for JIT VMs. You can find infromation from IBM. : If the error is really a "wrong opertions", just use exceptions for good code : management. But don't abuse exceptions. I have seen some guy used exceptions : for the situation that would happen > 20% probability. That's really not : excep
|
L*******r 发帖数: 1011 | 4 only plan type, not plan number. hehe.
【在 a********y 的大作中提到】 : Do you plan what exceptions and how many exceptions : before you start coding? : Thx.
|
a********y 发帖数: 20 | 5 oh. Actually, I mean how many types.
【在 L*******r 的大作中提到】 : only plan type, not plan number. hehe.
|
L*******r 发帖数: 1011 | 6 depends on how many function models you have.
I like to classify exceptions from their models.
And I always give a way that when end-user administrator
reports us the error message, we can find the exact palce
of that code.
I also wrote exceptions manual in my formal company. :)
【在 a********y 的大作中提到】 : oh. Actually, I mean how many types.
|
p***n 发帖数: 635 | |
a********y 发帖数: 20 | 8 Thx a lot.【 在 payan (沛岩) 的大作中提到: 】 |
p***n 发帖数: 635 | |