A Very Quick Comparison of Popular Languages for Teaching Computer Programming
1–10 of 35 posts
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#2It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#3> I spent about 15 minutes, failed, then searched Google for an example. It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
I'm actually kind of embarassed I had so much trouble with this - I've been working on a commercial Java package for two years, but because it's GUI based I rarely have to deal with reading from the console. Real Java programmers will probably look down on me with a mixture of pity and disgust. Such is life.
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#4> I spent about 15 minutes, failed, then searched Google for an example. It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
It's not hard in itself, but it is overly long, with a lot of things to remember.
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#5Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#6> I spent about 15 minutes, failed, then searched Google for an example. It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#7Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#8> I spent about 15 minutes, failed, then searched Google for an example. It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
import java.util.Scanner;
public class Addup {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int i1 = sc.nextInt();
int i2 = sc.nextInt();
System.out.println(i1 + i2);
}
}Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#9You dont have to explain argv, argc or the details of scanf to beginners. Thats like saying python is complex because you need to explain iterators and generators. You don't need to dig that deep into the language as a beginner, you just need to be able to understand the structure, control flow and be able to get your programs working.
Re: A Very Quick Comparison of Popular Languages for Teaching Computer Programming
#10> I spent about 15 minutes, failed, then searched Google for an example. It is understandable that Java can be verbose, but 15 minutes followed by failure, make the author seem almost clueless about Java.
yeah, the use of java.util.Scanner would make it much more succinct: import java.util.Scanner; public class Addup { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int i1 = sc.nextInt(); int i2 = sc.nextInt(); System.out.println(i1 + i2); } }
> The extensive class library is however quite daunting. It appears there's a class for almost everything, and much of "programming in Java" seems to consist of "searching for the right class". Even after two years I find I cannot do much in Java without constant reference to the documentation.