Favourite Programming Language

Originally posted by wlievens
You're right about the exception things, I would like C++ to be more strict on them. Also, java has a standard library that I as a C++ programmer are sometimes jalous of. However... java has serious lacks compared to C++, especially in terms of expressiveness and abstraction: templates, typedefs, enums, operator overloading, low-level memory stuff, unsigned integer types, multiple inheritance, ...

Have you seen Java 1.5 (codenamed Tiger)? It includes Templates and Enums.

I don't feel the lack of typedef in Java....

Operator Overloading is very nice :b: but Java premise is to keep it simple. Although sometimes I'd love to have Operator Overloading in Java (and sometimes I'd love to NOT have it in C++ - because there is people who use it very weirdly).

Multiple inheritance is very well simulated with Interfaces, althouhg it's only a simulation :)
 
Typedefs improve abstraction, and make typing easier. But that's mostly when you're using templates anyway :-)
 
Originally posted by yaroslav


Have you seen Java 1.5 (codenamed Tiger)? It includes Templates and Enums.

I don't feel the lack of typedef in Java....

Operator Overloading is very nice :b: but Java premise is to keep it simple. Although sometimes I'd love to have Operator Overloading in Java (and sometimes I'd love to NOT have it in C++ - because there is people who use it very weirdly).

Multiple inheritance is very well simulated with Interfaces, althouhg it's only a simulation :)


Conclusion: they're making Java look like C++, because C++ is better :-D

By the way, the C++ standard library might in the future include a portion of the boost:: library. That's a move towards the java-style big standard library. Something I do support :-)
 
Well, for your info I programm mainly in plain old C in my work ;) I'm not critizing C++, but saying that Java is a big "foe" for C++.

BTW, I'm against those "improvements" of Java (templates and the like), because I like Java as simple as possible. In fact, I'd have no included ints, chars, etc and have only used Interger, Character, etc classes. I feel that these few primitives types breaks the simetry. And Java is already somewhat slow, so it doesn't matter to much. So Java being more like C++ is against its nature, IMHO. I'd love to make them as separate as possible, and use them in different scenarios.

Have any of you tried extensively C#? What can you say about it?
 
Cobol !! ;)

Blah, I don't program anymore. But when I did, it would have been C.
 
I think the answer is simple: What programming language was Civ3 written in?

:-)
 
Originally posted by wlievens
I think the answer is simple: What programming language was Civ3 written in?

:-)
PYTHON!!! :D
 
Originally posted by wlievens
I think the answer is simple: What programming language was Civ3 written in?

:-)
And why is it still buggy despite the many patches? ;)

I won't argue that C++ is a powerful language, and that you can do many good things with it. But as a programmer for many years, I have seen a *LOT* of bad C++ code. (Heck, I've seen a lot of bad COBOL/FORTRAN/etc. code!) Have you ever had a chance to look at the Civ3 code? It is horrendous! It's no wonder they're starting Civ4 from sratch, and not relying on old code.
 
Definitely Perl!

Reasons:
- Superior text processing capabilities
- Great regural expressions
- Can be used on many platforms
- Source code is short and pithy
- Fast execution speed for a scripting language
- Probably the best suited language for obfuscated code contests :lol:
 
Originally posted by Padma
And why is it still buggy despite the many patches? ;)

I won't argue that C++ is a powerful language, and that you can do many good things with it. But as a programmer for many years, I have seen a *LOT* of bad C++ code. (Heck, I've seen a lot of bad COBOL/FORTRAN/etc. code!) Have you ever had a chance to look at the Civ3 code? It is horrendous! It's no wonder they're starting Civ4 from sratch, and not relying on old code.
Err, I suppose Civ3 source isn't public. Were you one of the developers then?
 
Originally posted by Padma
And why is it still buggy despite the many patches? ;)

I won't argue that C++ is a powerful language, and that you can do many good things with it. But as a programmer for many years, I have seen a *LOT* of bad C++ code. (Heck, I've seen a lot of bad COBOL/FORTRAN/etc. code!) Have you ever had a chance to look at the Civ3 code? It is horrendous! It's no wonder they're starting Civ4 from sratch, and not relying on old code.

Have you seen it? When? How? :-)
 
Back
Top Bottom