Hacker News new | ask | show | jobs
by csmeyer 1353 days ago
I like the idea of simplifying the main method, but it's honestly not a huge barrier as a high school teacher. Most IDEs will fill in the declaration of main for you, and I think it's perfectly fine to tell students "we'll worry about that later, write your code in the braces" without diving in to all the details. To me, what would be more helpful is an easier way to read input from stdin during a program. I usually give my intro students a static class that wraps Scanner, but it's a bit of a pain.
2 comments

The article briefly mentions a hypothetical static method "readln", which would help with reading input.
Agreed, and those "get to it later" aspects are a good tease that there really is more going on. Hiding them isn't necessarily better.