On Fri, 15 Oct 2010 09:13:05 +0200, Philipp Überbacher wrote
But what's the teaching goal? Packages /what's in a name), classes (how
do we model the real world?) et al. are programming fundamentals.
> About half of my fellow students are total beginners who've never
Fellow students of what? Computer science (Informatik)? What a scarry
idea. Now, don't get me wrong - I presonally would choose a rather
different approach to programming intro: until recently often CS was
taught with using Scheme. No objects or packages (at least not in the
old standard). Wonderful literature . But a lot of students
complained about using an 'ivory tower' language instead of something
they could use later on in their career ... go figure :-(
> > $ cat > Foo.ava
No, it's using a static code block that gets executed after loading the class.
concept if you think of it (and it would be cool iff C/C++ had something
a portable way).
> I wouldn't expect 4.2||32.1 as a result. Either interpret the whole
Evaluation order, another basic topic of programming, sigh :-/
Remember, there's no such thing as "the whole thing" here. Just a crude mixture
of chained method invocations and special operator calls.
Yes, there's a definite price for cute infix notation and overloading. That's
lispers prefer unambiguous prefix notation (hypotetical code):
(strange-+ (+ 1.2 3)
(+ 3 2.1))
> > has to take. Are you criticising the choices the Java team made? Do you prefer
You need a dedicated operator for every type of argument, so + only works
for integer, +. only works for floats, and if you want to add one to the
other you need to provide your own function (with exactly the semantics you
> > P.S.: if possible i try to avoid programming in Java, but for totally
rather off-topic in this list :-)
But it's more the "culture" and comunity arround a language that seems
to be important. At least for me.
 Structure and Interpretation of Computer Programs
 Exploring Computer Science with Scheme
R. Mattes -- Systemeinheitsstreichler
Hochschule fuer Musik Freiburg
Linux-audio-user mailing list