Java

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
User avatar
RamaBot
Baaa!
Baaa!
Posts: 349
Joined: Sat Feb 04, 2006 1:44 am 0
Location: Coventry, England
Contact:

Java

Post by RamaBot »

God I fucking hate Java. It is the biggest pile of fucking wanking piss I have ever had to wrestle with.

Excuse the language. I just had to let it out.

Thanks for reading. I feel better already.

I'm now android programming. My plan for dumping most of the Java and writing all of my game and rendering code is CPP is going very well.
Just a few more days of this Java poo and I will be able to spend most of the rest of the project in the land of lovely CPP.
Malf
Baaa!
Baaa!
Posts: 205
Joined: Mon Mar 07, 2005 9:31 am 0

Re: Java

Post by Malf »

Meanwhile one of my company's main clients is telling us that Java is the wave of the future and we absolutely must switch right away.
User avatar
teamonkey
Sheepie Whore
Sheepie Whore
Posts: 12082
Joined: Thu Jun 13, 2002 1:07 am 0
XBL Gamertag: itsthetaste
PSN: teamonkey_ca
Contact:

Re: Java

Post by teamonkey »

I don't know if you can do this for Android development, but there are many much nicer Java languages out there than Java. Clojure is very nice and Scala's supposed to be pretty good too. Or JRuby or Jython.
User avatar
bloid
Baaaaaa!
Baaaaaa!
Posts: 4082
Joined: Wed Dec 17, 2003 3:12 pm 0
Location: Mancuniana

Re: Java

Post by bloid »

And I quite like Groovy for getting rid of a lot of the Java cruft
"What's there to lose?" said the general, selling our dead meat by the pound...
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27258
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Java

Post by gilesgoat »

We'll see what happens with C++0x.

I think in terms of efficiency "nothing can beat CPP" in fact CPP is "a precusor to ASM" something that the compiler ( should )
turns into ultra-efficient hw-dependant ASM the best way for a given HW.

In terms of "portability" well in this case I'd say "depends how good your 'standard lib/apis' is/are", if I can have a function
to call "DoSomethingReallyComplex ( parametrs )" in machine X and Y and it produces the same effects in X and Y "that's
all you want" I'd say.

Given the language itself is "limited" to "for/while/if/do/etc." we could discuss if the problem is "in the language or in the libs".

Java is a case apart, because it's bytecode and relies on the efficiency of the JVM

About C we could say something about pointers and "raw data access" but again it possible to write "well behaved code"
that handles all those things in a portable way.

I think most programs are not portable because they never meant in the first place to be and they never been designed
to be as that in the first place, not because "of a limitation of C++", clearly if I do a WIN32 program that to open
a window and print in requires certain things in a certain way and then I'd want to do into an iPhone that comes out
totally different but not because of C++ but because I don't have an "standard lib" that says "OpenWindowAndPrintIn (text)"
on both machines with the same parameters and call.

But this has nothing to do with C++ has to do with the OS and the implementation of those things.

Mind you, it would be possible to make that function that works "the same" on both machines.

What I love about C++ is that "if you want to go down to metal you can" and if you don't want you don't have to so
it's always possible to write some pieces of code "highly hw dependant but very fast" and other pieces of code "not
hw dependant but still as fast as they should/could be".

Certainly this means you need good C++ compilers, but of course "if you don't have those, then you don't do anything".

If you tell me "but those people are fucked they can't provide properly efficient/working C++ compilers with their HW"
then I'd say "they are doomed as HW developers from start" "it's not possible to live and do stuff without a proper C
compiler nowdays", it would be like to say "I don't have an ASM to write stuff on this piece of HW".

I think they grab Java because "all they have to do is hope to implement a good enough JVM" and have all the rest
"already done by someone else" probably some Java 'compiler' got from somewhere in Taiwan who knows who ever made it
"I heard that it works fine".

The JVM probably done directly in ASM by some other in Romania/China/Taiwan/Korea/etc. because they did not even
have a decent C compiler for that HW ( and they never will because there is no point ).

"Documentation ?" .. ah .. "some user(s) will write it .. " ..
Giles the billy goat
"Baa"
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: Java

Post by Dungeon-Dave »

Malf wrote:Meanwhile one of my company's main clients is telling us that Java is the wave of the future and we absolutely must switch right away.
Give it a few years and he'll be demanding this new Flash thing be added to their website, too.

