MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Languages
Chris Gray wrote:
>
> I've read enough on C++ to know
> that its unlikely I'll ever use it, and I fail to see any contributions
> it has made to the state of the art (fight'n words, I know!). I do need
> to read up on Java, however.
AMEN!!!!! I have offered the same two challenges to every C++ programmer
I've met. No one has ever satisfactorily responded.
1. Show me one thing object oriented programming does which proper
structured programming discipline can not.
2. Show me one C++ construct that is impossible to implement in C.
The major arguments I receive on this are:
1. Inheritance. I respond, 'void *parent'.
2. Methods in classes. I respond, 'int (*method)()'.
I do admit that you can write a program much faster in C++ when you use
the proper class libraries, and C++ can indeed be made much more
readable. But starting from a blank text file and using no class
libraries at all, just the standard C and C++ compiler libraries, C++
ends up looking an awful lot like C... except that it runs slower, has a
fatter binary, and took a good deal longer to write. ;>
The benefits of C++ are in code reuse, but code reuse is not always an
appropriate thing, and you have to have some C++ code to reuse first.
- Thread context:
- Re: [MUD-Dev] Languages, (continued)
- Re: [MUD-Dev] Languages,
Jeff Kesselman jeffk#tenetwork,com, Tue 20 May 1997, 11:39 GMT
- Re: [MUD-Dev] Languages,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Tue 20 May 1997, 21:47 GMT
- Re: [MUD-Dev] Languages,
Jeff Kesselman jeffk#tenetwork,com, Wed 21 May 1997, 12:48 GMT
- Re: [MUD-Dev] Languages,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Wed 21 May 1997, 21:47 GMT
[ Other Periods
| Other mailing lists
| Search
]