Help - Search - Members - Calendar
Full Version: Java: A Revolutionary Programming Language
Sal's RuneScape Forum > Everything... Not RuneScape > Tech Talk > Programming & Web Development
Insider
I'm sure almost everyone knows that Runescape is written in Java, but I wanted to know if anyone knew anything about this language. I'm just starting to learn; I'm taking Sun's course. I'm still in the stage of concept (I've only managed to display output readings in Command Prompt).

If anyone has programs they've written in Java that's on the web, could you post a link?

-Insider
Caboose
I've studied it slightly, and i agree that it has great potential. It's just a shame that not many people realise this and use Flash for games and other applications. In fact, Jagex are the only people i've seen really use it properly, but i feel that in the future we will see it used more creatively.

But of course, Binary Programming is and always will be the best and most efficient way of creating... anything.
error404
I have basic knowledge of java programming but not nearly enough to create a decent game, Jagex (JAva Gaming EXperts) are pro with java and have created just about the largest games based on java. I believe that java is much better than flash at creating large complex games.
Insider
QUOTE (Caboose @ Aug 16 2009, 03:12 PM) *
I've studied it slightly, and i agree that it has great potential. It's just a shame that not many people realise this and use Flash for games and other applications. In fact, Jagex are the only people i've seen really use it properly, but i feel that in the future we will see it used more creatively.

But of course, Binary Programming is and always will be the best and most efficient way of creating... anything.

I think that Java has to be the most versatile programming language that is popular at this time, especially because it can be used for Windows Mobile applications as well. Unfortunately, however, I think in several years something new will catch on. That's just how things go in the Technological world...

For the record, I'm an all-out Java fan!!! yay.gif
Rene
Not yet. Next year I'm going to be taking IT management and we'll start getting Java lessons. So I'll probably start looking into it more this year to get a base ready.
Caboose
QUOTE (Insider @ Aug 16 2009, 08:46 PM) *
QUOTE (Caboose @ Aug 16 2009, 03:12 PM) *
I've studied it slightly, and i agree that it has great potential. It's just a shame that not many people realise this and use Flash for games and other applications. In fact, Jagex are the only people i've seen really use it properly, but i feel that in the future we will see it used more creatively.

But of course, Binary Programming is and always will be the best and most efficient way of creating... anything.

I think that Java has to be the most versatile programming language that is popular at this time, especially because it can be used for Windows Mobile applications as well. Unfortunately, however, I think in several years something new will catch on. That's just how things go in the Technological world...

For the record, I'm an all-out Java fan!!! yay.gif


Not at all, they may wax and wane in popularity but i sincerely doubt that it will actually stop being used in the foreseeable future. Hell, it's almost as old as i am tongue.gif
Emo_Nemo
Now it all depends.

Java coded efficiently can be lighter than flash.

But coded wrong it eat up all the resources on a dual core.

It just depends on how well the person is at java making the application or game.
Caboose
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.
Insider
QUOTE (Caboose @ Aug 16 2009, 04:17 PM) *
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.

Do some people actually code in pure binary? "01001011" and so on? Or are you talking about a programming language with the same name?
Caboose
No, pure, raw binary. It's extremely logical, and the hardware can actually understand what you program in the purest sense. It's made for it.

http://it.toolbox.com/blogs/programmer-tip...principles-3500
error404
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.
Insider
QUOTE (error404 @ Aug 16 2009, 05:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I wouldn't get discouraged; Wouldn't building a skill calculator be extremely hard? You'd have to research and record EXP for every level in every skill!! blink.gif
Kaibamanjrs
QUOTE (Caboose @ Aug 16 2009, 02:17 PM) *
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.

extremely inefficient. Assembly would work better.

QUOTE (error404 @ Aug 16 2009, 03:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

Exceptions? Doesn't java just allow you to handle exceptions when something goes wrong?
cjgone
QUOTE (Insider @ Aug 16 2009, 05:50 PM) *
QUOTE (error404 @ Aug 16 2009, 05:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I wouldn't get discouraged; Wouldn't building a skill calculator be extremely hard? You'd have to research and record EXP for every level in every skill!! blink.gif


No, you use an array. The mathematics are extremely simplistic. I'll even write the code for you if you want, lol.

QUOTE (error404 @ Aug 16 2009, 04:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I'm guessing that you're being sarcastic. You can throw exceptions if there are problems and nothing "disastrous" happens except for a compiler error.

QUOTE
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.


Lol. Higher level languages are compiled into binary for the hardware to interpret. Java has another step known as bytecode, but it's not really a big deal. It will run fast enough for anything you're doing.

And no one codes in binary. It's an absolute waste of time. I did assembler for a bit of time and it takes about twice as long to write something as it would in a language like C\Java.

I think you have a misunderstanding of what the link you posted means.


QUOTE
I think that Java has to be the most versatile programming language that is popular at this time, especially because it can be used for Windows Mobile applications as well. Unfortunately, however, I think in several years something new will catch on. That's just how things go in the Technological world...

For the record, I'm an all-out Java fan!!!

C is a very versatile language too. I can't see how you're a Java fan if you've never written in a different language or have the experience to use Java for something meaningful.
error404
QUOTE (Kaibamanjrs @ Aug 17 2009, 02:06 AM) *
QUOTE (Caboose @ Aug 16 2009, 02:17 PM) *
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.

extremely inefficient. Assembly would work better.

QUOTE (error404 @ Aug 16 2009, 03:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

Exceptions? Doesn't java just allow you to handle exceptions when something goes wrong?

Yes it does but not in all cases which is why you don't mix things around or delete things in java.
Cattius
I only know a very small amount of Java, I've just started to learn.

When I first started learning computer languages a few years ago, I got so confused between Java and Javascript tongue.gif Why did they have to make the names so similar lol, it means when you first start you assume they're similar, even though they aren't sad.gif
error404
QUOTE (Cattius @ Aug 17 2009, 08:34 AM) *
I only know a very small amount of Java, I've just started to learn.

When I first started learning computer languages a few years ago, I got so confused between Java and Javascript tongue.gif Why did they have to make the names so similar lol, it means when you first start you assume they're similar, even though they aren't sad.gif

I heard of javascript before java and never got confused xd, usually I think people hear java before javascript and get confused between the 2.
Caboose
QUOTE (cjgone @ Aug 17 2009, 02:01 AM) *
QUOTE (Insider @ Aug 16 2009, 05:50 PM) *
QUOTE (error404 @ Aug 16 2009, 05:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I wouldn't get discouraged; Wouldn't building a skill calculator be extremely hard? You'd have to research and record EXP for every level in every skill!! blink.gif


No, you use an array. The mathematics are extremely simplistic. I'll even write the code for you if you want, lol.

QUOTE (error404 @ Aug 16 2009, 04:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I'm guessing that you're being sarcastic. You can throw exceptions if there are problems and nothing "disastrous" happens except for a compiler error.

QUOTE
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.


Lol. Higher level languages are compiled into binary for the hardware to interpret. Java has another step known as bytecode, but it's not really a big deal. It will run fast enough for anything you're doing.

And no one codes in binary. It's an absolute waste of time. I did assembler for a bit of time and it takes about twice as long to write something as it would in a language like C\Java.

I think you have a misunderstanding of what the link you posted means.


QUOTE
I think that Java has to be the most versatile programming language that is popular at this time, especially because it can be used for Windows Mobile applications as well. Unfortunately, however, I think in several years something new will catch on. That's just how things go in the Technological world...

For the record, I'm an all-out Java fan!!!

C is a very versatile language too. I can't see how you're a Java fan if you've never written in a different language or have the experience to use Java for something meaningful.


Not at all, if what you program is going to be translated down to binary anyway you might as well miss out the middle man. The length of time is worth it, since it's far easier and faster for the hardware to make use of. But since everybody is more concerned with quantity and time than quality not many people do it any more. Which is a shame, because it just contributes to Wirth's Law, that software is getting slower more rapidly than hardware becomes faster.
Yippee
Sweet, I'm just learning Java also, and it seems like a great programming language. As versatile as Flash, almost as smooth, and it's FREE! biggrin.gif

QUOTE (Caboose @ Aug 17 2009, 06:19 AM) *
Not at all, if what you program is going to be translated down to binary anyway you might as well miss out the middle man. The length of time is worth it, since it's far easier and faster for the hardware to make use of. But since everybody is more concerned with quantity and time than quality not many people do it any more. Which is a shame, because it just contributes to Wirth's Law, that software is getting slower more rapidly than hardware becomes faster.

*murders massive quote*

When a program is compiled, it's turned into a binary *.exe file, and it doesn't have to be compiled ever again. Any compiler based language is going to be more efficient than binary coding just because of the less time taken to program it. Running it might be slightly slower than pure binary programming because the file is created by a machine rather than a human who can optimize it, but the difference isn't usually noticeable.

QUOTE (error404 @ Aug 17 2009, 05:28 AM) *
QUOTE (Cattius @ Aug 17 2009, 08:34 AM) *
I only know a very small amount of Java, I've just started to learn.

When I first started learning computer languages a few years ago, I got so confused between Java and Javascript tongue.gif Why did they have to make the names so similar lol, it means when you first start you assume they're similar, even though they aren't sad.gif

I heard of javascript before java and never got confused xd, usually I think people hear java before javascript and get confused between the 2.

Lol, I heard of both at the same time, really. The book I was reading said in capital bold letters, "DO NOT GET JAVA CONFUSED WITH JAVASCRIPT!" tongue.gif So I didn't really get them confused until I tried to explain it to someone else. laugh.gif
Agent F
I've taken two courses in object-oriented programming, but it's been a while since I've developed anything spectacular in it. Most of what I've done are applications you'd use in a business including database manipulation in a car rental application and a ticket system for technical assistance application. I've never developed a game in Java.
LightSlei
All I ever learned from the one class in Java was how to do something like the drawing videos, but it's been years since I've even tried to program anything considering I mostly do web pages in HTML simply because I can read it faster then some of the other languages and figure out what is to what.
Insider
QUOTE (cjgone @ Aug 16 2009, 10:01 PM) *
C is a very versatile language too. I can't see how you're a Java fan if you've never written in a different language or have the experience to use Java for something meaningful.

For your information, I've coded in both Lua (a rather secluded language) and javascript prior to my Java adventures, although I'll agree that I haven't done much in Java (yet).
By the way, lighten up! What's got you in such a bad mood? I thought this was a friendly discussion... dry.gif
_______________________

Speaking of which, I'm still making my way through "Learning the Java Language" in this tutorial. Under "Specialized Trails and Lessons," there's a section for 2-D graphics. Does that mean that I have to take that course just to make something come up on the screen?? blink.gif

EDIT:: Possibly that could be "Swing?" I really haven't strayed too far from Sun's course.


I learned from an external website that to create simple graphics, one must import the Graphics class from the developers kit and use a method called Paint.
Caboose
Java was created because there were things you can't do in C. Literally, this guy at Sun was trying to do something in C that wasn't working so he made it work be creating a whole new programming language.
Kev
I learnt some Java; made a small program (for Windows)

if anyone wants to have a look, it's here http://kwprogramming.webs.com/kwdock.html
Arctic Wolf
3 and a half years of programming classes. smile.gif
Kev
QUOTE (Arctic Wolf @ Aug 19 2009, 11:41 AM) *
3 and a half years of programming classes. smile.gif


Lucky, not even the best schools in Perth offer very good Programming courses.

Only TAFE.
cjgone
QUOTE
When a program is compiled, it's turned into a binary *.exe file, and it doesn't have to be compiled ever again. Any compiler based language is going to be more efficient than binary coding just because of the less time taken to program it. Running it might be slightly slower than pure binary programming because the file is created by a machine rather than a human who can optimize it, but the difference isn't usually noticeable.


This is exactly what i'm trying to say. Well said.

QUOTE (Caboose @ Aug 17 2009, 03:12 PM) *
Java was created because there were things you can't do in C. Literally, this guy at Sun was trying to do something in C that wasn't working so he made it work be creating a whole new programming language.



Maybe because C is not object oriented and Java is....

QUOTE (Insider @ Aug 16 2009, 03:23 PM) *
QUOTE (Caboose @ Aug 16 2009, 04:17 PM) *
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.

Do some people actually code in pure binary? "01001011" and so on? Or are you talking about a programming language with the same name?


Assembler is generally as low as it goes. Humans are still better than compilers at writing optimal code in small portions. When something needs to be extremely optimized, it's generally written in assembler for speed and then assembled into binary (replace statements with binary). A compiler turns a high level language into binary, but is not as optimal currently. For most things, it's good enough, but specific pieces of code that are used a lot (graphic routines, etc) are done in very low level languages.

The other guy is not referring to actually writing in binary.

QUOTE (error404 @ Aug 17 2009, 02:25 AM) *
QUOTE (Kaibamanjrs @ Aug 17 2009, 02:06 AM) *
QUOTE (Caboose @ Aug 16 2009, 02:17 PM) *
Which is why Binary is the best way to program. That and it's so much easier for the hardware to interpret, without the need of compilers or decompilers or translators or whatever.

extremely inefficient. Assembly would work better.

QUOTE (error404 @ Aug 16 2009, 03:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

Exceptions? Doesn't java just allow you to handle exceptions when something goes wrong?

Yes it does but not in all cases which is why you don't mix things around or delete things in java.


What the hell does that mean? Mix things around, huh?
Caboose
Not maybe, definitely tongue.gif

No matter how large the amount i thought that to use anything other than binary in life critical systems would be to endanger lives. Such as life support in a space shuttle.
cjgone
QUOTE
For your information, I've coded in both Lua (a rather secluded language) and javascript prior to my Java adventures, although I'll agree that I haven't done much in Java (yet).
By the way, lighten up! What's got you in such a bad mood? I thought this was a friendly discussion...

I'm a realist sorry.


QUOTE
Not maybe, definitely

No matter how large the amount i thought that to use anything other than binary in life critical systems would be to endanger lives. Such as life support in a space shuttle.


Assembler language is pretty much binary. An assembler replaces statements with their binary representations referred to as assembling. There's no reason to memorize 10101110 when you can remember a statement like "add", which will be replaced with 10101101 anyway. (arbitrary binary numbers biggrin.gif)
Caboose
Weren't you the one who just pointed out that humans are much better compilers than the computer?
cjgone
^Yes, that's why you write code that needs to be optimized in assembler. But only small portions should be because it's a completel waste of time. It takes 4 times longer to write assembler and it requires much more code too.

Here's an example from some assembler file:
QUOTE
ADD A,(HL) 86 1 NOP 1
ADD A,(IX*) 86DD 3 NOP 1
ADD A,(IY*) 86FD 3 NOP 1
ADD A,A 87 1 NOP 1
ADD A,B 80 1 NOP 1
ADD A,C 81 1 NOP 1
ADD A,D 82 1 NOP 1
ADD A,E 83 1 NOP 1
ADD A,H 84 1 NOP 1


It's just a lookup table. Statement on left is replaced with hex (binary if you will) on right (don't worry about the NOP, it's a hardware delay because of hardware limitations). You don't memorize 86DD for example, that would be pointless. You can however, easily memorize the more human version of it which is add. After that, the assembler will replace the statements with the computer equivalent, which is generally in hex for compactness ( FF = 11111111... Hell FF looks a lot easier to look at) but is the same in binary representation.


Note that higher level languages create the assembler then convert it down to binary too. Humans have a better sense to write more "optimal" code. But it's just faster and simpler to write code in a higher level language because it's much more similar to what we understand and one-statement can be like 100 in assembler.
Magi1074
QUOTE (Insider @ Aug 16 2009, 06:50 PM) *
QUOTE (error404 @ Aug 16 2009, 05:26 PM) *
If something goes wrong in java it is disastrous, if something is wrong with flash then it causes a glitch, java is really only recommended for advanced programmers really, I have only tried programming a basic tetris game in flash and a ping pong type game in jscript, in java I haven't done much really apart from my fail attempt at a skill calculator, nevertheless java is amazing.

I wouldn't get discouraged; Wouldn't building a skill calculator be extremely hard? You'd have to research and record EXP for every level in every skill!! blink.gif


It all depends on what you want it to do. For a person who knows Java decently, its not that hard. The most difficult part would be Swing (if you want to use it). And thats what the Java API is for tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.