if ive missed any good ones please say[/url]


// C++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world\n";
return 0;
}
---------------------
# Python
print 'Hello, world'mm_freak wrote:Slackware users are dreamers. Sorry to say.


mm_freak wrote:You can't compare scripting languages with compiled languages. Python is designed to be worked through linearly, as such small programs are really small. C/C++ have modular design (in terms of functions and (in C++) class methods).
Hello world in C/C++ is a lot larger than in Python, but a database server or a game cannot even be written in Python. At least not practically.
Also Python is not a good starting point in my opinion, because it enforces the coding style of the designer of Python. You don't get freedom in indentation, spacing and similar. You will program like Python wants you to program - and no other way. If he ever wanted to learn a real programming language, he would have a lot of difficulties stepping off from Python.
One more thing: C++ doesn't force you to use the I/O-stream classes. Normal C-code with classic C-functions does also work. I hate those C++ streams. =)

mm_freak wrote:You can't compare scripting languages with compiled languages. Python is designed to be worked through linearly, as such small programs are really small. C/C++ have modular design (in terms of functions and (in C++) class methods).
mm_freak wrote:Hello world in C/C++ is a lot larger than in Python, but a database server or a game cannot even be written in Python. At least not practically.
mm_freak wrote:Also Python is not a good starting point in my opinion, because it enforces the coding style of the designer of Python. You don't get freedom in indentation, spacing and similar. You will program like Python wants you to program - and no other way.
mm_freak wrote:If he ever wanted to learn a real programming language, he would have a lot of difficulties stepping off from Python.
mm_freak wrote:Slackware users are dreamers. Sorry to say.





bart416 wrote:nene, pascal is the worst thing to learn.
Its unlogical compared to C and C++
I would write something rather in assembly then in Pascal.
thats how mutch i hate it since i started learning it...


Vlad# wrote:I'd recommend you learn either C# or Ruby as a first - they are both "productive" languages and have a good demonstration of all high-level programming principles. If it's low-level programming that you are after, then nothing beats C++ (or C or if you really want Assembler)
Python is also a good language to learn, as is Perl 6

Users browsing this forum: No registered users and 1 guest