New answers tagged programming-paradigms
1
vote
When teaching Java, should I teach try-catch from the outset?
Create a type value or error (but nothing else: so not object)
e.g.
...
1
vote
When teaching Java, should I teach try-catch from the outset?
In Java and many other languages that followed it, Exceptions are un-exceptional: e.g. it is not exceptional to get to the end of a file.
Your example of removing an item from an empty list, is a ...
2
votes
Accepted
When teaching Java, should I teach try-catch from the outset?
I'm not sure what the progression is in your education system, but the one I went through to learn programming as a complete novice in Java (~2015, in the USA, at a community college) went roughly ...
2
votes
When teaching Java, should I teach try-catch from the outset?
This answer is based on a software engineering point of view, in not teaching things that contradict best practices. (And there are lots of misconceptions and bad practices around exception handling, ...
2
votes
When teaching Java, should I teach try-catch from the outset?
You may need to teach this concept, but I'd do it at the point it becomes be best option. If things can fail, some sort of test or similar action is needed.
For a list of objects, one can return null ...
Top 50 recent answers are included
Related Tags
programming-paradigms × 13functional-programming × 3
imperative-programming × 2
lesson-ideas × 1
resource-request × 1
programming × 1
undergraduate × 1
java × 1
teaching-analogy × 1
object-oriented-paradigm × 1
web-development × 1
language-choice × 1
databases × 1
resource-information × 1
exams × 1
syntax × 1
programming-environment × 1
evaluation × 1
abstraction × 1
scheme × 1
secondary-education × 1
server-client × 1