1

(5 replies, posted in C/C++)

This answer is so wrong in many ways.

mustofa wrote:

C++ is "C with class". C++ extend and expand C language to support object oriented programming.
Which one is the best? There is no C++ without C.

Why C++ created?
* The answer is complexity. C is the language of success but when used to build large and complex programs that would be quite difficult.
* There is a new paradigm in computer programming, it is object oriented programming (OOP).
* C does not support object-oriented programming.

If you are going to create computer programs using structured/procedural programming approach, the choice is the C. But if you are going to create computer programs using object-oriented programming approach, the choice is C++.

HTH

> * The answer is complexity. C is the language of success but when used to build large and complex programs that would be quite difficult.

The complexity of problem does not have a correlation in which language you will use. It's true that some programming language can solve a problem in simple and less of code, but in the end it just a matter of taste, habit and the choice of speed.

Hint: X, linux, glib, gtk, vim, mplayer, and many Unix tools use C.

> * There is a new paradigm in computer programming, it is object oriented programming (OOP).

Just because C++ is come after C does not mean OOP paradigm is not recognized when C language is developed.

OOP term, as in object, is already exist when C is known as B. OOP is already implemented in Simula and Smalltalk. OOP paradigm is just got famous late, in between 1990s.

> * C does not support object-oriented programming.

I can argue with you about this, but I can see that your definition of OOP is only: "when language have a class it support OOP."

> what about the speed? is there any difference bettwen C and C++ in the matter of speed on execution? neutral

At some point yes, but the margin is just about seconds or milliseconds. But some compiler (i.e: ICC) can generate faster C++. The only difference is memory consumption, C++ tend to consume more memory than C.

For OP, read these http://en.wikipedia.org/wiki/Compatibil … nd_C%2B%2B .

Halo,

Sebagai salah satu semangat untuk bereksplorasi dan keingin-tahuan, saya mencoba membuat program untuk DNS cache sendiri, yang dinamakan dengan rescached.

Rescached adalah sebuah service yang bertindak sebagai server, menerima dan melayani query dari client, tetapi juga melakukan caching (penyimpanan ) semua queries untuk digunakan nantinya. Tidak seperti Name-service daemon lainnya, rescached menyimpan semua data cache saat program keluar atau komputer dimatikan dan menulisnya kembali ke memori bila dijalankan kembali.

* Untuk mengetahui lebih lanjut mengenai rescached -- penjelasan non teknis yang lebih lengkap -- dapat dibaca disini [1].

* Untuk dokumentasi bagi user (instalasi, pengaturan, penjelasan teknis) dapat dibaca disini [2].

* Bagi user ArchLinux, paket dapat diinstal langsung lewat AUR [3].

Kritik dan saran diterima semuanya.


Terima kasih,

ms

--
[1] http://kilabit.org/journal/2009/12/04__ … index.html
[2] http://www.kilabit.org/projects/rescach … _user.html
[3] http://aur.archlinux.org/packages.php?ID=40095