Jump to content

Home

Let's Discuss... Java


Skinkie

Recommended Posts

My new programming class I started today is supposed to teach us basics of Java. The teacher suggests using some program called NetBeans to write our programs in. So tell me loyal nerds, good program? bad program? Got any better suggestions? Also Java fun? Java suck? Java and C++ rules so similar that my mind will unthinkingly blend them together and I'll never be able to write in either again?

 

Talk amongst yourselves.

Link to comment
Share on other sites

Oh, Geek stuff? Count McCoy in. :D:D

 

 

 

I always thought Java was an island like Dinky or so. But that was aaages ago.

 

Since i now switched to linux, i think i'll soon have more contact with C or something like that than i wish. Except there some kind of Delphi or pascal for linux. On the other hand, most sources are in C, so, in the end i guess it is like you can code or you can't. Can you?

Link to comment
Share on other sites

Originally posted by RayJones

Oh, Geek stuff? Count McCoy in. :D:D

 

...you bet...

 

Originally posted by RayJones

Since i now switched to linux

 

...a wise decision!

 

Originally posted by RayJones

Except there some kind of Delphi or pascal for linux.

 

...well, there is (was?) kylix (but it's commercial)...

 

...

 

...and there's the fpc (free pascal compiler)...

 

...

 

and now to the topic:

 

...java sucks (err, imho)... ditto with perl and lisp... :p

i like c and c++ (what i use depends on what's needed... if i can do something without classes, i use c...)

Link to comment
Share on other sites

Don't use Jawas, they'll only steal you stuff. Haw, haw, haw!

 

jawa.jpg

 

Java versus C++

Java versus C

 

I'll have 2 weeks off starting next week. I plan (like I always do) to get around to really, really do something in C(++). Besides tutorials.

 

I also plan to watch DVDs (LOTR:ROTK, π, Idle Hands, Final Destination, Star Wars 5+6, Top Secret!, Nick Of Time, The 'burbs...) and play games (finish Beyond Good & Evil, KOTOR, Armed & Dangerous...).

 

All this in 2 weeks... you get the picture.

Link to comment
Share on other sites

Java is more powerful and can do much more than C. For example, C doesn't have a graphical user interface (GUI)

 

...that's what libs are for... gtk, qt, wxwidgets, ...

 

C doesn't have any way to do object-oriented programming (OOP)

 

c++

 

C lets you do many things that would cause errors (for example, convert strings to integers, or do I/O)

 

strtol()/atoi()? where's there problem?

 

but doesn't make you write code to handle the errors.

 

...the gcc throws a lot of warnings in -Wall -pedant mode if you do wrong/bad things...

 

Java makes you write try...catch statements around things that might cause problems.

 

...imho, try...catch is dirty...

 

Java checks for errors. For example, Java checks subscripts to make sure they are in the correct range.

 

...so does the gcc... big deal...

 

Java does things for you. There are a huge number of things that Java has already written for you. For example, expandable arrays, many data structures, etc. In C it would take a very long time to write and debug these things by yourself.

 

...blah...

 

Java doesn't have the most dangerous things. The things in C which cause the most program errors are pointers, pointer arithmetic, and memory management. Java has replaced these with much, much safer things: references, subscription, and garbage collection.

 

...i need pointers...

...and i rather write safe code myself than to rely on the jave interpreter...

...and garbage collection is dirty...

 

. . .

 

...just my 2 cents...

Link to comment
Share on other sites

  • 2 weeks later...
Originally posted by Das Mole

What do you mean which language? I wouldn't say that I would know this if I wasn't doing Java...

 

We're doing C++ in the first quarter of the semester and Java in the second quarter. :)

 

:) I'm taking the same class as you. I start Java in a week though. I already know C++.

Link to comment
Share on other sites

I took a sememster of VIsual Basic, 2 of C++ and now I'm in Java. And Usability Engineering, though that doesn't teach any new languages. So far my problem with Java is the teacher just gave us the names of a bunch of different IDEs to write in and never gave us details on how to run any of them. I've downloaded a couple and tried to use them, but with no starting point its rather hard. Other than that its not too bad. There are quite a few things from C++ that I find myself missing. Especially in how to make declarations.

Link to comment
Share on other sites

Originally posted by tk102

A perl hater.... :cry8:

 

....hmm, it's not that i hate perl, i just don't like its approach on several things and i somehow don't really see its need... for complex projects, i use c or c++ (depends on whether i need classes) and for small things, i use bash-scripts (with stuff like test, sed, sometimes awk, ...)... but as i said, that's just my personal oppinion, feel free to think different :)...

 

*shrug*

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...