Whenever I write code in Java I feel like I'm filling out endless forms in triplicate.
“Ok, sir, I'll just need your type signature here, here, and ... here. Now will this be everything, or...”
‘Well, I might need to raise an exception.‘
The compiler purses its lips.“An exception? Hmmm... let's see.... Yes, I think we can do that... I have the form over here... Yes, here it is. Now I need you to list all the exceptions you expect to raise here. Oh, wait, you have other classes? We'll have to file an amendment to them. Just put the type signature here, here, ... yes, copy that list of exceptions....
http://funcall.blogspot.com/2010/04/whenever-i-write-code-in-java.html
No comments:
Post a Comment