Support These Projects

Enter Amount:

Search this website...

User Login

Statistics

Visitors: 444415
Home arrow Programming arrow Begin with End
Begin with End in mind PDF Print E-mail
Written by SK Cheah   
Saturday, 26 April 2008

Begin with End in mind

The most basic common element of programming language is the indicator of “begin” and “end” of process code. This is very first step of compiler/interpreter look for, before it able to perform it task.

Some special case in certain language is treated first encounter code as “begin”; however, still needed to code in “end” indicator (i.e. BASIC - End). Or in opposite way is just code in “begin” indicator, and it has default “end” (i.e. C++ single-line comment (//) has the end of line ASCII code as “end”).

button_basic.gif
Using very English grammars-like style of begin and end.

End
If … End If
Select Case … End Select

* There are many variance of BASIC; example here for BASIC is base on Visual Basic.

button_c.gifbutton_c__.gif
Famous for its curly bracket format, rather then older style language (i.e. ALGOL) “begin … end”. The symbol is unique and also save typing as compare to full word – begin and end.

{ … }

button_html.gif
Simple begin tag <xxx> and end tag </xxx> format; with insert of / (forward slash) to indicate end of particular tag.

<HEAD> … </HEAD>
<BODY> … </BODY>

Note & Tips: Beginner may make simple mistake in forget to closing of codes and causing error (or sometime misbehave) of program. Simple solution is always discipline in typing by pair of “begin” and “end” indicator, and then continues coding in between these “begin” and “end”.  Other “lazy” (or smart) way is by using programming editor help to prevent this simple mistake, in example notepad++ .

Discussion in Forum 

Last Updated ( Thursday, 15 May 2008 )
 
< Prev   Next >
top