Gentoo Forums
Gentoo Forums
Quick Search: in
How multi-platform is java actually?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
esper
n00b
n00b


Joined: 19 Aug 2007
Posts: 6
Location: FL

PostPosted: Tue Feb 09, 2010 4:36 am    Post subject: How multi-platform is java actually? Reply with quote

I've not done any development in java, but I've heard from friends who do that the multi-platform concept of the language is more myth than reality. Can anyone way on that?
_________________
Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.
- Dan Barker
Back to top
View user's profile Send private message
speeddemon
Apprentice
Apprentice


Joined: 27 Sep 2003
Posts: 162

PostPosted: Tue Feb 09, 2010 4:55 am    Post subject: Reply with quote

I still don't like java, but for the most part everything I've done was very portable (as in no change in code needed). That being said, I always used everything Sun. Not sure on how the other jvm's would perform. It also depends on what you consider portability. Stuff written for desktop environments won't run on cell phones (Java ME). You also have to consider what version you are using while writing the program, and make sure the target systems have everything you plan on using. If you use a class that isn't supported in an older version, of course you'll have problems trying to port a program to a machine with that older version.

Im sure there are portability problems here and there, but I've never run into any when making stuff run between windows, *nix and mac. Somebody else that has will probably chime in, and hopefully elaborate.
_________________
Cats are deadly animals. If you stick your nose up their crotch and snort their piss, THEY CAN KILL YOU!!!
Back to top
View user's profile Send private message
esper
n00b
n00b


Joined: 19 Aug 2007
Posts: 6
Location: FL

PostPosted: Tue Feb 09, 2010 5:05 am    Post subject: Reply with quote

I'm considering abandoning python as my language for web apps and non text parsing/misc apps simply to force myself to learn java more intimately. There are so few python dev jobs in my area that, as much as I love the language, it makes more sense on a career standpoint to go with something that I could spit in the wind and hit a job offer. My concern for portability is simply to see just how convoluted of a virtual cloud will I need to put together.
_________________
Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.
- Dan Barker
Back to top
View user's profile Send private message
speeddemon
Apprentice
Apprentice


Joined: 27 Sep 2003
Posts: 162

PostPosted: Tue Feb 09, 2010 5:20 am    Post subject: Reply with quote

I really hesitate to ever recommend java, as I think its just a horrible language. I also don't have any python experience. However since you are thinking about this from a career standpoint, then yes I would try and learn it if I were you. It is in pretty wide use. As much as I hate it, I still keep using it here and there, and I have made money from programs written in it (writing a cell phone app in it right now).
_________________
Cats are deadly animals. If you stick your nose up their crotch and snort their piss, THEY CAN KILL YOU!!!
Back to top
View user's profile Send private message
jdmulloy
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2004
Posts: 139
Location: Massachusetts, USA

PostPosted: Tue Feb 09, 2010 5:20 am    Post subject: Reply with quote

It's cross-platform alright. Runs like shit everywhere.
_________________
Joe Mulloy | http://twitter.com/jdmulloy | Ron Paul in 2012! | 5-1-07 | Unban Playfool | Fire your "Too big to fail" bank http://moveyourmoney.info
Back to top
View user's profile Send private message
esper
n00b
n00b


Joined: 19 Aug 2007
Posts: 6
Location: FL

PostPosted: Tue Feb 09, 2010 5:37 am    Post subject: Reply with quote

I actually despise java. I tried learning it way back when I first started to teach myself programming (about 6 years ago). Unfortunately my choices are .net, php, or java. I refuse to be locked into windows only development (no one is doing production with mono) so scratch .net. I hate php even more than java for some irrational reason, so scratch that. I don't want to get into c++/c development since my primary focus is web apps, so scratch that. RoR is still crap and I really don't want to spend more time trying to get the damn VM to stop devouring every resource in sight than actually working on my ideas (and its still fairly niche, at least in south florida). So I end up defaulting to java as my quickest way out of sys admin work while I'm stuck in this penis state.
_________________
Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.
- Dan Barker
Back to top
View user's profile Send private message
big dave
n00b
n00b


