Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: Java or C++...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 20 of 67 Topic 45096 of 47995
Post > Topic >>

Re: Java or C++?

by James Kanze <james.kanze@[EMAIL PROTECTED] > Apr 20, 2008 at 02:15 AM

On 19 avr, 23:40, Razii <whatever1...@[EMAIL PROTECTED]
> wrote:
> On Sat, 19 Apr 2008 05:26:05 -0700 (PDT), s0s...@[EMAIL PROTECTED]
 wrote:
> >I've been programming Python for a couple of years now. Now I'm
> >looking to move on to either C++ or Java, but I'm not sure which.

> There is nothing that you can do in C++ that you can't do
> in Java (except write low-lever drivers perhaps).

There's actually a lot: programming by contract, for example, or
intelligent management of locks.  Or distribute a program for
which you can give reasonable guarantees of reliability on any
platform on which it runs (i.e. no dynamic linking).

I work mainly on large servers.  I can't use Java for
reliability reasons; my code must work, every time.

> Everything that you can do in C++, you can do it much easier
> in Java with standard libraries that sup****t threading,

Threading is actually considerably easier to do right in C++
than in Java.

> networking, GUI and much more.

GUI is easier in Java.  I've had no problem networking in C++,
and all of the large servers I'm familiar with (e.g. Apache,
etc.) are written in either C or C++---never in Java.  When I
wrote the server for dynamic allocation of IP addresses
(networking), we used C++ for the server itself (for reliability
reasons, mainly---we guaranteed up time), and Java for all of
the interface code around it (mostly beans under WebSphere).

> Also, the java app with GUI and networking will run only every
> OS that has a JVM. In C++ you have to hunt for libraries,
> build them, and there is no guarantee that you will get a
> ****table product in the end.

And if the code is only supposed to run on one machine, or a
small set of machines?  With care, it's possible to write C++
code which ****ts easily to most Unix machines, and for large
scale servers, that's all you're interested in anyway.

--
James Kanze (GABI Software)             email:james.kanze@[EMAIL PROTECTED]
 en informatique orient=E9e objet/
                   Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34
 




 67 Posts in Topic:
