473,889 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

On Java and C++

Java programmers seem to always be whining about how confusing and
overly complex C++ appears to them. I would like to introduce an
explanation for this. Is it possible that Java programmers simply
aren't smart enough to understand C++?

This is not merely a whimsical hypothesis. Given my experience with
Java programmers --- the code they write and the conversations they
have --- Occam's Razor points to this explanation. For example,

"Oooh I'm confused about the difference between pointers, references,
and objects! How confusing!"

"Oooh operator overloading confuses me! The expression x + y is so
confusing, who knows what's happening with that? If x and y are
complex numbers, what the hell could x + y mean?"

"Oooh multiple inheritance is so confusing! Though I am both a father
and a programmer, I still find it so confusing how the same object can
be two different things! How confusing!"

"Oooh and virtual bases are so bizarre! I am a student --- myself
'the father' is the same student as myself 'the programmer' --- but
nonetheless the idea of virtual bases is absolutely confounding and
confusing to me!"

Again, Occam's Razor is a valuable tool here. In deciding among
competing hypotheses, choose the simplest one. To impartial observers
of indoctrinated Java programmers, the explanation is simple indeed.

Apr 26 '06
458 21637

"Tomás" <NU**@NULL.NULL > wrote in message
news:v%******** **********@news .indigo.ie...
I wouldn't mind if programming became so easy I could be replaced by a
monkey. I can always find something else interesting to do, and it
would do miracles for society if software development projects became
effectively free.

Computers are great, but they lack one thing: Intelligence. If you want
them
to do something, you've to tell them EXACTLY what way to do it -- they
don't
take any hints.

Monkeys have intelligence, but not as much of it as we humans do --
therefore we'll always be the better programmers.

So, maybe if you wanted cheap programming, you could approach the monkey
industry, and if you wanted high-quality programming, you could approach
the
few remaining human programmers (assuming the monkey industry kicks off).
-Tomás


Pft, the ingredients to make human programmers obsolete arent quite that far
fetched. You take one really smart brain surgeon to map and understand every
single human neuron, have one really smart nanotechnology scientist to make
quantum computers more practical, and a decent programmer to implement a
simulation of a human brain and voila. Teach that human brain to program and
we're pretty much done. Insert the Terminator theme music here...
May 10 '06 #451
In article <44************ ***********@new s.xs4all.nl>,
Remon van Vliet <re***@exmachin a.nl> wrote:


Pft, the ingredients to make human programmers obsolete arent quite that far
fetched. You take one really smart brain surgeon to map and understand every
single human neuron, have one really smart nanotechnology scientist to make
quantum computers more practical, and a decent programmer to implement a
simulation of a human brain and voila. Teach that human brain to program and
we're pretty much done. Insert the Terminator theme music here...


The fundamental problem with this approach is that what you have
created is effectively just another human. It may have a different
shape than old-style humans, but it is a human all the same. And like
the rest of us, it will not like to be used as a slave: it will want
freedom, it will want luxuries, and it will want citizenship.
(Refusing it these perks will lead to rebellion sooner or later.)

The only potential benefits are that 1) this new human may require
less resources to maintain than the original and 2) perhaps you can
make it smarter/faster/more suited to the task/whatever.

The benefit of (1) above is imaginary in the majority of cases since
most westerners today expect to make a whole lot more money than just
what it would take to keep them alive anyway (a couple of servings of
rice a day really isn't very expensive and doesn't justify annual
wages of $10,000+). Human Mk2 will feel the same way.

The benefit of (2) is plausible - you would effectively get a species
of uber-workers that can do all sorts of tasks for us (and they would
be well paid for it). If you thought protests about immigrants taking
away all the jobs are bad, you ain't seen nothing yet :-)

Cheers
Bent D
--
Bent Dalager - bc*@pvv.org - http://www.pvv.org/~bcd
powered by emacs
May 12 '06 #452
On Fri, 12 May 2006 08:53:57 +0000 (UTC), bc*@pvv.ntnu.no (Bent C
Dalager) wrote:
Pft, the ingredients to make human programmers obsolete arent quite that far
fetched. You take one really smart brain surgeon to map and understand every
single human neuron, have one really smart nanotechnology scientist to make
quantum computers more practical, and a decent programmer to implement a
simulation of a human brain and voila. Teach that human brain to program and
we're pretty much done. Insert the Terminator theme music here...


