News for hackers. Stuff that matters.
Re:Ask HN: Shouldn't a recent CS grad know how to throw an e... by pkjens04 on Thursday August 01, 2013 @03:49PM (#6142997)
Exceptions are not "thrown" but caused, raised at best... The way Exceptions are provided in Java are bad if you'd ask me. Anyway you should expect CS graduates with experience in Python, Ruby, C++, Java, ML, Haskell or similar languages to be able to handle exceptions. Anyway. The question remains why you even want a CS graduate to do Java? Also there are slight differences in the semantics of exceptions in aforementioned languages though i.e. C++ Exceptions are "thrown" without operator new but is syntactically quite similar.

So. Do you think throwing exceptions is a must have for entry-level Java development? I don't. It is not important during most simple projects (which you'd do in your curriculum), is most often ignored or rethrown, or looked up and understood in a few minutes. Aren't patterns more important? Or general ideas? Java is just another language which will become a burden (Luke COBOL). Just my thoughts...

Re:Ask HN: Shouldn't a recent CS grad know how to throw an e... by shubb on Thursday August 01, 2013 @07:01PM (#6144196)
>> ...C++ Exceptions are "thrown" without operator new...

Reading this reminded me how dependent I am on intelisense for a lot of languages. I work in C++ and Java all day every day, and if you asked me how to throw an exception in either, without sitting at a computer (where I'd remember or grope for it), I'd give the syntax for the wrong language 50% of the time.

Maybe assessing people by putting them in front of a computer with an IDE would be useful?

Re:Ask HN: Shouldn't a recent CS grad know how to throw an e... by superEb on Thursday August 01, 2013 @07:43PM (#6144421)
Good point. I failed to mention that the coding exercise is done sitting at a computer with an IDE.