When you are only using one or two classes at a time you can get away with using a java folder as the unnamed package and you can dispense with the complexity of package names. Once your applications are big enough to merit named packages you will have enough experience to move onto an IDE.Gary Newport wrote: . . . complexity of writing the entire file/folder structure and comprehending compiling, etc. . . .
… and you don't have to write the first line again. It is quite easy to compile from the command line as long as you don't add .class to the last line.mkdir java
cd java
javac MyProgram.java
java MyProgram
Of course I was right I am right about everything. And if you believe that, you will believe anything.Liutauras Vilda wrote: . . . . . .
P.S. I think Campbell Ritchie was right . . .
I could try to see usefulness in dynamic typing languages, but even there never seen it, because each language has own naming convention, and probably not intended to use "third parties" conventions, but I'm not that old as others here, having in mind the ones who likely are right about everything, so they could state their solid opinion about it I think if such a question about Hungarian Notation would come up in a programming exam, where Java language is used as a standard, I'd consider it as a poor style question.Gary Newport wrote:Difficult with Hungarian Notation since it has no real relevance to Java but does elsewhere
Valuable to understand divide and conquer algorithms, it is something that will come up in university course about data structures and algorithms, in job interviews, even though it is rarely used in industry. Quite many people struggling to get confident with recursion, so probably giving them some kind of easy exercise could keep them interested and busy for couple of days or weekends (of course, probably the ones, who are actually interested in programming).Gary Newport wrote:and I know there is quite a but if debate about the value of recursion?
Check our FAQ here (<- link), you might missed something.Gary Newport wrote:I have already encountered an issue on my test system that I cannot resolve at the moment and need to find a simple solution since I can guarantee the students will encounter it as well; javac is not recognised.
And this is why it is not recommended They could stop concentrating on what are they doing, where their logic flaws, since IDE's gives a warnings, suggestions how to fix them, auto imports, even fixing syntax mistakes, adding curly braces, auto indenting and formatting code (in different words - helping to cut corners). But I think you answered your intention already, you're teacher, so you know better from your experience.Gary Newport wrote:I do understand the issue as regards the use of the IDE but am also aware that our weaker students will simply fall at the first encounter of command line unless they have a baseline understanding of the code itself.
Gary Newport's Guide, p130 wrote:I Have A Problem I Cannot Solve!
One of the best resources you have available to you is the internet and, more importantly, the professional forums that exist. I cannot recall how many times I have resorted to a posting to help identify a solution to a problem that appeared insurmountable, only to have someone reply with a simple solution (or even arrive at a solution myself just after making the post).
Remember to introduce yourself, be honest about the purpose of your post, explain your problem clearly and make sure you are not asking them to do your homework for you (they will detect that quicker than you think).
Make sure you have checked beforehand using a search engine such as Google to ensure that the solution to your problem is not already easily available, or something similar that could help you solve the issue.
One such forum is https://coderanch.com/forums, which is focused on Java; though there are others out there.
I notice that is from Gary Newport's guide for students.Liutauras Vilda wrote: . . . or even arrive at a solution myself just after making the post . . .
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Stephan van Hulst wrote:[...] the first thing that I've noticed is that you immediately jump to using NetBeans. I really recommend teaching new-comers to Java to use the java and javac commands first. Learning a language is hard enough without running into the hidden complexities of an IDE. It will also instill your students with the understanding of how the machine handles the code they've written, rather than this "magic box" that just runs their program when they press play.