Take the HTML v. PHP example. PHP is a much better coding language, however schools are still teaching HTML. Why? Because schools like to start off with the basics, and work their way up.
You clearly dont know what you are talking about. PHP is a serverside scripting language. HTML is markup language which is renderd on the clients browser. Every time you echo something from a PHP script, that output is in the form of HTML, enabling it to be displayed on the screenn. HTML handles the layout and actual visual aspect of things, while all PHP does is perform functions behind the scene. Its in this way that they work together to form dynamic pages. One will never obsolete the other, they work together to perform different tasks.
As for why c++ is bigger than python:
1) more portable.
2) huge existing codebase (the reason there are still jobs for FORTRAN programmers). After all, if your program aint broke, why fix it (and at a cost!).
3) large existing pool of coders trained in it
Anyway, you seem to be ignoring the fact that the python virtual machine, and most of its standard libary are thereselves written in C.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
[quote]Why is C++ so big?[/code]
That's what she said.
Clinton Portis
Practically a Posting Shark
833 posts since Oct 2005
Reputation Points: 237
Solved Threads: 118
I think C++ wont be replaced by Python. Why? Because even the Author of Python didn't intend it as replacement but rather a complement. So Python Complements C/C++ instead of rivaling it. Ou can event emebed the Python interpreter and make use of both C/C++ and Python.
As to why C++ is big I can say that:
1. Huge learning resources (Though this is becoming true for Python too)
2. It is faster than Python (For time sensitive App.)
3. Have more toolkits both free & commercial (Many Pythonic great tools are wrappers around C/C++ toolkits)
Some Python strength are:
1. Elegance and easiness
2. Many free Books (Though other resources are scarce)
3. Mature toolkits (Like GUIs Plotting, Gamming etc)
4. Powerful few data types (Lists, dictionaries, tuples et al)
So the two are Brothers instead of enemies/rivals
Just my 2 cents :)
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Mature toolkits (Like GUIs Plotting, Gamming etc)
And C doesnt? (from third parties)
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
PHP is a more complex coding language than HTML
Thats precicely my point just there. HTML is *not* a programming language, its a markup language. In the same way that XML is != say, python. It has no meaning without context.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601