People knock Java but don't forget that without it .net wouldn't exist. And Java is more than just a language - it's also a design philosophy and implementation philosophy. If that part was so wank, why did other languages see fit to copy it?
User avatar
t0ne
Baaaaaa!
Baaaaaa!
Posts: 3134
Joined: Wed Sep 11, 2002 8:48 am 0
Location: Bristol

Re: Java

Post by t0ne »

I quite like Java. I found it a revelation after years of C++ 11 or 12 years ago and I've only once ever had a cross platform problem with it and that was only an error with a jar manifest that was only picked up on a Solaris deployment.
I think most of the problems with Java are the number of bloated over-engineered frameworks that sprung up everywhere and half the world believing they needed full on J2EE for everything.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: Java

Post by Dio »

Malf wrote:Meanwhile one of my company's main clients is telling us that Java is the wave of the future and we absolutely must switch right away.
Remind him it's not 1999.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12523
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Java

Post by tufty »

RamaBot wrote:I'm now android programming.
You have my sympathy.
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
RamaBot
Baaa!
Baaa!
Posts: 349
Joined: Sat Feb 04, 2006 1:44 am 0
Location: Coventry, England
Contact:

Re: Java

Post by RamaBot »

You have my sympathy.
Thank you. It is a bit of a pain to get things started.Though I do like to be using OpenGL. You can get stuff up and running with no hassle.
The android is quite a nice system to be playing around with once you kick out the Java side.

I'm sure plenty of people love Java. I just find it very restrictive compared to CPP. But maybe that is just because I dont have enough experience with it.
Malf
Baaa!
Baaa!
Posts: 205
Joined: Mon Mar 07, 2005 9:31 am 0

Re: Java

Post by Malf »

Dungeon-Dave wrote:
Malf wrote:Meanwhile one of my company's main clients is telling us that Java is the wave of the future and we absolutely must switch right away.
Give it a few years and he'll be demanding this new Flash thing be added to their website, too.

People knock Java but don't forget that without it .net wouldn't exist. And Java is more than just a language - it's also a design philosophy and implementation philosophy. If that part was so wank, why did other languages see fit to copy it?
Very true.

But of course my bosses are of the opinion that you can use the same old approach no matter the tool. I can hardly wait to start screwing in some nails...
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: Java

Post by Firefox »

teamonkey wrote:I don't know if you can do this for Android development, but there are many much nicer Java languages out there than Java. Clojure is very nice and Scala's supposed to be pretty good too. Or JRuby or Jython.
I had a bit of a delve into Android's Dalvik VM one day when I was bored - it's a nice little register-based VM that's very JIT-friendly (as has recently been proved with the release of Android v2.2). I'm rather surprised that languages other than Java don't target it directly...
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
xan
Baaa!
Baaa!
Posts: 259
Joined: Mon Dec 04, 2006 6:03 am 0
Location: Merry Old England

Re: Java

Post by xan »

Malf wrote: ... I can hardly wait to start screwing in some nails...
That's nothing - just you try hammering in some screws ;)
"Time is an illusion, lunchtime double so..." - Ford Prefect, The Hitchhikers Guide to the Galaxy.
User avatar
noodles
Baaaaaa!
Baaaaaa!
Posts: 2053
Joined: Wed May 15, 2002 1:04 pm 0
Location: France

Re: Java

Post by noodles »

I find C# far nicer to deal with than Java.
If given a choice, I would prefer a native-compiled language like Object Turbo Pascal (Delphi)
any day but the realities of the market and the hype from the bullshit artists have made it otherwise.
I loved the way they presented the Java VM as a revolution in the press when it came out even though
there already were Pascal VMs back in the days of the Apple II.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12523
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Java

Post by tufty »

Firefox wrote:I had a bit of a delve into Android's Dalvik VM one day when I was bored - it's a nice little register-based VM that's very JIT-friendly (as has recently been proved with the release of Android v2.2). I'm rather surprised that languages other than Java don't target it directly...
Yeah, Dalvik's not that bad, to be honest.

What surprises me is that it took so long for someone to wake up and realise how atrocious its performance was without JIT. I mean, it's not like "Java without JIT performs like shit" is somehow something new, and we're talking about an embedded system, for fuck's sake.
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
Post Reply