C++
Giannis Papaioannou
jhn at egnatia.ee.auth.gr
Wed Oct 10 17:39:01 EEST 2001
On Tue, 9 Oct 2001, Nikos Mavroyanopoulos wrote:
=>On Tue, 9 Oct 2001 13:55:40 +0300 (EET DST) Giannis Papaioannou <jhn at egnatia.ee.auth.gr> wrote:
=>> diafwnw, kalytera na mhn ma8eis pote domhmeno programmatismo, giati meta
=>> arxizeis kai programmatizeis se C++ xrhsimopoiontas thn peira sou apo thn
=>> C kai katalhgeis na grafeis ektrwmata gemata obscured bugs.
=>Εδω αυτό που λες είναι ότι η διαφορά της C++ με την C είναι οτι στην C μαθαίνεις
=>να γράφεις εκτρώματα γεμάτα obscured bugs, ενω στην C++ μαθαίνεις να γράφεις διαφορετικά.
=>Κακό κώδικα μπορείς να γράψεις και στην C++ και σε οποιαδήποτε αλλη γλώσσα.
oxi, ennow oti sthn C ma8aineis na antimetopizeis kapoia problhmata me
sygkekrimeno tropo, ton opoio mporeis na xrhsimopoihseis sthn C++ alla h
filosofia ths C++ h' to OO programmatismou einai diaforetikh px.
malloc/new pointers/references, syn to oti ennoies opws classes,
overloading, templates, inheritence... einai kati pou enas C coder mporei
na mhn afomoiwsei eukola giati exei synh8hsei na lynei algori8mika
problhmata me diaforetiko tropo.
Giauto lene oti kalytera einai na ma8eis OO me java, opou de se afhnei
peri8wria domhmenou programmatismou kai etsi mpaineis sto nohma kalytera
kai grhgorotera.
kai fysika mporeis na grapseis kako kwdika se oles tis glwsses, gia
pollous kai diaforous logous, IMHO enas paragontas gia kako kwdika se C++
mporei na einai kai polyeth peira se C.
^^^^^^
Gia osous anaferan oti h C++ einai pio high level, me thn ennoia oti h C
einai konta sto hardware, de 8a to elega aparaithta. Ta templates kai to
overloading gia paradeigma einai features pou thn kanoun high level.
More information about the Linux-greek-users
mailing list