Java or C++?
s0suk3@[EMAIL PROTECTED]   2008-04-19 05:26:05 
Re: Java or C++?
"Alf P. Steinbach&qu  2008-04-19 15:59:34 
Re: Java or C++?
s0suk3@[EMAIL PROTECTED]   2008-04-19 07:32:32 
Re: Java or C++?
Sam <sam@[EMAIL PROTEC  2008-04-19 17:32:12 
Re: Java or C++?
Krice <paulkp@[EMAIL P  2008-04-19 07:41:52 
Re: Java or C++?
s0suk3@[EMAIL PROTECTED]   2008-04-19 07:44:49 
Re: Java or C++?
Lambda <stephenhsu9@[E  2008-04-19 08:15:57 
Re: Java or C++?
Krice <paulkp@[EMAIL P  2008-04-19 10:09:22 
Re: Java or C++?
Michael.Boehnisch@[EMAIL   2008-04-19 10:55:57 
Re: Java or C++?
"Jim Langston"   2008-04-19 14:20:04 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-19 16:40:20 
Re: Java or C++?
Krice <paulkp@[EMAIL P  2008-04-19 15:05:46 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-19 22:29:40 
Re: Java or C++?
James Kanze <james.kan  2008-04-22 01:07:37 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-22 05:40:22 
Re: Java or C++?
James Kanze <james.kan  2008-04-25 10:19:09 
Re: Java or C++?
"Default User"   2008-04-25 18:10:40 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-25 18:28:26 
Re: Java or C++?
Matthias Buelow <mkb@[  2008-04-20 02:00:56 
Re: Java or C++?
James Kanze <james.kan  2008-04-20 02:15:59 
Re: Java or C++?
James Kanze <james.kan  2008-04-20 02:17:33 
Re: Java or C++?
"noagbodjivictor@[EM  2008-04-20 09:10:44 
Re: Java or C++?
Krice <paulkp@[EMAIL P  2008-04-20 09:28:55 
Re: Java or C++?
Pete Becker <pete@[EMA  2008-04-20 13:05:38 
Re: Java or C++?
Raz <dfdfsds@[EMAIL PR  2008-05-13 05:56:45 
Re: Java or C++?
ram@[EMAIL PROTECTED] (S  2008-05-13 14:22:48 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-20 15:14:48 
Re: Java or C++?
"Chris Thomasson&quo  2008-04-20 13:23:58 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-20 16:00:01 
Re: Java or C++?
Ian Collins <ian-news@  2008-04-21 09:20:38 
Re: Java or C++?
James Kanze <james.kan  2008-04-23 02:36:18 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-23 15:14:48 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-23 16:38:59 
Re: Java or C++?
Matthias Buelow <mkb@[  2008-04-24 15:24:14 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-24 14:29:04 
Re: Java or C++?
"Victor Bazarov"  2008-04-24 15:36:42 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-24 16:11:38 
Re: Java or C++?
Matthias Buelow <mkb@[  2008-04-25 13:47:29 
Re: Java or C++?
"Victor Bazarov"  2008-04-25 08:41:45 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-25 11:21:50 
Re: Java or C++?
s0suk3@[EMAIL PROTECTED]   2008-04-20 09:46:47 
Re: Java or C++?
Crazy c <chrisNchrist@  2008-04-20 09:53:53 
Re: Java or C++?
Lambda <stephenhsu9@[E  2008-04-20 20:18:51 
Re: Java or C++?
Matthias Buelow <mkb@[  2008-04-21 16:43:27 
Re: Java or C++?
Krice <paulkp@[EMAIL P  2008-04-20 22:29:09 
Re: Java or C++?
xtrigger303@[EMAIL PROTEC  2008-04-21 01:35:08 
Re: Java or C++?
pjb@[EMAIL PROTECTED] (P  2008-04-21 11:44:37 
Re: Java or C++?
=?UTF-8?B?RXJpayBXaWtzdHL  2008-04-21 16:02:26 
Re: Java or C++?
xtrigger303@[EMAIL PROTEC  2008-04-21 05:11:48 
Re: Java or C++?
xtrigger303@[EMAIL PROTEC  2008-04-21 05:16:06 
Re: Java or C++?
fossilx <fossilx@[EMAI  2008-04-21 07:58:11 
Re: Java or C++?
pjb@[EMAIL PROTECTED] (P  2008-04-21 17:10:19 
Re: Java or C++?
Matthias Buelow <mkb@[  2008-04-21 17:22:15 
Re: Java or C++?
James Kanze <james.kan  2008-04-21 09:04:54 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-21 13:45:47 
Re: Java or C++?
"Chris Thomasson&quo  2008-04-21 12:05:13 
Re: Java or C++?
"Chris Thomasson&quo  2008-04-21 13:17:56 
Re: Java or C++?
pjb@[EMAIL PROTECTED] (P  2008-04-22 13:55:22 
Re: Java or C++?
Lionel B <me@[EMAIL PR  2008-04-25 15:05:24 
Re: Java or C++?
James Kanze <james.kan  2008-04-21 09:12:20 
Re: Java or C++?
Yakov Gerlovin <yakov.  2008-04-22 04:08:34 
Re: Java or C++?
coal@[EMAIL PROTECTED]   2008-04-25 11:49:15 
Re: Java or C++?
"Atharvan :-)"   2008-04-26 06:48:01 
Re: Java or C++?
Razii <whatever123q@[E  2008-04-26 17:28:13 
Re: Java or C++?
Daniel de Kok <daniel@  2008-04-26 19:24:25 
Re: Java or C++?
James Kanze <james.kan  2008-05-14 00:59:39 
Re: Java or C++?
darkscriptc <darkscrip  2008-05-14 08:27:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:23:48 CDT 2008.