Web Hosting How-Tos
  Home arrow Web Hosting How-Tos arrow Learning a New Programming Language Pa...
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Security  
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
ASP Web Hosting  
ASP.NET Web Hosting 
Budget Hosting 
Coldfusion 
Colocation 
Mobile Linux 
APP Generation ROI 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Reseller Web Hosting 
Shared Hosting 
Small Business Hosting 
Virtual Private Servers 
Windows Web Hosting
 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB HOSTING HOW-TOS

Learning a New Programming Language Part 2: Language Types
By: Chris Root
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2005-05-04

    Table of Contents:
  • Learning a New Programming Language Part 2: Language Types
  • Code reuse and inheritance
  • Procedural Languages
  • Functional Languages

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Learning a New Programming Language Part 2: Language Types


    (Page 1 of 4 )

    Every programming language comes with its own set of basic concepts and particular ways of getting the job done. Actually, most programming languages fall into one of three main types. While it may be easier to learn a new programming language that is of the same type as a language you already know, it is useful to understand all three types, because some are designed to do certain things better than others.

    The three main types of programming languages are object oriented (OO), procedural and functional. Again there will be debate on this. Some languages do not fit neatly into these categories depending on who you talk to. The only way that you can get past the debate and get on with learning a language is to try to think in general terms.

    Object Oriented Languages

    Object oriented languages provide at least some of their functionality through objects. Objects in programming are much like real life objects. They have properties such as size and color and things that they do, which in the case of programming are called methods. Methods work in the same way that functions do in other languages.

    A popular example is a motorcycle. A motorcycle has dimensions and colors. There are also types of motorcycles, such as chopper, dirt bike, and so forth. Motorcycles also do things, like start, stop, and so on.

    This is where most languages that support objects agree. Beyond this are a lot of features such as classes and inheritance that are not supported by all languages that use objects.

    This leads to a debate once again about what constitutes an object oriented language. Some programmers insist on a very specific list of features that a language must have to be declared OO. The debate isn't all that useful however, so once again let's try to keep thinking in more general terms.

    A good example is Javascript. Javascript is generally used for client side scripting in a Web environment (Web browsers being the most common application). It is also used to provide automation services for larger applications such as Adobe Acrobat or Macromedia Fireworks. It is essentially a procedural language, but includes some features that are considered object oriented -- and in fact, in some cases Javascript is more useful in these situation than a pure OO language might be.

    Presently Javascript does not directly support OO features such as classes or polymorphism. There are plans to make the next major version of Javascript fully object oriented, and in fact there are implementations of ECMA Script 262 on which it will be based, in the wild, in the form of Macromedia's Actionscript 2.0 and Microsoft JScript.NET. Still, what object oriented features Javascript does presently provide can be quite useful.

    More Web Hosting How-Tos Articles
    More By Chris Root


       · And then there's Prolog ...
     

    WEB HOSTING HOW-TOS ARTICLES

    - Choosing a Website Host
    - How to Choose a Budget Web Host
    - URL Redirection
    - How to Link a Domain Name to a Dynamic IP
    - How to Set up a Simple Website
    - Choosing the Right Kind of Web Hosting
    - Introduction to Choosing the Right Web Host
    - Strategies for Creating Domain Names
    - How to Pick Domain Names
    - Aligning Yourself With Block Lists
    - Dedicated Web Hosting: The Executive Summary
    - Choosing a Domain Name: Some Dos and Don’ts
    - One-time Passwords - Tight Security for Sens...
    - Learning a New Programming Language Part 3: ...
    - Learning a New Programming Language Part 2: ...






    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT