Author Topic: Java, do you speak it?  (Read 5730 times)

0 Members and 1 Guest are viewing this topic.

Offline Sushi

  • Art Critic
  • 211
Re: Java, do you speak it?
"You must understand, young Hobbit, it takes a long time to say anything in Old Entish Java. And we never say anything unless it is worth taking a long time to say. "

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Java, do you speak it?
Can't say I've encountered that specific problem. Will admit, if I were to say Java has one specific weakness, it's the fact it can almost encourage over-design, you start trying to split things up into Interfaces and Superclasses etc, and if you're not careful, you can get carried away with the whole thing ;)

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
Re: Java, do you speak it?
Quote
Actually, in my experience, Java is becoming more and more common in Finance for client-level programs :)

You may be right about that. I was thinking more along the lines of the quant trading software they use internally, which is almost always in C++, although some outfits use specialized low level languages.

 

Offline sayoqod

  • 25
Re: Java, do you speak it?
Java is the first programming class I'm taking for my Comp Sci major...so far, pretty much the same as C++
" Twas brillig and the slithy toves/did gyre and gimble through the wabe/ all mimsy were the borogroves/ and the mome raths outgrabe"

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Java, do you speak it?
It has a great deal of common ancestry as far as structure/syntax is concerned. The real programming differences are the fact it is far more designed around Object Orientation, it likes to be split up into Classes, it only allows one Superclass for each Class (Which can be a pain) and it doesn't allow the kind of memory access facilities that C++ does. It demands a lot less 'cleanliness' from the programmer because of the internal Garbage collection, but you pay for that in other ways.

 

Offline Ghostavo

  • 210
  • Let it be glue!
    • Skype
    • Steam
    • Twitter
Re: Java, do you speak it?
Although I use Java a lot, which featured in most of my course work and whatnot (my dissertation is going to be implemented in Java even), some decisions by the language designers and the standards libraries leave a lot to be desired.

The last annoying one I've encountered was the PriorityQueue implementations.

It withholds a method as private that would allow you to reorder the queue correctly if you changed one of its elements. As it is, you have to remove the element and add it again, which means instead of a O(log n) operation you have a O(n) one.
"Closing the Box" - a campaign in the making :nervous:

Shrike is a dirty dirty admin, he's the destroyer of souls... oh god, let it be glue...

 

Offline sayoqod

  • 25
Re: Java, do you speak it?
It has a great deal of common ancestry as far as structure/syntax is concerned. The real programming differences are the fact it is far more designed around Object Orientation, it likes to be split up into Classes, it only allows one Superclass for each Class (Which can be a pain) and it doesn't allow the kind of memory access facilities that C++ does. It demands a lot less 'cleanliness' from the programmer because of the internal Garbage collection, but you pay for that in other ways.

'cleanliness' was never really a problem for me. Ah well, I suppose I'll see how it goes
" Twas brillig and the slithy toves/did gyre and gimble through the wabe/ all mimsy were the borogroves/ and the mome raths outgrabe"

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Java, do you speak it?
Although I use Java a lot, which featured in most of my course work and whatnot (my dissertation is going to be implemented in Java even), some decisions by the language designers and the standards libraries leave a lot to be desired.

The last annoying one I've encountered was the PriorityQueue implementations.

It withholds a method as private that would allow you to reorder the queue correctly if you changed one of its elements. As it is, you have to remove the element and add it again, which means instead of a O(log n) operation you have a O(n) one.

Yeah, there are a few like that, one that annoys me is that certain elements of the Observable class are Protected, which means that you cannot observe things outside the package it is operating in.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Java, do you speak it?
Agreed, I'm not saying, nor would I ever say, that one is better or worse than the other, but declaring "**** java" because it doesn't suit your own programming purposes is just plain wrong, I suppose that's the point I'm trying to make :)

I'll split this out and move it to Programming because it's pretty much derailed Zacks original thread.

Edit: Did what I could, but some posts were a mixture of opinions on both topics.

i must point out that i made that comment in a different context (before the thread mutated into what it is now). had the thread been in a programming context at the time, id have probably used more tact.

So because it wasn't very useful 10 years ago, it must therefore be crap now?

Interesting reasoning...

As of OOP, the whole point of OOP is not about speed, it's about modularity and flexibility.

Oh, and for the record, the first programming language I learned was Z80 machine code. In Hex.

Personally, I think Java is a far better place to start because 90% of applications are not speed-centric. Certainly, if you want to judge a language by it's speed then Machine code upwards is the way to go, but that's a pretty archaic viewpoint, almost everyone who works in programming isn't interested in speed, it's only the gaming market that really pushes in that direction, and even then not entirely, most programmers are more concerned about cross-compatability and ease of coding, they don't want to spend months on a project which should take weeks, and in that respect, Java is a very useful language. It has good database access, RMI support, and a good UI interface, the easier it is to put together and maintain an app, the better in almost every every business situation.

