Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: The Assembly Language

  1. #11
    Originally posted by Ynhockey@14 September 2003 - 14:45
    Learn Pascal first.

    Benefits:

    1) Easier than any of the aforementioned languages, but it's very similar to Delphi and C (in fact, Delphi uses Object Pascal).

    2) You won't lose any functionality, just some freedom, but that's ok, VB gives you much less anyway.

    3) Pascal was made for learning purposes, so when you learn Pascal, you'll have a really good understanding of programming (well, depends on how well you learn it...)

    Pascal owns
    Pascal discourages pointer use, and has terrible array manipulation. A combination of these makes this a very bad language to learn, since you will find yourself not accustomed to using arrays efficiently.

    Stick to learning from real world language, like C, C++, and perhaps if you are looking for a challenge, assembly.

    Monica

  2. Software & Hardware   -   #12
    Member
    Join Date
    Sep 2003
    Location
    Cairo, Egypt
    Posts
    23
    Is there any programming language apart from c and c++ that don't use command lines?

    Ynhockey which pascal are you talking about i have found three different ones, borland pascal, turbo pascal and dev-pascal??
    I came here to shit and stink,
    But all I do is sit and think.

  3. Software & Hardware   -   #13
    Poster
    Join Date
    Jan 2003
    Location
    United Kingdom
    Posts
    1,184
    Originally posted by monica_green_22@14 September 2003 - 14:34
    C++ is a good language to learn as a first language, but learning assembly is also a good way to start. The learning curve is very steep, but the understanding of the architecture of modern computers that you will learn with assembly is worth it. Yes learning asm on segmented architectures is hard, but its also very interesting.

    The code is faster, smaller, and very easy to debug with modern tools.

    As for your code:
    There is no "using" keyword in C, likewise, there are no namespaces, so your C program is incorrect. C has no concept of namespaces.

    Your C++ example is very outdated (as of 1998), when the standard was published, code such as yours is no longer compliant. The header for the standard iosteam library is now <iostream> (no .h, likewise with any C++ headers).

    Also, the "&#092;n" at the end of your string is redundant, as &#39;&#092;n&#39; is appended by the std::endl object, which also flushes the stream.

    Portability is a key factor in deciding language, but how often have you had your cod ecompiled on a different architecture? asm remains a good choice to learn, especially seeing as the x86 architecture is not going anywhere. Itanium is still off in the distant future, and AMD Opteron/Athlon64 have full 32-bit compatibility.

    Monica
    Sorry, but I am not a C programmer, C++ . But I often get confused between the two (switching back and forth) but I found using VS .NET I find myself having to use ".h" but with ANSI C++ I do exactly as you say and use just plain "<iostream>", I find that the "&#092;n" escape character&#39;s fine with me though.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •