Is D appropriate for creating a stable production app?
Hasan Aljudy
hasan.aljudy at gmail.com
Thu Nov 9 23:56:44 PST 2006
mmcdermo wrote:
<snip>
>
> While analyzing different languages, we look for these qualities:
> 1) Stability and reliance
> 2) Performance
> 3) Ease of code maintenance
> 4) Ease of implementation
>
> Languages that top our list right now are C and C++, but due to D's similarity
> to these languages and its improvements over both, I think it has a fair
> chance of coming out on top. But then, I'm not very familiar with the D
> language in the first place. Thus, I ask all of you D-Wizards for your input
> and recommendations here, and thank you for taking the time to read this post
> and maybe even taking the time to reply!
For numbers 3 and 4, I can confidently say that D beats C/C++ in those
areas, no contest. Writing and maintaining code is much much simpler in
D than it is in C++. Even for small trivial application. Can you imagine
a program that doesn't use some form arrays? In C++, dealing with arrays
and/or containers isn't very pleasant at all. What about strings? Again,
a very basic construct that is needed in almost any application, even
trivial ones. Well, these things are built-in to D, so there's no hassle
here. Where as in C++, you're always gonna be in troubles when dealing
with arrays and strings, and btw, you'll probably be using pointers a
lot when doing that; where as with D, I haven't yet found a good reason
to use pointers.
The GC makes it all that much easier to maintain code, you never have to
worry about tracking objects/pointers/whatever. You won't really
appreciate the GC until you write code with no GC present. It just makes
thing a lot easier, I don't know how to say that in better words.
More information about the Digitalmars-d
mailing list