|
OriginalGriff wrote: ut...as the scale increases, it becomes easier to produce better code in an OOPs language, and harder in a non-OOps languages
It should be easier, but I've found it often gets much more difficult. Relatively recently I worked on a massive code base in OOP. There was nothing wrong with any single class or even the design, but as a whole, it was almost impossible to follow the whole thing. However, the sections that were pure procedural code or extremely lightweight classes were very easy to follow.
|
|
|
|
|
Joe Woodbury wrote: However, the sections that were pure procedural code or extremely lightweight classes were very easy to follow.
I gotta agree with you there. OOP is nice, I like it. But on a massive scale it's like it almost adds too much complexity to track what goes where and really does what. Got nothing against OOP, it helps with clean code. But, I can still write a C program in large scale that's just as maintainable.
Jeremy Falcon
|
|
|
|
|
Hardly I need to write assembly code for PIC24 microcontrollers.
Veni, vidi, vici.
|
|
|
|
|
Quote: "better than COBOL and FORTRAN". Everything is better than COBOL but nothing is better than FORTRAN! Well... for maths stuff anyway! I wrote an expert system in FORTRAN-77, I thought it was so advanced now that I didn't have to pack characters two at a time into integers (FORTRAN IV).
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
OriginalGriff wrote: If you want small tight code for embedded work, then assembler is probably a good bet - though C is very useful there, it does tend to generate bloated code compared to that produced by a good assembler programmer.
Agree if you're code is WOUF (Write Once, Use Forever).
The choice depends on what the engineering constraints are. If I want to accommodate the hardware people having an upgrade path, going from an 8051 to an 80186 say (to use an archaic example), then portability and reusability are the constraints and C makes much more sense.
I really don't want to do the SSDD shuffle for the rest of my egregiously unnatural life.
("bloated code" used in reference to "C", Gracie? Oh! I get it. It's a pesky relativity thing.)
Cheers,
Mike Fidler
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
|
|
|
|
|
Assembler.
regards,
Kate
|
|
|
|
|
That article is all wrong. The guy assumes that just because a feature exists you are forced to use it. Most expercienced c++ programers are only using a small subset of the language.
|
|
|
|
|
And even then, there are 4 sub-languages to C++:
- C backward compatibility
- C++
- STL
- Template meta-programming
How you use C++ primarily depends on which one of the sub-languages you are using for that portion of the program.
|
|
|
|
|
A language where simple integer addition is allowed to cause nasal daemons is immediately disqualified for the title "best language".
|
|
|
|
|
|
"Someone who gambles"
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Isn't that "bettor"?
/ravi
|
|
|
|
|
You bet.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Look, a Who tribute band.
You better bet your life...
|
|
|
|
|
|
No, who's on first...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
What's on second, I Don't Know is on third... hang on! Haven't we had this discussion before?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
yeah. You had. And it makes me laugh even for the second time.
Told you, I have weird humor.
Don't mind those people who say you're not HOT. At least you know you're COOL.
I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
|
|
|
|
|
I'm not sure, but I'll ask my Grammar when she's done baking cookies.
Will Rogers never met me.
|
|
|
|
|
Baking cookies? I usually just add them to a response.
/ravi
|
|
|
|
|
|
How about iC instead? Apple inspired
|
|
|
|
|
Oh, I'm in love with iC[^].
Veni, vidi, vici.
|
|
|
|
|
Unfortunately, if you don't know it could never be explained to you.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
So what's your definition of "better" (as applied to a programming language)?
/ravi
|
|
|
|