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 [1][2]. 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.
Nice
concept if you think of it (and it would be cool iff C/C++ had something
similar in
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
why we
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
need).
> > 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.
Cheers, RalfD
[1] Structure and Interpretation of Computer Programs
[2] Exploring Computer Science with Scheme
> _______________________________________________
--
R. Mattes -- Systemeinheitsstreichler
Hochschule fuer Musik Freiburg
rm@inm.mh-freiburg.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.