Java

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

pancck
Posts: 5
Joined: Wed Feb 13, 2008 3:51 am UTC

Java

Postby pancck » Wed Feb 13, 2008 3:53 am UTC

Hey, I know VB pretty well, and I am currently learning JAVA. Java is tougher than VB already, and I was just wondering on a scale of 1-10 how hard Java is...

User avatar
b.i.o
Green is the loneliest number
Posts: 2519
Joined: Fri Jul 27, 2007 4:38 pm UTC
Location: Hong Kong

Re: Java

Postby b.i.o » Wed Feb 13, 2008 5:37 am UTC

That'd be a pretty arbitrary scale. Different things are harder for different people to learn, and even learn is an ambiguous term. Do you mean 'learn the basics of' or 'learn how to do advanced stuff' by learn?

Java's really not that hard in comparison to most languages. It's syntax is possibly harder to get the hang of than VB's, but as an actual language it's not at all hard to learn, at least in comparison to something like C/C++.

pancck
Posts: 5
Joined: Wed Feb 13, 2008 3:51 am UTC

Re: Java

Postby pancck » Wed Feb 13, 2008 5:48 am UTC

Yeah, that is sorta what I ment. I guess my question was a bit vague. I just didn't know if it ranked up there in complexity with all of these other languages I hear about. I am think I would still prefer VB to java.. but I have never been all that extreme a coder, just casually do it.

mountaingoat
Posts: 80
Joined: Wed Aug 01, 2007 6:01 am UTC

Re: Java

Postby mountaingoat » Wed Feb 13, 2008 6:15 am UTC

I only know those two languages, but I don't find Java very hard. I like it way more than VB though.

User avatar
ash.gti
Posts: 404
Joined: Thu Feb 07, 2008 1:18 am UTC
Location: Probably a coffee shop.

Re: Java

Postby ash.gti » Wed Feb 13, 2008 6:47 am UTC

I look at it like this...

Any programming language can be complicated if you know the intricacies of the language. Every programming language I know has the ability to be written in a way that is very hard to follow, and hard to read. Also, if you don't know how certain things work, like pointers, then somethings will really confuse you really easily.

But most languages do not HAVE to be complicated if you want to keep it simple, use basic features and functions, and use clear control structures and variables.

Java can be written in ways that make it easy to understand, easy to follow, and easy to learn. I'd personally say its one of the less complicated programming languages, no idea how to scale it because I don't know what the scale is relative to. Java's more complicated than VB, but you can do more with it. Java is also less complicated than say C++ but its slower.
# drinks WAY to much espresso

User avatar
microwaved
Posts: 64
Joined: Thu Dec 13, 2007 4:17 am UTC
Location: NE OH

Re: Java

Postby microwaved » Thu Feb 14, 2008 3:32 pm UTC

How well have you grasped the idea of object oriented programming? Java was the second language I learned after C, and it took me a good week or two to get used to the idea of objected oriented programming. Once I got that concept down though, java wasn't very hard at all.

pancck
Posts: 5
Joined: Wed Feb 13, 2008 3:51 am UTC

Re: Java

Postby pancck » Thu Feb 14, 2008 9:39 pm UTC

Well, VB is object oriented isn't it? That is the language that I learned programming logic and structure in, and I am very used to it. The thing that is mixing me up in java is how you import certain things to use be able to do more, that you cannot easily make a .exe, and how the program runs as you interact with it- whereas in VB you would write the program, compile then hit a "start" or "calculate" button usually..

User avatar
b.i.o
Green is the loneliest number
Posts: 2519
Joined: Fri Jul 27, 2007 4:38 pm UTC
Location: Hong Kong

Re: Java

Postby b.i.o » Fri Feb 15, 2008 12:03 am UTC

pancck wrote:Well, VB is object oriented isn't it? That is the language that I learned programming logic and structure in, and I am very used to it. The thing that is mixing me up in java is how you import certain things to use be able to do more, that you cannot easily make a .exe, and how the program runs as you interact with it- whereas in VB you would write the program, compile then hit a "start" or "calculate" button usually..


I believe VB has support for object oriented programming, but it's not an OO language, I don't think, whereas Java is completely object oriented.

What part of importing things confuses you? Are you familiar with the [url=http://java.sun.com/javase/6/docs/api/]API[/url}? It's your best friend in Java programming.


There are IDE's for Java (Eclipse, for example) which have a compile button, but you can program Java in pretty much any text editor, and then run/compile things from a command line with java/javac. Java generally doesn't have .exe files because Java is a very portable language and .exe files are Windows executable files. If you need an executable you can create executive .jar files, but that's something you shouldn't even think about getting into for a while.

EvanED
Posts: 4331
Joined: Mon Aug 07, 2006 6:28 am UTC
Location: Madison, WI
Contact:

Re: Java

Postby EvanED » Fri Feb 15, 2008 12:42 am UTC

That depends on what you consider OO... if you are talking about VB.Net, I think it definitely qualifies.

User avatar
Amnesiasoft
Posts: 2573
Joined: Tue May 15, 2007 4:28 am UTC
Location: Colorado
Contact:

Re: Java

Postby Amnesiasoft » Fri Feb 15, 2008 1:37 am UTC

If it is VB.Net you know, I would maybe suggest learning C# first. The syntax of the language is very similar to Java, but it will give you an intermediate step so you don't have to learn both the syntax and a new API at the same time. (Not to mention you'll have experience with another programming language).

EvanED
Posts: 4331
Joined: Mon Aug 07, 2006 6:28 am UTC
Location: Madison, WI
Contact:

Re: Java

Postby EvanED » Fri Feb 15, 2008 4:48 am UTC

Amnesiasoft wrote:If it is VB.Net you know, I would maybe suggest learning C# first. The syntax of the language is very similar to Java, but it will give you an intermediate step so you don't have to learn both the syntax and a new API at the same time. (Not to mention you'll have experience with another programming language).

That's actually a really good idea.

User avatar
TheAmazingRando
Posts: 2308
Joined: Thu Jan 03, 2008 9:58 am UTC
Location: San Diego, CA

Re: Java

Postby TheAmazingRando » Fri Feb 15, 2008 6:18 am UTC

I learned Java as my first language, so it's hard for me to know exactly how difficult it is to learn, since I learned all the basic aspects of programming, as well as the basics of OOP, along with it. I find that it can be easier than C for a lot of things since it handles memory allocation for you, you don't need to worry about pointers or memory leaks or anything like that.

If you're proficient in Java, though, you shouldn't have a hard time learning C or C++, most basic things (functions, conditional statements, loops) aren't much different. I became comfortable with C in about a week, its mainly memory manipulation and the lack of objects that you need to get used to.

What's important to keep in mind, though, is that you don't need to know everything about a language to program in it, as long as you understand basic programming principles. Often times learning how to do what you need with as few tools as possible is worth the practice and experience. It may not be the most efficient way to code, but it will make you a better programmer, and as a student learning is more important than producing the most efficient code possible. Learning a language isn't about knowing how to do every possible thing in it, it's knowing enough to code in it efficiently and, if you aren't sure how to do something, easily look it up.


Return to “Coding”

Who is online

Users browsing this forum: No registered users and 5 guests