-
Website
http://www.brodwall.com/johannes/blog/ -
Original page
http://www.brodwall.com/johannes/blog/2007/06/25/a-hopeful-idea-the-end-of-checked-exceptions/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Andy Palmer
1 comment · 1 points
-
Affordable SEO Services
1 comment · 1 points
-
anderssv
3 comments · 1 points
-
eirikma
2 comments · 1 points
-
vidar
1 comment · 1 points
-
-
Popular Threads
-
Tips for databasemigreringer
4 weeks ago · 15 comments
-
Å trene på Java EE
3 weeks ago · 1 comment
-
Tips for databasemigreringer
Checked exceptions = one of the more annoying java quirks after I got back into other languages on a daily basis. "Why do I have to deal with this crap?"
Thanks for the comment and for the kind words. I take it that you have a different experience? I understand from your blog that you also program .NET Maybe you have a good story on what kind of problems you run into that would've been avoided with checked exceptions?
Also, to my experience, when repeatedly faced with the annoying "catch or throw"-complains from the compiler, most developers tend to find the quickest device to make those annoyances go away, such as an empty catch-block (ugh) or just use a throws declaration.
Speaking about throws declarations - you can choose whether to make them specific or general. Specific will tend to be implementation dependent, which is problematic for loosely coupled, interface-based architectures (as discussed here http://radio.weblogs.com/0122027/stories/2003/0...). It also raises versioning and compability issues.
General throws declarations (like throws Exception) just defeats the concept. That's like implicit anyway if they were unchecked in the first place.
Most definitely a vote from me!
It seems that one of the major problems that the java-community is facing, is that devlopers tend to argue in favor of something that seems to be good in theory but that doesn't necessarily work in practice. We need to keep this in mind, and we need write code and read code to actually understand this.