N
Noah Roberts
Otis said:I cannot abide a lack of civility.
Doesn't seem to stop you from being plenty proficient at it.
Otis said:I cannot abide a lack of civility.
Luc The Perverse said:Java references, or whatever you call them behave EXACTLY like C++ pointers.
References in C++ are just pointers that are automatically dereferenced. (I
mean from a usage standpoint, if it is handled differently somehow in the
compiler I am not aware of it.)
Phlip said:There is no language C/C++.
You missed the point. If an editor can parse your code and predict what you
are trying to do, then the language could too. The language itself could
finish these lines, and all I'd have to do is start them.
log4j's src folder has 31,764 lines of code.
log4r's src folder has 2,071 lines of code.
Again you missed the point. 'virtual' is a weak, primitive keyword
that I can use to assemble a class or an interface. I can control
how concrete and how abstract the class is. Just because I _should_
create interfaces doesn't mean the language should _force_ me to.
You cannot legislate morality. (You _can_, however, legislate immorality!)
Write an Any or Variant class in Java.
You have insufficient experience with block closures.
A GUI should be event-driven.
Block closures make those as easy as falling off a log.
Most of the code you write in a static-typing OO language, for a
GUI, is excess plumbing to route events to handlers, and then excess
plumbing to convey state variables into handlers.
Block closures simply turn that problem inside out. The language
does the plumbing, and all you need to do is add the custom
behaviors.
Chris Smith said:Oracle, for example, provides both a pure Java driver and a driver
that uses JNI, but I don't know of anyone using the latter.
peter koch said:Java has two adressing modes - one for the ints and one for the
objects. And this approach is simple but with drawbacks.
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.
Oliver said:I actually laughed out loud when I read the above. That's very rare
for me. The punchline, that making Java more like C++ would *reduce*
confusion, was very unexpected.
Why would you need explicit notation to differentiate between Foo and
Bar if a given environment has only Foos and no Bars?
Raymond said:Because it has Bars and just hides them, so that the user (programmer)
does not see them. But it would be (imo) better to clearly differentiate
between both.
Raymond
Raymond Haeb said:Because it has Bars and just hides them, so that the user (programmer)
does not see them. But it would be (imo) better to clearly differentiate
between both.
Chris said:No, it doesn't have both. This is why it's important to really learn a
language and understand it before pretending to know it. You can
understand Java in C++ terms, if you like, but you will see a very
complicated language. Heck, you could insist on understanding LISP in
C++ terms, if you so desire. The resulting complexity is not a
necessary consequence of the language; it exists because you've picked
the wrong mental model to understand the language.
Im sometimes amazed at how many people seem to know.
mostly its the "CV" effect.
People put gazillions of languages in their CVs to make it look
impressive.
i mean i think the sentence:
"Most of the messages in this thread appear to be written by people who
only know one programming language."
is meant like:
you know this language well and have worked full time with it in a
professional environment for some years.
I also think every language has its strenghts and weaknesses.
True knowlegde of the language means also knowing which language suits
best fo the desired task.
There is no better or worse.
Well i do also worked with some amount of languages for a while... but iJerry said:Personally, I think that's a bit excessive. In fact, the
requirement that you work with it full-time for some
years more or less makes it a tautology...
IMO, you're displaying a high level of ignorance here. Go
study Brainfuck or Intercal, and then try to keep a
straight face while you claim they're not worse!
well fine... then tell us which is the master language, that 0wnz all
other? you seem to know.
No, then we get replaced by monkeys, and have to drive taxkis to make
a living. Unless cars get so automated monkeys can drive them, too.
I expect we are referring to different 'we's
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.
Jerry Coffin said:IMO, you're displaying a high level of ignorance here. Go
study Brainfuck or Intercal, and then try to keep a
straight face while you claim they're not worse!
Otis said:Actually, your example from before shows that i MIGHT change. At least
logically change.
class I{
int & handle;
public:
I(int& x):handle(x){};
void morph()const{
handle++;
}
void dump(){
cout<<handle<<endl;
}
};
void foo(I i){
i.morph();
}
I guess you could argue that it was the int& that changes. But clearly,
the state of the original i is not the same before and after that call.
Mishagam said:There are many strange features in this chart. Why C always so much
higher than C++?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.