Web Programming 101

Author: Nasser  //  Category: Programming

What’s up!

I have always been motivated to learn and know more about Web programming languages, tools, methods..etc. All programming languages have something in common and I’ll show you the similarities in a minute. For example, the following code will do two simple things:

  1. Save a variable; which is an identifier for a specific value.
  2. Print the value of a variable.
You won’t have to do or follow anything, just try to find the resemblance between the two languages I’ll use now:
language: PHP
<?php

//this is a comment 

/*
this is another code comment, which will not have any effect on the code. 
Developers use these comments as a reference to know what they have done
in this area, or what they should do! 
*/

//Now this is variable called "text" being set to the value "Hello, World!"

$text = "Hello, World!";

//and now, displaying the value of this variable, this will be the PHP script output

echo $text;

?>

And now.. the same code but using JavaScript

//this is a comment 

/*
this is another code comment, which will not have any effect on the code.
Developers use these comments as a reference to know what they have done
in this area, or what they should do!
*/

//Now this is variable called "text" being set to the value "Hello, World!"

var text = "Hello, World!";

//and now, displaying the value of this variable, this will be the javascript output

document.write(text);

Web programming languages and techniques can never be explained in a single post. I’ll keep on posting educational articles on the basics of web development languages, techniques, and tools.. and simple How-To guides. Was that useful? drop a comment! :)

Tags: , ,

6 Responses to “Web Programming 101”

  1. AbSa Says:

    the page lay out is very catchy and kool :)

  2. Chuknum Says:

    Great blog. :) Im also interested in coding so where did u learn to code?

  3. Anesa Says:

    I honestly find this confusing;s but I love the idea behind ur blog :) It would be great if you can point out what you mean on the code itself (using arrows for example).. I only understood the part about the 2 languages

  4. Nasser Says:

    @AbSa

    Thank you :) It’s a ready-made theme by the way

  5. Nasser Says:

    @Chuknum

    Thank you :) I learned coding mostly from reading and video tutorials.

  6. Nasser Says:

    @Anesa

    Will do so :) I have already started with my HTML coding series

Leave a Reply