473,385 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Java or C++?

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.

Which one do you think will be a better transition for a Python
programmer? Which one will educate me the best?
Jun 27 '08
63 4882
Razii wrote:
Why didn't you
complain about pro-c++ propaganda posted in the thread by several
people?
Because it's a C++ newsgroup? Just a wild guess.
Jun 27 '08 #51
Razii wrote:
On Thu, 24 Apr 2008 15:36:42 -0400, "Victor Bazarov"
<v.********@comAcast.netwrote:
>It would probably be better for you to refrain from telling people
what to do.

It would be far better if you learn to use filters. The thread was no
started by me, and even though I tried to ignore the thread, just a
random click on a post, and I saw my name mentioned. As usual, Kanze
was posting his typical anti-Java stuff as he is well known for this,
and has been doing for years. I responded to his post. Why didn't you
complain about pro-c++ propaganda posted in the thread by several
people? In any case, it's pretty clear from the subject what the
thread is about. What exactly are you whining about? Right click on
the thread and click on ignore.
Again, don't tell people where to right-click or what to ignore and not
to ignore. I'll kill-file you as soon as I finish this reply, don't
worry.

Now, if you read the FAQ carefully, language comparisons are off-topic
since they serve no purpose. It does not matter whether it was you who
started this thread or not, if your post is off-topic, your post will
be flagged as such, and you shouldn't whine about it. Get it?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #52
On Thu, 24 Apr 2008 16:11:38 -0500, Razii wrote:
On Thu, 24 Apr 2008 15:36:42 -0400, "Victor Bazarov"
<v.********@comAcast.netwrote:
>>It would probably be better for you to refrain from telling people what
to do.

It would be far better if you learn to use filters. The thread was no
started by me, and even though I tried to ignore the thread, just a
random click on a post, and I saw my name mentioned. As usual, Kanze was
posting his typical anti-Java stuff as he is well known for this, and
has been doing for years. I responded to his post. Why didn't you
complain about pro-c++ propaganda posted in the thread by several
people? In any case, it's pretty clear from the subject what the thread
is about. What exactly are you whining about? Right click on the thread
and click on ignore.
Eejit.

<plonk>

--
Lionel B
Jun 27 '08 #53
On Fri, 25 Apr 2008 08:41:45 -0400, "Victor Bazarov"
<v.********@comAcast.netwrote:
>Now, if you read the FAQ carefully...language comparisons are
off-topic since they serve no purpose.
They do serve a purpose. That is, they are interesting and fun. You
either can ignore a thread or move to the moderated newsgroup. If you
read the USENET FAQ carefully, you would know that you don't whine
aimlessly. It serves no purpose. The person who wrote the FAQ for this
group doesn't own this group anymore than I or you do.

Jun 27 '08 #54
On Apr 25, 6:21 pm, Razii <whatever1...@hotmail.comwrote:
On Fri, 25 Apr 2008 08:41:45 -0400, "Victor Bazarov"
<v.Abaza...@comAcast.netwrote:
Now, if you read the FAQ carefully...language comparisons are
off-topic since they serve no purpose.
They do serve a purpose. That is, they are interesting and fun.
In other words, you're a troll.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jun 27 '08 #55
James Kanze wrote:
On Apr 25, 6:21 pm, Razii <whatever1...@hotmail.comwrote:
On Fri, 25 Apr 2008 08:41:45 -0400, "Victor Bazarov"
<v.Abaza...@comAcast.netwrote:
Now, if you read the FAQ carefully...language comparisons are
off-topic since they serve no purpose.
They do serve a purpose. That is, they are interesting and fun.

In other words, you're a troll.
Well, yeah.


Brian
Jun 27 '08 #56
On Apr 20, 9:18*pm, Lambda <stephenh...@gmail.comwrote:
On Apr 19, 10:32 pm, s0s...@gmail.com wrote:
Well, I mean "better" and "best" in a very general sense, whichever
sense you want to interpret it on. More useful, more fun, more
educational, etc; or, as you already suggested, easier. Thanks.