Joined: 03 Jul 2009
Posts: 0
Location: in your base, killin all your doodz

PostPosted: Tue Feb 09, 2010 5:41 am    Post subject: Reply with quote

slower than c/c++
requires a compliant version of the JVM installed... which sucks because so many of them have been super-fragmented.
ridiculously poor string handling (compared to scripting languages like php, perl, python, etc)
makes me want to stab myself in the face when dealing with a database
Back to top
View user's profile Send private message
jdmulloy
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2004
Posts: 139
Location: Massachusetts, USA

PostPosted: Tue Feb 09, 2010 5:54 am    Post subject: Reply with quote

esper wrote:
I actually despise java. I tried learning it way back when I first started to teach myself programming (about 6 years ago). Unfortunately my choices are .net, php, or java. I refuse to be locked into windows only development (no one is doing production with mono) so scratch .net. I hate php even more than java for some irrational reason, so scratch that. I don't want to get into c++/c development since my primary focus is web apps, so scratch that. RoR is still crap and I really don't want to spend more time trying to get the damn VM to stop devouring every resource in sight than actually working on my ideas (and its still fairly niche, at least in south florida). So I end up defaulting to java as my quickest way out of sys admin work while I'm stuck in this penis state.


All you really need is Perl.
_________________
Joe Mulloy | http://twitter.com/jdmulloy | Ron Paul in 2012! | 5-1-07 | Unban Playfool | Fire your "Too big to fail" bank http://moveyourmoney.info
Back to top
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Tue Feb 09, 2010 6:11 am    Post subject: Reply with quote

It is cross-platform enough for its target market. It has VMs available for the more common server hardware.
So, regardless of how unpleasant it is, it fills its niche pretty well.

If you're looking to do web dev however, I wouldn't recommend java. There are (sadly) plenty of java web apps and you will certainly find work with java web dev skills, but it is so cumbersome to work with if all you want to do is make a few websites. Reconsider PHP (it's actually quite nice, and was created specifically for web development). .net is quite pleasant to work with but it will lock you in to working on MS-only stuff.
_________________
It can be said without a shadow of doubt that to be in a Russian prison is far more preferable than to be a worker in an Indian factory -- Commie Nehru


Last edited by runningwithscissors on Tue Feb 09, 2010 6:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Akkara
Administrator
Administrator


Joined: 28 Mar 2006
Posts: 3509
Location: &akkara

PostPosted: Tue Feb 09, 2010 6:16 am    Post subject: Reply with quote

jdmulloy wrote:
All you [...] need is Perl.

This could be made into a parody of a certain Beatles song...
Back to top
View user's profile Send private message
tylerwylie
Guru
Guru


Joined: 19 Sep 2004
Posts: 455
Location: /US/Illinois/Champaign

PostPosted: Tue Feb 09, 2010 6:17 am    Post subject: Reply with quote

If I have to script for a JVM I find myself using Groovy more and more(OpenNMS scripting for my job)
_________________
POLITICS, n. A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.
Back to top
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Tue Feb 09, 2010 6:35 am    Post subject: Reply with quote

tylerwylie wrote:
If I have to script for a JVM I find myself using Groovy more and more(OpenNMS scripting for my job)
The toy languages (Groovy, IronPython etc.) never work out because most people don't have skills with them, and when problems/changes come up in the scripts, you have to do them yourself (sucks even more when you're busy and any problems with the scripts need to be urgently fixed).
_________________
It can be said without a shadow of doubt that to be in a Russian prison is far more preferable than to be a worker in an Indian factory -- Commie Nehru
Back to top
View user's profile Send private message
big dave
n00b
n00b


Joined: 03 Jul 2009
Posts: 0
Location: in your base, killin all your doodz

PostPosted: Tue Feb 09, 2010 6:45 am    Post subject: Reply with quote

esper wrote:
I actually despise java. I tried learning it way back when I first started to teach myself programming (about 6 years ago). Unfortunately my choices are .net, php, or java. I refuse to be locked into windows only development (no one is doing production with mono) so scratch .net. I hate php even more than java for some irrational reason, so scratch that. I don't want to get into c++/c development since my primary focus is web apps, so scratch that. RoR is still crap and I really don't want to spend more time trying to get the damn VM to stop devouring every resource in sight than actually working on my ideas (and its still fairly niche, at least in south florida). So I end up defaulting to java as my quickest way out of sys admin work while I'm stuck in this penis state.


picking a language is like picking a politician. you fucking hate them all and pick the one you hate the least. php is pretty good at string/array handling compared to most languages, and i love the weak typecasting. but the api is a fucking joke. there's no reason why you should have conventions that end up with strpos($haystack, $needle) and in_array($needle, $haystack). they randomly use underscores in between function words/syllables (strtolower... ) and they regularly swap arguments.

add that to the insane lack of php guides written by people who actually know how to code (seriously, you should not have echo as the only function executing in 20 lines of code). it's such a mess.
Back to top
View user's profile Send private message
esper
n00b
n00b


Joined: 19 Aug 2007
Posts: 6
Location: FL

PostPosted: Tue Feb 09, 2010 6:57 am    Post subject: Reply with quote

big dave wrote:
esper wrote:
I actually despise java. I tried learning it way back when I first started to teach myself programming (about 6 years ago). Unfortunately my choices are .net, php, or java. I refuse to be locked into windows only development (no one is doing production with mono) so scratch .net. I hate php even more than java for some irrational reason, so scratch that. I don't want to get into c++/c development since my primary focus is web apps, so scratch that. RoR is still crap and I really don't want to spend more time trying to get the damn VM to stop devouring every resource in sight than actually working on my ideas (and its still fairly niche, at least in south florida). So I end up defaulting to java as my quickest way out of sys admin work while I'm stuck in this penis state.


picking a language is like picking a politician. you fucking hate them all and pick the one you hate the least. php is pretty good at string/array handling compared to most languages, and i love the weak typecasting. but the api is a fucking joke. there's no reason why you should have conventions that end up with strpos($haystack, $needle) and in_array($needle, $haystack). they randomly use underscores in between function words/syllables (strtolower... ) and they regularly swap arguments.

add that to the insane lack of php guides written by people who actually know how to code (seriously, you should not have echo as the only function executing in 20 lines of code). it's such a mess.

I really dig python, lisp, and regol. None of them are getting me jobs and regol costs 500$ for all the useful stuff.
_________________
Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.
- Dan Barker
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1129
Location: California, USA

PostPosted: Tue Feb 09, 2010 7:14 am    Post subject: Reply with quote

jdmulloy wrote:
It's cross-platform alright. Runs like shit everywhere.

Sig'd.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1552
Location: Brno, Czech Republic

PostPosted: Tue Feb 09, 2010 8:04 am    Post subject: Reply with quote

I dont like Java. Its slow and GUI applications made in it dont look very good. Personally I like Ruby, but have been learning C++ to compliment that.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 617

PostPosted: Tue Feb 09, 2010 8:20 am    Post subject: Re: How multi-platform is java actually? Reply with quote

esper wrote:
I've not done any development in java, but I've heard from friends who do that the multi-platform concept of the language is more myth than reality. Can anyone way on that?
It's reasonably cross-platform for server/command line stuff, as long as you don't attempt to get too low level. GUI's are no more cross platform than C/C++ with cross-platform libs like qt or wxwidgets or whatever.
_________________
My political bias.
Back to top
View user's profile Send private message
Dr.Willy
Apprentice
Apprentice


Joined: 15 Jul 2007
Posts: 240
Location: NRW, Germany

PostPosted: Tue Feb 09, 2010 9:49 am    Post subject: Reply with quote

esper wrote:
I'm considering abandoning python as my language for web apps and non text parsing/misc apps simply to force myself to learn java more intimately.

Ouch. Oh well, given the options, Java's not so bad.
In terms of web devel cross plattform really means Windows, Linux or Solaris, so no problems there.
Make sure you check out Spring and maybe Hibernate if you don't want to be bothered with the database stuff.

petrjanda wrote:
I dont like Java. Its slow and GUI applications made in it dont look very good.

swt or swing nimbus.
Back to top
View user's profile Send private message
esper
n00b
n00b