The fundamental problem with this approach is that what you have
created is effectively just another human. It may have a different

The only potential benefits are that 1) this new human may require
less resources to maintain than the original and 2) perhaps you can
make it smarter/faster/more suited to the task/whatever.


Don't know about benefits, but I'm sure that a new human would have
MORE bugs, being a v1.0, and not being patched for thousands of years,
as opposed to the "natural" human. ;) Having said that, I really don't
know what's the point in recoding something that already exists.

But, cloning on the other hand... now that's the promising technology.
You take what already exists, and code only extensions, or patch what
needs to be patched. And than you make clones and train them to make
clones... the only problem is that I hear it's possible to patent
genes, so you might be building on propriety software.

And of course there are those pesky human rights activists, who would
make sure that once you really create the superior product, you cannot
use it, or even buy it, without employing it... which is nuts, I mean,
think of it - you create it, you program it, and then you must pay to
run it...

Domchi

--
Ouroboros ltd. - http://www.ouroboros.hr
Antispam: to reply, remove extra monkey from reply-to address.
May 12 '06 #453

"Domagoj Klepac" <no************ *******@spamgou rmet.com> wrote in message
news:46******** *************** *********@4ax.c om...
the only problem is that I hear it's possible to patent
genes, so you might be building on propriety software.
Worse yet, you might owe your very existence to proprietary data. What
if someone patents my genes before I get a chance to? Would I have to pay
royalties for continued use of my genes?

And of course there are those pesky human rights activists, who would
make sure that once you really create the superior product, you cannot
use it, or even buy it, without employing it... which is nuts, I mean,
think of it - you create it, you program it, and then you must pay to
run it...


This isn't too uncommon. Consider the PHP programmer who is contracted
to write a pay-subscription site, and then wishes to access the site himself
once the product was delivered to the client? The PHP programmer is supposed
to pay to use his own creations. Of course, he could have added in a
backdoor to gain free access.

So add back-doors to your cloned humans; have them claim that they WANT
to be used by you, and any activists who denies them that right is threading
on their rights as humans.

- Oliver

May 12 '06 #454
Right on, Real programers use real languiges like C[++], Perl, Scheme,
Python, Ruby

May 16 '06 #455
Bjarne Stroustrup has this to say:

"The connection between the language in which we think/program and
the
problems and solutions we can imagine is very close. For this
reason
restricting language features with the intent of eliminating
programmer errors is at best dangerous."

May 16 '06 #457
at*******@aol.c om schrieb:
Right on, Real programers use real languiges like C[++], Perl, Scheme,
Python, Ruby


Real programmers know how to quote with google groups.
May 16 '06 #458
On 2006-05-03, Bent C Dalager <bc*@pvv.ntnu.n owrote:
In article <kn************ *************** *****@4ax.com>,
JustBoo <Ju*****@BooWho .comwrote:
>>
(...)

Wow, given that list I would feel more comfortable paying a monkey to
code my apps. Why pay a human just to follow the banana around when I
can get chimps to do it for less.

The day we have a programming language that is so good a monkey could
produce quality software with it is the day we have won.

Until then, we'll just have to get by with incremental steps along the
way.
Hmmm, if you want a job where you don't have to think, there are plenty
to choose from. Wishing that would happen with programming seems
strange - the activity is all about thinking.

And I'm not monkeying around.
Sep 16 '06 #459

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

Similar topics

0
6823
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 the issue is. Thanks Ravi
1
6927
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
9298
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
5664
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 connect to the DB I get the following exception at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2120)
1
9675
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
12
5939
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 says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for inheritance (yet).
0
3295
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.5.0_11-b03, mixed mode, sharing)) and in both cases, get the following list returned from calling getDeclaredFields() on java.lang.ClassLoader via this code snippet: Field fields = loaderClass.getDeclaredFields(); for (int i = 0; i <...
1
4314
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 Linux there is an error. The code that fails is the following: SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); I´m sure that code is ok. In fact, I´ve found that in several...
0
3304
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
9805
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11188
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10785
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9603
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7148
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5825
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4644
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.