I recommend learn C++ and Java all.
I disagree. I recommend picking one and learning it. They are
both big languages and it will be easier to keep your sanity if
you focus on one. I'd further recommend picking C++. When I
started working on an alternative to C++ serialization libraries,
I worked on supporting basic types and standard containers.
It wasn't until later that I started thinking about supporting user
defined types. I didn't think through what support for
user defined types would involve and just got to work on the basics.
Eventually when we added support for udts we realized
that we didn't want to repeat the code over and over every time
an object gets used as part of a message. So we needed to write/
generate methods that would be part of the class. Users
of the software simply add prototypes to their classes and the
implementation of those methods is written in a separate file. That
works fine in C++. We briefly considered adding support
for Java to our services, but we realized that Java's rule requiring a
class to be completed in the file it is started
would cause us headaches. We didn't want to attempt to add
computer-generated code to a file that has hand-written code
in it. What if we accidentally alter some hand-written code?
Plus it is simpler conceptually if you know everything in a
file is hand-written. Or it is all computer-generated. I'm
thankful to G-d for keeping us from investing a lot of time
in a language that has a rule like that. In my opinion the
rule is there as an attempt to force people who would
otherwise be able to compete with Sun to have to negotiate
with Sun. I'm happy to have stuck with C++ and think in the
long run it is the better choice.

Brian Wood
Ebenezer Enterprises
www.webEbenezer.net

"Where the Spirit of the L-rd is, there is liberty."
2 Cor. 3:17
Jun 27 '08 #57
On Fri, 25 Apr 2008 10:19:09 -0700 (PDT), James Kanze
<ja*********@gmail.comwrote:

>In other words, you're a troll.
If that is your definition of troll.
Jun 27 '08 #58
hi,

I often saw Razii in newsgroups dealing with Java and C++.
And I like the benchmarks of C++ and Java he producing in favour of
Java.

Let me introduce myself. I am a B.Sc (Computer Science) student.
And of course I am not a professional to give advice.
But I want to suggest Razii to read the following link at least once
before posting such things.
Java and C++ and entirely different. (and Many of Java's foundation is
written using C.)
(nb: I am not against Java. I am started using C++ and now studying
Java.)

These are all links that you all may be interested. Have a look
please.
And Razii if you please create a profile I can know more about you :-)

1) Is Java the language you would have designed if you didn't have to
be compatible with C?
http://www.research.att.com/~bs/bs_faq.html#Java
2) Would you compare C++ to "some language"?
http://www.research.att.com/~bs/bs_faq.html#compare
3) Others do compare their languages to C++; doesn't that annoy you?
http://www.research.att.com/~bs/bs_f...ers-do-compare
4) How can a legacy language like C++ compete with modern, advanced
languages?
http://www.research.att.com/~bs/bs_faq.html#advanced
5) Why is C++ so BIG?
http://www.research.att.com/~bs/bs_faq.html#big
6)Is the number of C++ users still doubling every year?
http://www.research.att.com/~bs/bs_f...r-of-C++-users
7)C++ Applications
http://www.research.att.com/~bs/applications.html
8) The Programming Languages Beacon
http://www.lextrait.com/vincent/implementations.html
9) Bjarne Stroustrup's FAQ
http://www.research.att.com/~bs/bs_faq.html

with love,
Arun.K.R

[
Atharvan!!!
{333}
GPG Key :928C3AF1
ChintaaDaara.blogspot.com
ChintaaDaara.blog.co.in
]

{MAN can be DESTROYED, but cannot be DEFEATED. }
Jun 27 '08 #59
s0****@gmail.com 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.

Which one do you think will be a better transition for a Python
programmer? Which one will educate me the best?
Java will probably be the easiest transition, but I think C++ will
educate you better. It's a fairly complex language that gives you much
more control than Java. More control requires more responsibility.

As an additional bonus, you can optimize parts of your Python
applications where necessary by rewriting them in C++, and creating
bindings with Boost.Python.

Take care,
Daniel
Jun 27 '08 #60
On Sat, 26 Apr 2008 06:48:01 -0700 (PDT), "Atharvan :-)"
<co*****@gmail.comwrote:
>Let me introduce myself. I am a B.Sc (Computer Science) student.
I am not.
>And of course I am not a professional to give advice.
Nor am I.
>And I like the benchmarks of C++ and Java he producing in favour of
Java.
I produced no such benchmark. Generally, C++ is slightly faster
overall. However, some people often claim that Java is way too slow
and C++ way too fast. You would think that C/C++ must be at least 5 to
10 times faster, if not 50 to 100 times faster. That what makes it
fun :) It's really easy to get close to c++ numbers (with slight
tweaking in some cases).
>These are all links that you all may be interested. Have a look
please.
And Razii if you please create a profile I can know more about you :-)

