Choosing a programming language

After you refine your prototype until it shows you exactly how your program will look and act, the next step is choosing a programming language to use.

Remember You can write any program by using any programming language. The trick is that some languages make writing certain types of programs easier than others.

The choice of a programming language to use can pit people against one another in much the same way that religion and politics do. Although you can’t find a single “perfect” programming language to use for all occasions, you may want to consider a variety of programming languages. Ultimately, no one cares what language you use as long as your program works.

Image from book

General-purpose versus specialized programming languages

RememberGeneral-purpose programming languages, such as C/C++, BASIC, Pascal, assembly language, and so on, give you the ability to create practically anything you want, but you may take a longer time to do so. To make programming faster and easier, many people have developed specialized programming languages for solving specific types of problems.

For example, SNOBOL is a little-known language specifically designed for manipulating text. If that’s what you need, writing a program in SNOBOL can be much quicker than using C/C++. Of course, if you want to do something else besides text manipulation, programming in SNOBOL is likely a horrible choice.

Similarly, programmers often use LISP and Prolog to create artificially intelligent programs because both LISP and Prolog include commands for decision-making. Although you could create an artificially intelligent program by using FORTRAN, C/C++, COBOL, or BASIC, you might have to write twice as many instructions to accomplish what a single LISP or Prolog command can accomplish.

So the moral of the story is that you can make programming a lot easier if you just choose the right programming language to help you solve the right problem.

Image from book
 

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply



eXTReMe Tracker