How Computer Programming Functions Work

May 27, 2010 | In: Computer Programming

For those without knowledge in programming, the terms used are strange and confusing. To a beginner in programming, words such as programs, queries, procedures, sub queries etc. are unfamiliar and uncommon. They can get you lost but what do they stand for individually?

Duplication in programming is always avoided. Basic code in billions of line may make up a program but with duplication always avoided. When an additional member is needed an error message may occur.

For example if a currency that is global, called the Euro is to be added. Updating each program to have it would be difficult, as it would require doing the addition in many lines of code. But a function or a sub-program can be created to handle this. Then it would be added to the program to handle the changes.

Many components of new programs are usually in pre-existence for example file access, inventorying. Alternatively, instead of writing new lines of code, we can have a sub-program to work on the specific function. It can then be added to other programs to do the same task.

A parameter can go into a specific program handling a specified task. A control is taken back to the main program i.e. a secondary program altering values. Varying languages can be made to call varying programs. This enables having controllable function pieces and different function types are handled better by the suitable languages.

A function can be multi line or single line. A multi-line stretches in many lines, while a single-line returns a value after task performance is done on a single line. A specific name must call the single-line function. A multi-line function however, can be called by non-sequential statements in a block of code.

To put it simply, functions are reusable blocks of code. That is, instead of writing a code again, we use code that is already written i.e. repetition. For example mathematical e.g. log, tan or date (working with value dates) or string (looking if a string can be located in another string). Mostly, program code is separated from the functions. The functions are developed as if they are small programs. Specific functions usually provide an entry point to certain programs.

Just by looking at what a computer does, one begins to understand how programming works. All the basics can be observed from the working applications. But the transition from a beginner to a proficient programmer takes time.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.



10 Responses to How Computer Programming Functions Work

Avatar

Posts about Programming from google blogs as of May 30, 2010 « tryfly.com

May 30th, 2010 at 9:53 am

[...] excelente recurso para todos los interesados en desarrollo de dispositivos móviles… … How Computer Programming Functions Work – 55gb.com 05/30/2010 For those without knowledge in programming, the terms used are strange [...]

Avatar

Coder

July 4th, 2010 at 6:08 pm

Thanks for posting this!

Avatar

Distance Learning Programme

August 19th, 2010 at 10:47 am

IMT-CDL ,Ghaziabad, a premium business school of India, is a center of excellence in management education through its distance and e-learning mode. It is well known for its distinguished faculty and innovative pedagogy. Recently, IMT-CDL was honoured with the ‘Best B-school in Distance Learning’ award at ‘Dainik Bhaskar B-School Leadership Awards` ceremony at Mumbai

Avatar

Executive MBA

September 6th, 2010 at 10:20 am

IMT-CDL ,Ghaziabad, a premium business school of India, is a center of excellence in management education through its distance and e-learning mode. It is well known for its distinguished faculty and innovative pedagogy. Recently, IMT-CDL was honoured with the ‘Best B-school in Distance Learning’ award at ‘Dainik Bhaskar B-School Leadership Awards` ceremony at Mumbai

Avatar

Logo Design

February 15th, 2011 at 12:59 pm

Programming has a standard and practically speaking, a programmer must know the code properly and must plan and analyze before initializing the project. Main function has a purpose in code generation, so the function should be reusable in the whole project.

Avatar

iPad application design

March 16th, 2011 at 11:04 am

When I first started learning programming it seemed that I would never be able to remember all the terms. But later i fugure out that there is nothing impossible.

Avatar

pharmacy technician training

April 6th, 2011 at 2:40 am

A big part of programming is object oriented coding in which pieces of the application are defined by objects and these pieces can be re-used without having to write similar code over and over. Thanks for these thoughts.

Avatar

LED Lights

April 27th, 2011 at 7:05 am

Knowing very little about programming and how computers work, you have given me some clarity on what that box underneath my table actually does. I can relate to little bits of code performing only one function and being called as needed. Thanks.

Avatar

colendo angle

May 12th, 2011 at 1:53 pm

There are two key attributes that a problem must have in order for dynamic programming to be applicable: optimal substructure and overlapping subproblems. However, when the overlapping problems are much smaller than the original problem, the strategy is called “divide and conquer” rather than “dynamic programming”. This is why mergesort, quicksort, and finding all matches of a regular expression are not classified as dynamic programming problems.

Avatar

what to do for a job

May 26th, 2011 at 11:47 am

Coding itself is not too difficult to grasp, but it is the logic that needs to applied for every function that takes time to build a level of expertise on.

Comment Form

Advertisement