Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Thursday, 3 December 2015

Computer Programming Basics

Basic Of Computer Programming

Hello Readers my name is Muzamil Hussain.Today i,m Going to Tell You Computer Programming Basics.Regardless of the programming language you want to learn , first you need to be Acquainted with the basics of programming . Scroll below to learn the foundational details of computer programming .
Computer Programming Basics
Computer Programming Basics

A computer program is nothing but a set of instructions , que When executed , to give results to Un certain operation . These instructions need to be written logically , ie, They Should be in a flow, and before writing the program , you need to choose the flow of the program . Remember , the computer is a very intelligent machine, but it can do only what you ask it to do . So the program you are writing That will go wrong , only if there is something wrong with its set of instructions . Problems Arise in computer programs due to errors manually . Before going into further detail , let us try to understand the different levels of programming languages ​​.

Machine- Level Language



At root level , a computer works in bits and bytes. It Understands only binary language , que Consists of digits 0 and 1 . May you write a program in whichever language you want , but for the computer to understand and execute it , it must be converted into the language of 0s and 1s . Writing a program in machine language , is definitely difficult. It is not possible to memorize a long string of 0s and 1s for every instruction executed That needs to be .
Assembly Language
An assembly language is just one level above low -level machine language . No doubt , designing a program in assembly language is no easy task , but still the programming code used is quite understandable . Till date , many programs embedded technology are designed in assembly language . A computer program Known as the assembler is used for converting the assembly program into the machine- level Corresponding program .

High - Level Language



High -level languages ​​are far simpler to understand than assembly language or machine- level language . There are clear statements for writing each and every instruction. But the computer will not understand code written in a high - level language . So a compiler or interpreter program is run by the computer itself , That converts the programming code into its equivalent machine language form . However , whatever language you learn, you need to have a proper understanding of the basics of That language . Without knowing the basics of a private language , you can not write a program in That language . There are a variety of languages ​​for different purposes. Some are meant for web programming, some are meant to design a simple desktop applications , while some can do both.

Basic Steps to Write a Computer Program



Some of the basic factors That You need to take care of , When writing a computer program Have Been Mentioned below.
The Plan and Design of the Program Logic : Logic is the backbone of your computer program . What operation needs to be performed , what are the resources required for the operation , what data needs to be accepted from the user etc. . Such questions need to be asked and listed down before starting with the actual coding process. As a beginner , writing an algorithm and preparing a flow chart for the program , is a must .
Divide your Programs into Functions : Almost all computer languages ​​allow you to write programs Such That , the programs are divided into small blocks or functions. You need to design the functions Such That They are written in the minimum number of instructions and can be reused again and again .
Use the Correct Syntax of Commands and Statements : Syntax is to a computer language as grammar is to a spoken language . Using the wrong grammar can completely change the meaning of a spoken sentence . Likewise the wrong syntax will result in programming errors or improper code being executed . Learn the syntax of each command you will be using That .
Optimize your Code : This is very important. The less number of instructions in a program , the faster it Executes . Usually we use complicated logic and statements to get a task done , que ironically , can be performed by using Easily one of the programming language 's inbuilt functions. Or a lot of steps are written , forming long tedious code, When the operation can be performed in a few steps . Such issues mainly Occur Because We Were not aware That Existed Such functions or the program 's logic was ill -planned . Get yourself well- acquainted With the programming language , to Prevent writing redundant code .
Correctly Name Variables and Functions : The Variable names and functions Should be logical . The process of coding Becomes simpler , if you use the proper names for variables and functions That you use in your programming code . Using vague or absurd Variable names will not hamper the functionality of your program , but When you try to modify the same code or Enhance later , May you find it difficult.
The above information is just the tip of the iceberg when it comes to computer programming basics . Along with functions , there are programming constructs and definitions to Consider , que Differ from language to language . The best way to command a programming language , is to keep at it and not give up , Even When It Seems hard .
If you Like this Article Soo Share your,s Friends and tell About our site,If you have any problem soo contect us Feel Free Thanx.

www.MuzamilTricks.com

Wednesday, 2 December 2015

Types of Programming Errors

Variou types of programing error


Hello Readers my name is Muzamil Hussain.Today i,m Going to Tell You Types of Programming Errors.There are various types of programming errors can crop up That During the development phase of a software program and every programmer needs to be aware of them. In this article , you will find a description of the Most common programming bugs Apr That surely encounter every developer .


"To eror is human , to really foul things up requires a computer


Programming errors , more Commonly Known as 'Bugs ' in computing lingo , are the bane of any software developer. Since machines are increasingly being used in automated mode , With onboard embedded systems or computers controlling Their Functioning , a programming mistake drastic Can Have Consequences . There Have Been bugs cases of space shuttles and planes crashing due to software in embedded computing equipment . A single loophole left in operating system code can Provide an entry point to hackers who can exploit the vulnerability , putting computer security at risk . Ergo , errors need to be taken very seriously as we increasingly rely on computers .

Types of Programming Errors Prime



Computer programming is a vast field with Hundreds of languages ​​to be mastered and millions of applications . From core operating system programming, application programming , embedded system coding , web development , mobile platform apps, development of software programs deployed online to scientific computing , the Extent of the field is simply vast . So is the scope for making programming errors of various kinds !

Programming Error Type Description


Logic Error This is Perhaps the Most serious of all errors . When a program written in any language compile and runs properly only to Provide incorrect output, the flaw lies in the Underlying logic programming . It's an error Which has-been inherited from a flaw in the basic algorithm . The very logic on Which The entire program is based is flawed , in Such a case . These types of errors need a major change in your approach to find a solution. You need to start digging at the algorithmic level to narrow down to the cause of Such an error .
Syntax Error Every computer language like C , Java , Perl and Python has a specific syntax in Which code needs to be written. When a programmer does Adhere to the ' grammar ' specifications of a computer language , a syntax error results . These kinds of errors are rectified Easily During the compilation phase .
Compilation Error Compilation is the process where a program written in a high level language is converted to machine readable form . Many types of errors can Occur During this phase , including syntax errors . Sometimes , the syntax of a source code Might be flawless , but a compilation Error Might still occur. This May be due to a problem in the compiler itself . These errors are rectifiable in the development phase .
Run Time Error The program code has compiled successfully and an executable file has-been created. You breathe a sigh of relief and run the program to test its working to find an error . This is a 'Run Time Error' . These result from the May failure on part of the developer to anticipate actual program deployment conditions. These can be rectified by going back to the coding phase .
Arithmetic Error Many programs use variables and the numerical algorithm May Involve several mathematical calculations . Arithmetic errors crop up When the computer can not handle problems like ' Division By Zero ' leading to an infinite result . This is again a logical mistake Which can only be corrected by changing the algorithm .
Resource Errors When the value of variable overflows its maximum allowed value, to result resource Error May . Buffer overflow , usage of an uninitialized variable access and stack overflows Violations are examples of some common errors .
These Interfacing Error May Arise due to mismatch of a software program With the hardware interface or application programming interface used. In case of web applications , an interface error May result from incorrect use of a web protocol .
An intensive testing and debugging phase is an essential part of the software development cycle can help Which These errors nip in the bud , before full scale deployment of the software program . A lot of errors can be avoided through pre -planning and care During the coding phase . Through practice and discipline and debugging Following Rigorous Procedures , Most of the errors can be rectified During software development. Making mistakes is a part of learning and can never be Entirely They avoided. However , I would suggest you focus on That making new mistakes and avoid repeating the ones you made before!
If you Like this Article Soo Share your,s Friends and tell About our site,If you have any problem soo contect us Feel Free Thanx.