Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Programming language for a total beginner

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    9

    Programming language for a total beginner

    Which is the best programming language for a beginner?
    And what's the difference between C and C++ ?

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401

    Re: Programming language for a total beginner

    Originally posted here by legionaire
    Which is the best programming language for a beginner?
    Beginners All-purpose Symbolic Instruction Code would get you going pretty quickly. But if you really want to learn how to properly program go for Pascal.
    And what's the difference between C and C++ ?
    C is procedural, C++ is object oriented.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  3. #3
    Banned
    Join Date
    Jul 2005
    Posts
    511
    Basically, it depends on your budget. (Since this is a security site, I don't think it's a good thing to advise tp use illegal copies of software so I won't do that!) If you can't spend any cash, you will have to depend on freeware languages. Many of them are very good quality too.
    Another thing to consider is the kind of applications you want to write. Do you want to build a back-end for a webserver? Some desktop tool? Games? Multi-tier database systems? System tools? Or something else?
    http://en.wikipedia.org/wiki/Programming_Languages gives a good overview of all kind of programming languages. http://en.wikipedia.org/wiki/C_%28pr...ng_language%29 gives a nice overview of the C programming language. You can read there how C and C++ relate to one another.

  4. #4
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Originally posted here by Katja
    Another thing to consider is the kind of applications you want to write. Do you want to build a back-end for a webserver? Some desktop tool? Games? Multi-tier database systems? System tools? Or something else?
    For starters it doesn't matter. Once you learn how to program in one language you can easily learn another. They all use variables, conditional statements etc. only the syntax might be different. The real differences in languages is procedural vs. object oriented. Those are 2 completely different worlds and require different approaches to solving the problem.

    When you have a good grasp on how to solve problems you can think about the more 'advanced' programming like the back-ends, games etc.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  5. #5
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    Excellent point, SirDice, but I've found that while most programming concepts translate easily from one language to another, it can sometimes be time consuming to learn a new syntax when switching. In addition, it's been my experience that it's much easier to learn a language if you have tasks you want to perform that are ideal for that language. For example, if you were doing a lot of file/text manipulation, it might not be too practical to learn C over Perl to help with those tasks. Similarly, you wouldn't want to be writing device drivers in Perl -- you would probably choose C over Perl.

    legionaire, you would be wise to figure out what you want to accomplish with programming, and then pick the language that would be most appropriate. No sense learning a language that is not the best suited for what you want to do. If you don't know what you wants to do yet, perhaps an all-purpose language such as Python would be the most appropriate. As a system administrator myself, I have found that there's very little in my job that can't be accomplished through that wonderful Swiss Army Chainsaw, Perl, whereas a colleague of mine doing the same job swears by Python. In many ways, it comes down to preference and utility.
    /* You are not expected to understand this. */

  6. #6
    While I usually decide to stay away from posts like this... I decided I skipped classes today, I might as well jump on in and teach someone something, since I haven't learned anything today....

    iight... So where do we begin?

    First off, saying the programming language you decide to learn will control completely what kind of programs you make is kind of wrong... Atleast as far as I can prove, most well-known languages are rather simliar and have port-ability into another language, and several even have programs that can transfer one into another....

    Katja I have absolutely no idea where you came from with the your budget statement... There are languages that you have to pay for to use... But, there are far more free ones... Java, C, C++, perl and the list goes on and on. So that is kind of not true... But, whatever...

    Actually, you can write device drivers in perl... There is actually a perl OS... can't remember the name of it at the moment... But, everything but the kernel is written in perl.

    And the difference between C and C++ is if you shot yourself in the foot with C... You will lose the foot.... If you shoot yourself in the foot with C++ you lose the foot the leg, and part of your hip.

  7. #7
    THE Bastard Sys***** dinowuff's Avatar
    Join Date
    Jun 2003
    Location
    Third planet from the Sun
    Posts
    1,253
    What programming language? Answer. Who Cares.

    Learn the difference between compiled and interpreted; When to use which. I've seen asp code calling vb scripts that call other scripts, when the same thing could have been done with 15 lines in a sp.

    SQL is SQL left right inner outer joins - joins are joins, inserts are inserts. Learn the difference between functions, subs. I've seen programmers who couldn't code there way out of a while loop.

    When I need to write anything I use textpad. I use it to write in any language. I use M$ Complier for any .# or C++ apps I may write.

    As to cost. If you buy M$ Visual C++ Enterprise and don't have a DB or Web Server. You just wasted your money.

    Start with programming for dummies. Follow the K.I.S.S. rule and don't just focus on the syntax. Learn to be dynamic. Write it ONLY ONCE.

    /end rant

    edit: Also for the love of GOD, know the difference between vchar and int
    09:F9:11:02:9D:74:E3:5B8:41:56:C5:63:56:88:C0

  8. #8
    Banned
    Join Date
    Jul 2005
    Posts
    511
    whizkid, the budget thing is from personal experience. A product like Visual Studio, for example, tends to be extremely popular and you normally can't get that for free, legally. VC combines C++, VB and J in one single product with some nice, additional features. And if you need help, you will find a lot of materials for VS too. While there are also many free languages, many of them lack a good user-interface (or IDE) for the user to develop from. You might have to end up collecting all kinds of tools just to work properly with a single, free compiler. It just doesn't always integrate nicely together. But this is just personal experience. Anyway, from one of the Wiki's that I linked to, you can get a very nice overview of many available languages, both free and commercial.

    About the Perl OS, according to this link, someone is working on it. One is called Perlix and is based upon the Linux kernel, thus not completely written in Perl. The other one is JKOS which isn't actually a real OS according to this article. So the real Perl OS is still work in progress...

    EDIT: IDE = Integrated Development Environment...

  9. #9
    THE Bastard Sys***** dinowuff's Avatar
    Join Date
    Jun 2003
    Location
    Third planet from the Sun
    Posts
    1,253
    many of them lack a good user-interface (or IDE)
    Integrated Device Electronics WTF does an IDE have to do with programing?

    And

    Select * from tblName

    is free
    ------------------------
    var fso, output;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    output = fso.OpenTextFile("C:\\test.txt" , 8, 1, -2);

    is free
    ----------------------

    #include <stdio.h>
    int main(void)
    {
    int count;
    for (count=1;count<=500;count ++)
    printf(“I don’t have a flippen clue.”);
    return0;
    }

    is free
    ---------------------

    But what do I know?
    09:F9:11:02:9D:74:E3:5B8:41:56:C5:63:56:88:C0

  10. #10
    Now, RFC Compliant! Noia's Avatar
    Join Date
    Jan 2002
    Posts
    1,210
    I would recomend PHP for its ease of learning and rapid results.
    For proper programing I would recomend choosing an Object Orientated language, something along the lines of Java or C#, both of which are used widely in industry.

    I wouldnt venture into C/C++ untill you understand the concepts of programing, it might give you the wrong impression and thus you wont enjoy it.
    With all the subtlety of an artillery barrage / Follow blindly, for the true path is sketchy at best. .:Bring OS X to x86!:.
    Og ingen kan minnast dei linne drag i dronningas andlet den fagre dag Då landet her kvilte i heilag fred og alle hadde kjærleik å elske med.

Posting Permissions

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