Wednesday, April 18, 2012

Introduction to programming

Programming


                Programming is a process in which you have to design, write, test, debug and maintain source codes of computer programs. The source code is written in specific programming language. There are hundreds of programming languages, some of the most used are:
  • C#
  • C++
  • Java
  • Visual Basic .Net
  • Unix
  • Python


     Some of those languages are compatible between them, others don’t. For programming are used compilers, and each language has their own specific compilers. Basically a compiler translates the source code (keywords, operations, logic matters and others) to the computer language that is often binary code(just zeros and ones, for example 100111101101). I will use Java that is one of the most used and best know languages, and on Netbeans compiler. 
    Netbeans has a package that contains several classes, main classes, and others class-like objects that have a special purpose. Each class has methods in which you can make the program to do something or have behavior, and a constructor in which you can make that class like an object, so you can have several classes with the code but have different data so you will not need to create more classes with the same code to have different data, also you can copy, move, delete those objects. Main classes basically call all other classes, but can also make those classes as objects and use the methods in them.

  • Packages
    • Classes and class-like objects
      • Main class
      • Classes
      • JFrame
      • JPanel
      • Etc 


    There are a lot of keywords for most basic and advanced functions, and you can combine them to do whatever you want. You cannot use those keywords to identify a variable or something, and these are reserved just for programming.In this image you can see some of Netbeans keywords:

 Each one has a function, and can be used for several things, everything depends in where and with what you use them.

Sources:

       
               

No comments:

Post a Comment