Joined: 19 Aug 2007
Posts: 6
Location: FL

PostPosted: Tue Feb 09, 2010 9:54 am    Post subject: Reply with quote

Yes, its a painful process. I'll likely use python purely for prototyping concepts then try to flesh them out in java. This is going to be painful :/
_________________
Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.
- Dan Barker
Back to top
View user's profile Send private message
Dr.Willy
Apprentice
Apprentice


Joined: 15 Jul 2007
Posts: 240
Location: NRW, Germany

PostPosted: Tue Feb 09, 2010 10:05 am    Post subject: Reply with quote

Has anyone seriously tried Jython here?
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Feb 09, 2010 11:22 am    Post subject: Reply with quote

speeddemon wrote:
I really hesitate to ever recommend java, as I think its just a horrible language. I also don't have any python experience. However since you are thinking about this from a career standpoint, then yes I would try and learn it if I were you. It is in pretty wide use. As much as I hate it, I still keep using it here and there, and I have made money from programs written in it (writing a cell phone app in it right now).


I have been required to write code in Java for many of my computer science classes and it feels like programming with mittens. It makes me wish Java was never invented. :/
Back to top
View user's profile Send private message
Traffixxx
n00b
n00b


Joined: 27 Mar 2004
Posts: 46

PostPosted: Tue Feb 09, 2010 1:16 pm    Post subject: Reply with quote

petrjanda wrote:
I dont like Java. Its slow and GUI applications made in it dont look very good.



IntelliJ is written in Java afaik for java development and I must say it looks very nice in *nix and windows.


Hibernate + spring for database is really nice and easy to config, should also be looking at spring-mvc.

Never had problems with deploying applications on servers
Back to top
View user's profile Send private message
marens
Apprentice
Apprentice


Joined: 05 Aug 2004
Posts: 157

PostPosted: Tue Feb 09, 2010 1:53 pm    Post subject: Reply with quote

Check http://wicket.apache.org/ for learning java while coding web applications.
Quote:
...a refreshing lack of XML...Swap the boilerplate, complex debugging and brittle code for powerful, reusable components written with plain Java and HTML.

Can be combined with the already mentioned spring/hibernate or JEE for convention over configuration.
_________________
There are 10 types of people in the world. Those who understand binary, those who don't, and people who use ternary to confuse others.
Back to top
View user's profile Send private message
speeddemon
Apprentice
Apprentice


Joined: 27 Sep 2003
Posts: 162

PostPosted: Tue Feb 09, 2010 1:57 pm    Post subject: Reply with quote

I always love seeing these threads were everyone rips on java, just makes me feel all warm and fuzzy. :D I didn't even think of PHP, but I always liked it (have the least complaints about it), and its been my choice for web apps when I had the choice. Though usually I was doing rather straightforward database stuff with it, no real chance to run into complications.

Shining Arcanine wrote:
speeddemon wrote:
I really hesitate to ever recommend java, as I think its just a horrible language. I also don't have any python experience. However since you are thinking about this from a career standpoint, then yes I would try and learn it if I were you. It is in pretty wide use. As much as I hate it, I still keep using it here and there, and I have made money from programs written in it (writing a cell phone app in it right now).


I have been required to write code in Java for many of my computer science classes and it feels like programming with mittens. It makes me wish Java was never invented. :/

I believe I had 2 classes in college that weren't java. 1 was assembly, and the other class was 3d graphics with openGL, which used C. Our operating systems class even used java for all the programming assignments :roll: .
_________________
Cats are deadly animals. If you stick your nose up their crotch and snort their piss, THEY CAN KILL YOU!!!
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Tue Feb 09, 2010 2:01 pm    Post subject: Reply with quote

jdmulloy wrote:
It's cross-platform alright. Runs like shit everywhere.
Indeed it does. It takes the lowest common denominator of all the platforms it supports, which makes doing certain tasks very tedious. I remember a project I worked on in CSE where we had to use Java with networking and it was painful.

When it came to interoperability, everyone else working on their versions of the project seemed to assume UCS-2 (not byte-oriented as was intended). I blame the Java APIs for that.
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum