Which Language To Choose Which language you choose may be a more a matter of preference rather than need. Today most of the major languages will do almost anything you want. However, each language has its own strengths and may be more appropriate depending on the project.
The good news is that trying out each of the major languages is fairly easy to do once you have an environment setup. Moreover, you can try most of them for free with the right tools! Although the ideal situation would be for each student to work on all the languages, there may be only specific ones you are interested in. In this case, pick at least two languages and work on the exercises below.
Common Web Development Languages
- using VB.Net
- using C#.Net
- Java Servlets
- Java Applets
- Java Server Pages
- Java Beans
- Students will be able to compare and contrast major web development languages.
- Students will be able to create basic "Hello World" programs in multiple languages.
- Students will have created a simple but non-trivial program in mulitple languages.
- It is not an objective of this section to be a replacement for indepth study in a particular language.
- For your selected languages find out the following:
- What is the main website for the language?
- What is the most popular development environment for the language.
- What deployment environment is necessary to run programs? Do you need a particular web server? What frameworks do you need to have running?
- Does your language use LAMP or WAMP?
- Hello World: For your selected languages write and run a simple "Hello World" program. This program should return the string "Hello World". Since most languages would allow you to have an HTML form of some type, make sure this program returns the value of a variable that is set to the value "Hello World."
- Simple Math: Create a web page with two textboxes and a button. A user can enter numbers in each textbox and when the button is clicked, the two numbers are added and the result displayed.
- Create an array with 4 places.
- Initialize the array with the the letters A,B,C,D randomly. Repeats are allowed. Create a form with 4 text boxes.
- Create a form with 4 text boxes and a "guess" button.
- Every time a user clicks on the guess button the program compares the input to the array and returns a result:
- The number of letters that are in the correct position and the correct letter.
- The number of letters that are in the solution but are not in the correct position.
This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.