Web Languages

## Learning Project Summary

[edit | edit source]

* Suggested Prerequisites:
* None
* Time investment:
* Non-technical Activities: 2-3 hours of study, 1 hour in completion of the exercises
* Technical Activities: 2-3 hours per language.
* Assessment suggestions:

* Portal:
* School:
* Department:
* Stream
* Level:Novice

## Content summary

[edit | edit source]

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

* ASP.Net
* using VB.Net
* using C#.Net
* PHP
* Ruby
* Python
* Java
* Java Servlets
* Java Applets
* Java Server Pages
* Java Beans

## Goals

[edit | edit source]

* 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.

#### Activities

[edit | edit source]

Non-technical Exercises

1. 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?
2. Does your language use LAMP or WAMP?

Programming Exercises

1. 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."
2. 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.
3. MasterMind:
* Create an array with 4 places.
* Initialize the array with 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.

#### Readings

[edit | edit source]

#### Tests and Quizzes

[edit | edit source]

What are web programming languages

## References

[edit | edit source]

## Active participants

[edit | edit source]

Active participants in this Learning Group

* Eshafoshaf 15:56, 9 February 2007 (UTC)