+234 705 756 8594

(Message Admin)

Get Update on our recent Lessons & Tutorials

Tuesday, 5 September 2017

Programming 101 : Words And Symbols Associated With Programming

Welcome back, today is our third discussion on the series 'Programming 101' our topic of discussion today is "Words And Symbols Associated With Programming" . If you missed our two (2) previous discussion in this series you can read them here :

1.Programming 101 : Getting Started With Programming

2. Programmimg 101 : Some Programming Language And Their Applications

If you have been following this series from the beginning then dont bother going through those links above.

Every programming language has words and symbols that are unique and does particular functions , we are all use to this word and symbols on a normal basis but not from a programming point of view, Just like we discussed in our previous episode of this series , Different Programming language have different uses with different syntax[pattern or structure].



Here are the list of some words and symbols you are likely to come across as a programmer.



1. Hello World - Hello World, is a normal word that is preferred the most by programmer to other world when it comes to writing / running a test code. Hello world is commonly used to write a default language syntax.

Hello World Examples


OBJECTIVE-C

Hello World In Objective-C


#import #import
int main(void)
{
NSLog(@"Hello, world!
");
return 0;
}


SWIFT
Hello World In Swift


println("Hello, world!")


C#
Hello World In C#


using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
2. Comments - Comments is a word or group of words that are written inside a program (code) but are not visible to the user, they are not meant to be visible in the first place. Comments can also be used in HTML, CSS and JavaScript..


Comments Examples

Python
Comment In Python


#This is a comment
#This is another comment.


Java

Comment In Java

/*This is a comment in java*/


C++



Comment In C++

/* This is a comment in C++ */

Yes most languages (Both programming and None Programming) Use this comment format**

/* Your Comments */

3. Print - The word 'print' is use to display the output of a program .

Print is commonly used in php and python

PHP
Print Statement In PHP

Code:

print "Hello , PHP!";


Python
Print Statement In Python


print "Hello, Python!";

PHP and python have lots of similarities and few differences.

4. Echo- Echo does thesame function as print.
Echo Statement is use in php
Code:


echo "Hello, World!";



5. Variable - A variable is like a storage used in storing data . Data stored in a variable can be in form of Text(String) , Numbers (Integer, Float, Double) , Or NULL..

Some Variables Example


PHP


Php Variable

Code:


$variable_name = "This is a php string variable";

$number = 1000;

VB.NET



Example Of Variable In vb.net


Code:



Module variablesNdataypes

Sub Main()
Dim a As Short
Dim b As Integer
Dim c As Double

a = 10

b = 20

c = a + b

Console.WriteLine("a = {0}, b = {1}, c = {2}", a, b, c)

Console.ReadLine()

End Sub

End Module


JAVA

Example Of Java Variable



Code:


public class Test{
public void pupAge(){
int age = 0;
age = age + 7;
System.out.println("Puppy age is : " + age);
}

public static void main(String args[]){
Test test = new Test();
test.pupAge();
}
}

There are rules to naming variables which we will discuss in our next class..
.

6. Syntax - A syntax is a pattern or structure of arranging codes.All programming languages have different syntax.

Syntax Examples

PHP

Php Syntax Code:


7. Boolean - Boolean Is a data type that can either be 'TRUE' or 'FALSE'


8. File Extension - just like photos with default extension of .jpg , .png , .gif, each programming language also have a default extension attributed to it.

Examples Of File Extension

Vb.Net

Helloworld.vb

Python

Helloworld.py

9. Database - This is a storage (Server) I where users details are saved.


Symbols
All Programming languages have symbols in their syntax which perform certain functions , what we use in our daily arithmetic is what is in use in programming .


Some Signs And Their Functions.























SymbolsFunctions & Examples
+ Addition ( 5 + 2= 7 )
- Subtraction ( 5 - 2 = 3 )
% Modulus ( 5 % 2 = 1 )
/ Division ( 5 / 2 = 2.5 )
* Multiplication ( 5 * 2 = 10 )
> Greater Than ( 5 > 2 = True )
< Less Than ( 5 < 2 = False)
= Equal To ( To display Output )
== Equal To ( Used In Arguments or In Comparison)
!= Not Equal rub etc
=== Identical To ( Used In Arguments or Comparison)
>= Greater Than Or Equal To
<= Less Than Or Equal To
; Semi - Colon (To End A Variable,Print[Echo] Statement,Use To Declare An End To A Program)
( ) Parenthesis - (Condition Are Writing In Parenthesis in some programming languages)
. Full Stop - ( Use For Concatenation )
$ Dollar Sign - ( Use In Declaration of variable )
&& AND is a logical operator for comparison, Argument etc
|| OR is a logical operator for comparison, argument etc

Final Words

This is just few out of many words and symbols you will come across, you will learn more in our upcoming discussion but before we call it a day we are going to have A poll.. Yes I can Cover all the programming languages we discussed in our last discussion so you are going to vote on which one i should discuss in our next coming classes..

So please comment with the language you think i should focus this discussion on..

3 comments:
Write comments
  1. PHP will be 😎 i know how to write html codes... i want to dive into web development

    ReplyDelete
  2. to print with python version 3.6.2(lastest version)

    print("Hello World")

    ReplyDelete
    Replies
    1. Wow.. So the semi-colon has been eliminated and the parenthesis introduced.
      .Good To Know

      Delete

After dropping your comment, keep calm, it may take minutes before it appears after moderation.

Your comment(s) are appreciated.

You want to get notified when i reply your comment? *Kindly tick the Notify Me box

Hey, we've just launched a new custom color Blogger template. You'll like it - https://t.co/quGl87I2PZ
Join Our Newsletter