| View previous topic :: View next topic |
| Author |
Message |
esper n00b


Joined: 19 Aug 2007 Posts: 6 Location: FL
|
Posted: Tue Feb 09, 2010 4:36 am Post subject: How multi-platform is java actually? |
|
|
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 |
|
 |
speeddemon Apprentice

Joined: 27 Sep 2003 Posts: 162
|
Posted: Tue Feb 09, 2010 4:55 am Post subject: |
|
|
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 |
|
 |
esper n00b


Joined: 19 Aug 2007 Posts: 6 Location: FL
|
Posted: Tue Feb 09, 2010 5:05 am Post subject: |
|
|
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 |
|
 |
speeddemon Apprentice

Joined: 27 Sep 2003 Posts: 162
|
Posted: Tue Feb 09, 2010 5:20 am Post subject: |
|
|
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 |
|
 |
jdmulloy Tux's lil' helper


Joined: 24 Dec 2004 Posts: 139 Location: Massachusetts, USA
|
|
| Back to top |
|
 |
esper n00b


Joined: 19 Aug 2007 Posts: 6 Location: FL
|
Posted: Tue Feb 09, 2010 5:37 am Post subject: |
|
|
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 |
|
 |
big dave n00b

Joined: 03 Jul 2009 Posts: 0 Location: in your base, killin all your doodz
|
Posted: Tue Feb 09, 2010 5:41 am Post subject: |
|
|
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 |
|
 |
jdmulloy Tux's lil' helper


Joined: 24 Dec 2004 Posts: 139 Location: Massachusetts, USA
|
Posted: Tue Feb 09, 2010 5:54 am Post subject: |
|
|
| 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 |
|
 |
runningwithscissors Guru


Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Tue Feb 09, 2010 6:11 am Post subject: |
|
|
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 |
|
 |
Akkara Administrator


Joined: 28 Mar 2006 Posts: 3509 Location: &akkara
|
Posted: Tue Feb 09, 2010 6:16 am Post subject: |
|
|
| jdmulloy wrote: | | All you [...] need is Perl. |
This could be made into a parody of a certain Beatles song... |
|
| Back to top |
|
 |
tylerwylie Guru


Joined: 19 Sep 2004 Posts: 455 Location: /US/Illinois/Champaign
|
Posted: Tue Feb 09, 2010 6:17 am Post subject: |
|
|
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 |
|
 |
runningwithscissors Guru


Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Tue Feb 09, 2010 6:35 am Post subject: |
|
|
| 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 |
|
 |
big dave n00b

Joined: 03 Jul 2009 Posts: 0 Location: in your base, killin all your doodz
|
Posted: Tue Feb 09, 2010 6:45 am Post subject: |
|
|
| 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 |
|
 |
esper n00b


Joined: 19 Aug 2007 Posts: 6 Location: FL
|
Posted: Tue Feb 09, 2010 6:57 am Post subject: |
|
|
| 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 |
|
 |
wswartzendruber Veteran


Joined: 23 Mar 2004 Posts: 1129 Location: California, USA
|
Posted: Tue Feb 09, 2010 7:14 am Post subject: |
|
|
| jdmulloy wrote: | | It's cross-platform alright. Runs like shit everywhere. |
Sig'd. |
|
| Back to top |
|
 |
petrjanda Veteran


Joined: 05 Sep 2003 Posts: 1552 Location: Brno, Czech Republic
|
Posted: Tue Feb 09, 2010 8:04 am Post subject: |
|
|
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 |
|
 |
pigeon768 l33t

Joined: 02 Jan 2006 Posts: 617
|
Posted: Tue Feb 09, 2010 8:20 am Post subject: Re: How multi-platform is java actually? |
|
|
| 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 |
|
 |
Dr.Willy Apprentice

Joined: 15 Jul 2007 Posts: 240 Location: NRW, Germany
|
Posted: Tue Feb 09, 2010 9:49 am Post subject: |
|
|
| 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 |
|
 |
esper n00b


Joined: 19 Aug 2007 Posts: 6 Location: FL
|
Posted: Tue Feb 09, 2010 9:54 am Post subject: |
|
|
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 |
|
 |
Dr.Willy Apprentice

Joined: 15 Jul 2007 Posts: 240 Location: NRW, Germany
|
Posted: Tue Feb 09, 2010 10:05 am Post subject: |
|
|
| Has anyone seriously tried Jython here? |
|
| Back to top |
|
 |
Shining Arcanine Veteran

Joined: 24 Sep 2009 Posts: 1110
|
Posted: Tue Feb 09, 2010 11:22 am Post subject: |
|
|
| 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 |
|
 |
Traffixxx n00b


Joined: 27 Mar 2004 Posts: 46
|
Posted: Tue Feb 09, 2010 1:16 pm Post subject: |
|
|
| 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 |
|
 |
marens Apprentice


Joined: 05 Aug 2004 Posts: 157
|
Posted: Tue Feb 09, 2010 1:53 pm Post subject: |
|
|
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 |
|
 |
speeddemon Apprentice

Joined: 27 Sep 2003 Posts: 162
|
Posted: Tue Feb 09, 2010 1:57 pm Post subject: |
|
|
I always love seeing these threads were everyone rips on java, just makes me feel all warm and fuzzy. 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 . _________________ Cats are deadly animals. If you stick your nose up their crotch and snort their piss, THEY CAN KILL YOU!!! |
|
| Back to top |
|
 |
Kenji Miyamoto Veteran


Joined: 28 May 2005 Posts: 1452 Location: Looking over your shoulder.
|
Posted: Tue Feb 09, 2010 2:01 pm Post subject: |
|
|
| 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 |
|
 |
|