Re: java tutorial available for download



Xah wrote:
my Java tutorial
is now available for download for offline reading.
Download link at the bottom.

Doesn't look terribly good as a tutorial.

My nits:
1. References either Java 1.4 or Java 5 documentation, the former of which is EOL, and the latter of which is beginning the EOL process.
2. No explanation of how to use newer Java features, such as generics, annotations, or enums. Doesn't even use them in earlier examples.
3. Several typos litter the place.
4. Sacrifices correctness for approachability. Specific examples:
4a. "lines enclosed between '/*' and '*/' are ignored." Lexically, those indicate the start and close of a comment token, so that it's not "lines" that are ignored, but "characters" (which is even a bit imprecise, since it's actually collecting output from the Unicode preprocessing).
4b. "special syntaxt [sic] to create jagged array in one shot." The syntax isn't special, it's a standard array creation and assignment expression.
4c. "constructer (often spelled constructor)" Actually, the JLS defines it as "constructor," along with my ISO C++ spec, and the python specs. "Constructor" is the accepted spelling, whereas "constructer" is a misspelling not even in the OED.
4d. "For example, if your file name is 'MyMainClass.java', then one of your class [sic] must be named 'MyMainClass'." No, it doesn't. The correct sentence is that "..., then a public top-level class must have the name 'MyMainClass'."
5. Violation of several accepted conventions.
6. Pointing people to bad practices, such as shoving a static method into a non-static context.

I'll stick with <http://java.sun.com/docs/books/tutorial/index.html>, thank you very much.
--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.



Relevant Pages

  • Re: 2 newbie questions
    ... > the volume of a fish tank and a third that ties everything together. ... You create a .java file. ... Then you modify this by asking it to create a constructor method and calling ... When you have a series of variables in some array, and you have an array for ...
    (comp.lang.java.help)
  • Re: New (as in days) to Java - question about "super()" method
    ... > Hi, I'm Don, and I'm a serious greenie when it comes to Java. ... learn Java because Object Oriented Programming is quite different from ... > guts out of the method involved (a constructor, I believe, is the ... inheritance: if I have a class and I want to add some extra ...
    (comp.lang.java.programmer)
  • Re: Implicit overloads, non static
    ... you've disputed whether it's a matter of implementation rather ... that's clearer - but I wasn't disputing that. ... > I find a lot of things hard in Java. ... I'm not sure I'd call that a copy constructor myself, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Road to Clojure Survey
    ... constructor taking another Collection as a parameter, ... on Java collections require mutation) is not wrong in principle. ... Common Lisp either, for that matter, even if in general Common Lisp ... JDK 1.1 - that was before the Collection interfaces were defined. ...
    (comp.lang.lisp)
  • Re: operator new with "value type"
    ... both C++ and Java that don't hold in C# ... ... construct to differentiate "create an auto variable" vs. "create and ... that such a term exists in C#) - it's a case of calling a constructor. ... an accent from another language - if you try to write C# as if it's C++ ...
    (microsoft.public.dotnet.languages.csharp)