my point was that quake was an invalid example. unlike modern idtech engines, it was designed to run on hardware that was already quite old at the time, and not all that fast. quake was released well into the pentium era but was still capable of running on much older hardware. you made the claim that the java3d based quake engine was faster. of course it would be faster because its running in a vm that required much much more resources than the original game used. the way i see it its an entirely different game engine from the original quake engine (sorta like glquake or winquake). it is not a fair comparison. its like comparing retail fs1 in software mode to fs2open 3.6.12, running the fsport. the newer executable may be somewhat faster, but thats because its been optimized for modern hardware.

as i said somewhere (not that i can find it after the split) that java has its place (same can be said for oop). but its certainly not in performance oriented applications. speed (as well as efficient memory usage) might not required of most software, but it does come in handy. since almost all computer systems emphasize multitasking, and which all dip into the same pool of resources, the more tasks you can run concurrently without impeding the system, the more responsive the system is. efficient code is better code.
« Last Edit: January 19, 2011, 07:02:32 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Re: Java, do you speak it?
Thanks Nuke. That was kind of my tangent to begin with.

And yes, I did mess up a bit with the high/low level terminology to an extent, but then, you really can do just about everything with C++. (and thus high- and low-level coding)

As far as teaching proper, understandable logic goes, I really liked C++ as well. My only other formal code training was in MATLAB, which I hate with a pashion - until you get into things such as tools which can solve derivatives and integrals from just punching in the base equation. Then I'll give MATLAB a bit more time. :)

I would still stand by learning C++ first, and then I'd be willing to invest time in Python if I ever got a chance as well. Apparently Python is quite abundant in the financial world as well.
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Java, do you speak it?
Quote
as i said somewhere (not that i can find it after the split) that java has its place (same can be said for oop). but its certainly not in performance oriented applications. speed (as well as efficient memory usage) might not required of most software, but it does come in handy. since almost all computer systems emphasize multitasking, and which all dip into the same pool of resources, the more tasks you can run concurrently without impeding the system, the more responsive the system is. efficient code is better code.

Well, you know, I've looked through the Mod board etc, nothing's been deleted, and I've looked through the original thread and I didn't leave any of your posts relating to this behind, and don't remember you saying what you claim to have said, so something wierd is going on here. Either the board is eating posts without record, or you posted that to a different thread.


 

Offline iamzack

  • 26
Re: Java, do you speak it?
...i didn't notice this thread got moved
WE ARE HARD LIGHT PRODUCTIONS. YOU WILL LOWER YOUR FIREWALLS AND SURRENDER YOUR KEYBOARDS. WE WILL ADD YOUR INTELLECTUAL AND VERNACULAR DISTINCTIVENESS TO OUR OWN. YOUR FORUMS WILL ADAPT TO SERVICE US. RESISTANCE IS FUTILE.

 

Offline sayoqod

  • 25
Re: Java, do you speak it?
...i didn't notice this thread got moved

Not very observant, are you? :P
" Twas brillig and the slithy toves/did gyre and gimble through the wabe/ all mimsy were the borogroves/ and the mome raths outgrabe"

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: Java, do you speak it?
http://evvk.com/javakurssi/ . For those who don't speak Finnish, it's a Java course:

Part 1: Dye your hair orange, purple or green.
Part 2: Get a piercing.
Part 3: Get a piercing.
Part 4: Get a tribal tattoo.
Part 5: Get overall-shaped Diesel jeans.
Part 6: Learn to say "Javabeanz enterprise".
Part 7: Get one more piercing.
Part 8: Read "Teach Yourself Java in Two Minutes" by petterijärvinen.
Part 9: Get one more piercing.

Congratulations. You are now a Java expert and can get a job at any Java business with a good salary.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

  

Offline Topgun

  • 210
Re: Java, do you speak it?
http://evvk.com/javakurssi/ . For those who don't speak Finnish, it's a Java course:

Part 1: Dye your hair orange, purple or green.
Part 2: Get a piercing.
Part 3: Get a piercing.
Part 4: Get a tribal tattoo.
Part 5: Get overall-shaped Diesel jeans.
Part 6: Learn to say "Javabeanz enterprise".
Part 7: Get one more piercing.
Part 8: Read "Teach Yourself Java in Two Minutes" by petterijärvinen.
Part 9: Get one more piercing.

Congratulations. You are now a Java expert and can get a job at any Java business with a good salary.

lol. I know a few java "experts" like that.