1) Is Java the language you would have designed if you didn't have to
be compatible with C?
http://www.research.att.com/~bs/bs_faq.html#Java
2) Would you compare C++ to "some language"?
http://www.research.att.com/~bs/bs_faq.html#compare
3) Others do compare their languages to C++; doesn't that annoy you?
http://www.research.att.com/~bs/bs_f...ers-do-compare
4) How can a legacy language like C++ compete with modern, advanced
languages?
http://www.research.att.com/~bs/bs_faq.html#advanced
5) Why is C++ so BIG?
I have seen the Bjarne Stroustrup FAQ many times. This FAQ was same
last time I was on this newsgroup which was 8 years ago. I lost
interest in java and c++ -- and programming in general -- so moved on
to something else.

Stroustrup is amazingly biased, by the way. He claims Java is a
platform -- and calls it a commercial platform, like Windows. He has
not updated the FAQ that all of java platform (including JVM) is open
source under GPL license.

Also, java -- the language itself -- is not a platform. You can
compile it to native machine code using open source GCJ and Jet
compilers (this was true even when Stroustrup wrote that FAQ -- he was
always wrong).

As I said, Stroustrup is incredibly biased. For example, Stroustrup
claims that number of C++ users doubled from 1980 to 1991. However, he
will never admit that as percentage of total developers, use of C++
declined over from 76 percent in 1998 to 46 percent in 2004 (Data from
analyst firm Evans Data, which carries out regular developer surveys).

Jun 27 '08 #61
Raz
On Sun, 20 Apr 2008 13:05:38 -0400, Pete Becker
<pe**@versatilecoding.comwrote:
>I guess that is not the same thing, just doesn't sound good.
Does java even have pointers?

No, but it has object of type NullPointerException.
Well, troll, Pete Becker, of course, Java has pointers in the sense
that all variables point to the objects that they reference. If the
variable is pointing to null object, you get NullPointerException.
That's far better than leaving the behavior undefined like in C++.
Jun 27 '08 #62
On May 13, 12:56 pm, Raz <dfdf...@gmail.comwrote:
On Sun, 20 Apr 2008 13:05:38 -0400, Pete Becker
<p...@versatilecoding.comwrote:
I guess that is not the same thing, just doesn't sound good.
Does java even have pointers?
No, but it has object of type NullPointerException.

Well, troll, Pete Becker, of course, Java has pointers in the
sense that all variables point to the objects that they
reference.
I don't think you understand Pete's particular brand of humor.
If the variable is pointing to null object, you get
NullPointerException. That's far better than leaving the
behavior undefined like in C++.
You mean it's better to impose a wrong behavior, rather than
letting the implementation do the right thing?

I don't like the "undefined" myself, but you can't *require* a
core dump at the language level if the language is to support
machines without any disk. And on all implementations which run
under a real OS, dereferencing a null pointer will result in a
core dump (or whatever the equivalent is on that system).

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jun 27 '08 #63
On Apr 19, 3:26*pm, s0s...@gmail.com 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.

Which one do you think will be a better transition for a Python
programmer? Which one will educate me the best?
This may sound like a really old guy speaking, but, What do you want
to use the knowledge for?

Learning a language is not an action you take just to LEARN it means
that you will actually use it for something. For example, if you were
good at using language X, and wanted to do a really fast game with
your own exotic algorithms, but language X is not the best at
fulfilling your objective. Then, and only then, do you really need to
go out and look for something that does the job better.

I can't tell you which one is better, because it depends on what you
want to do. However, generally if you want a high performance program
then go with C++. If you want to make something that works on many
platforms, with less coding time, use Java.

In terms of which is easier or not, C++ and Java are the same. You
have some confusions there that aren't in the other, but overall the
amount of confusions, which hopefully is low, is the same between the
two.

Regards,

Wanas
Jun 27 '08 #64

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.