r/java • • Jun 29 '17

Basic neural network Java implementation, which can train itself, for beginners to try out and learn how machine learning works.

https://github.com/sebig3000/MachineLearning
264 Upvotes

28 comments sorted by

View all comments

Show parent comments

7

u/[deleted] Jun 30 '17

Can you provide some justification for that last bullet point? I've been writing Java for a while now and have never heard that.

8

u/locatedtaco Jun 30 '17

I could be wrong but I think the point is that throwing an Exception isn't expressive. It doesn't clue in the developer about what went wrong. Also, if you throw an Exception the client code can't selectively catch it and handle it specifically.

6

u/[deleted] Jun 30 '17

Ah, I thought you meant all checked exceptions, not just the Exception class...it's perfectly ok to instantiate specific subclasses of Exception

5

u/locatedtaco Jun 30 '17

Yeah, exactly. But, that's just how I interpreted the comment. I didn't write it.