Programming
Programming
Programming
ORG
Hide
This November is the Wikipedia Asian Month. Come join us.
Computer programming
From Wikipedia, the free encyclopedia
Software development process
Core activities
Requirements Design Construction Testing Debugging Deployment Maintenance
Paradigms and models
Software engineering Waterfall Prototyping Incremental V-Model Dual Vee Model Sp
iral IID Agile Lean DevOps
Methodologies and frameworks
Cleanroom TSP PSP RAD DSDM MSF Scrum Kanban UP XP TDD ATDD BDD FDD DDD MDD
Supporting disciplines
Configuration management Infrastructure as Code Documentation Software Quality a
ssurance (SQA) Project management User experience
Tools
Compiler Debugger Profiler GUI designer Modeling IDE Build automation Release au
tomation Testing
Standards and BOKs
CMMI IEEE standards ISO 9001 ISO/IEC standards SWEBOK PMBOK BABOK
v t e
Computer programming (often shortened to programming) is a process that leads fr
om an original formulation of a computing problem to executable computer program
s. Programming involves activities such as analysis, developing understanding, g
enerating algorithms, verification of requirements of algorithms including their
correctness and resources consumption, and implementation (commonly referred to
as coding[1][2]) of algorithms in a target programming language. Source code is
written in one or more programming languages. The purpose of programming is to
find a sequence of instructions that will automate performing a specific task or
solving a given problem. The process of programming thus often requires experti
se in many different subjects, including knowledge of the application domain, sp
ecialized algorithms and formal logic.
Related tasks include testing, debugging, and maintaining the source code, imple
mentation of the build system, and management of derived artifacts such as machi
ne code of computer programs. These might be considered part of the programming
process, but often the term software development is used for this larger process
with the term programming, implementation, or coding reserved for the actual wr
iting of source code. Software engineering combines engineering techniques with
software development practices.
Contents [hide]
1
Overview
2
History
3
Modern programming
3.1
Quality requirements
3.2
Readability of source code
3.3
Algorithmic complexity
3.4
Methodologies
3.5
Measuring language usage
3.6
Debugging
4
Programming languages
5
Programmers
6
See also
7
References
8
Further reading
9
External links
Overview[edit]
Within software engineering, programming (the implementation) is regarded as one
phase in a software development process.
been for lists of instructions (not data) to drive programmed machines such as
Jacquard looms and mechanized musical instruments. "After some initial trials wi
th paper tape, he settled on punched cards..."[10] To process these punched card
s, first known as "Hollerith cards" he invented the keypunch, sorter, and tabula
tor unit record machines.[11] These inventions were the foundation of the data p
rocessing industry. In 1896 he founded the Tabulating Machine Company (which lat
er became the core of IBM). The addition of a control panel (plugboard) to his 1
906 Type I Tabulator allowed it to do different jobs without having to be physic
ally rebuilt. By the late 1940s, there were several unit record calculators, suc
h as the IBM 602 and IBM 604, whose control panels specified a sequence (list) o
f operations and thus were programmable machines.
The invention of the von Neumann architecture allowed computer programs to be st
ored in computer memory. Early programs had to be painstakingly crafted using th
e instructions (elementary operations) of the particular machine, often in binar
y notation. Every model of computer would likely use different instructions (mac
hine language) to do the same task. Later, assembly languages were developed tha
t let the programmer specify each instruction in a text format, entering abbrevi
ations for each operation code instead of a number and specifying addresses in s
ymbolic form (e.g., ADD X, TOTAL). Entering a program in assembly language is us
ually more convenient, faster, and less prone to human error than using machine
language, but because an assembly language is little more than a different notat
ion for a machine language, any two machines with different instruction sets als
o have different assembly languages.
Wired control panel for an IBM 402 Accounting Machine
The synthesis of numerical calculation, predetermined operation and output, alon
g with a way to organize and input instructions in a manner relatively easy for
humans to conceive and produce, led to the modern development of computer progra
mming. In 1954, FORTRAN was invented; it was the first widely used high level pr
ogramming language to have a functional implementation, as opposed to just a des
ign on paper.[12][13] (A high-level language is, in very general terms, any prog
ramming language that allows the programmer to write programs in terms that are
more abstract than assembly language instructions, i.e. at a level of abstractio
n "higher" than that of an assembly language.) It allowed programmers to specify
calculations by entering a formula directly (e.g. Y = X*2 + 5*X + 9). The progr
am text, or source, is converted into machine instructions using a special progr
am called a compiler, which translates the FORTRAN program into machine language
. In fact, the name FORTRAN stands for "Formula Translation". Many other languag
es were developed, including some for commercial programming, such as COBOL. Pro
grams were mostly still entered using punched cards or paper tape. (See computer
programming in the punch card era). By the late 1960s, data storage devices and
computer terminals became inexpensive enough that programs could be created by
typing directly into the computers. Text editors were developed that allowed cha
nges and corrections to be made much more easily than with punched cards. (Usual
ly, an error in punching a card meant that the card had to be discarded and a ne
w one punched to replace it.)
As time has progressed, computers have made giant leaps in processing power, whi
ch have allowed the development of programming languages that are more abstracte
d from the underlying hardware. Popular programming languages of the modern era
include ActionScript, C, C++, C#, Haskell, Java, JavaScript, Objective-C, Perl,
PHP, Python, Ruby, Smalltalk, SQL, Visual Basic, and dozens more.[14] Although t
hese high-level languages usually incur greater overhead, the increase in speed
of modern computers has made the use of these languages much more practical than
in the past. These increasingly abstracted languages are typically easier to le
arn and allow the programmer to develop applications much more efficiently and w
ith less source code. However, high-level languages are still impractical for a
few programs, such as those where low-level hardware control is necessary or whe
re maximum processing speed is vital. Computer programming has become a popular
career in the developed world, particularly in the United States, Europe, and Ja
pan. Due to the high labor cost of programmers in these countries, some forms of
Decomposition
Naming conventions for objects (such as variables, classes, procedures, etc.)
Various visual programming languages have also been developed with the intent to
resolve readability concerns by adopting non-traditional approaches to code str
ucture and display. Techniques like Code refactoring can enhance readability.
Algorithmic complexity[edit]
The academic field and the engineering practice of computer programming are both
largely concerned with discovering and implementing the most efficient algorith
ms for a given class of problem. For this purpose, algorithms are classified int
o orders using so-called Big O notation, which expresses resource use, such as e
xecution time or memory consumption, in terms of the size of an input. Expert pr
ogrammers are familiar with a variety of well-established algorithms and their r
espective complexities and use this knowledge to choose algorithms that are best
suited to the circumstances.
Methodologies[edit]
The first step in most formal software development processes is requirements ana
lysis, followed by testing to determine value modeling, implementation, and fail
ure elimination (debugging). There exist a lot of differing approaches for each
of those tasks. One approach popular for requirements analysis is Use Case analy
sis. Many programmers use forms of Agile software development where the various
stages of formal software development are more integrated together into short cy
cles that take a few weeks rather than years. There are many approaches to the S
oftware development process.
Popular modeling techniques include Object-Oriented Analysis and Design (OOAD) a
nd Model-Driven Architecture (MDA). The Unified Modeling Language (UML) is a not
ation used for both the OOAD and MDA.
A similar technique used for database design is Entity-Relationship Modeling (ER
Modeling).
Implementation techniques include imperative languages (object-oriented or proce
dural), functional languages, and logic languages.
Measuring language usage[edit]
Main article: Measuring programming language popularity
It is very difficult to determine what are the most popular of modern programmin
g languages. Methods of measuring programming language popularity include: count
ing the number of job advertisements that mention the language,[18] the number o
f books sold and courses teaching the language (this overestimates the importanc
e of newer languages), and estimates of the number of existing lines of code wri
tten in the language (this underestimates the number of users of business langua
ges such as COBOL).
Some languages are very popular for particular kinds of applications, while some
languages are regularly used to write many different kinds of applications. For
example, COBOL is still strong in corporate data centers[19] often on large mai
nframe computers, Fortran in engineering applications, scripting languages in We
b development, and C in embedded software. Many applications use a mix of severa
l languages in their construction and use. New languages are generally designed
around the syntax of a prior language with new functionality added, (for example
C++ adds object-orientation to C, and Java adds memory management and bytecode
to C++, but as a result, loses efficiency and the ability for low-level manipula
tion).
Debugging[edit]
The bug from 1947 which is at the origin of a popular (but incorrect) etymology
for the common term for a software defect.
Main article: Debugging
Debugging is a very important task in the software development process since hav
ing defects in a program can have significant consequences for its users. Some l
anguages are more prone to some kinds of faults because their specification does
not require compilers to perform as much checking as other languages. Use of a
static code analysis tool can help detect some possible problems.
Debugging is often done with IDEs like Eclipse, Visual Studio, Kdevelop, NetBean
s and Code::Blocks. Standalone debuggers like gdb are also used, and these often
provide less of a visual environment, usually using a command line.
Programming languages[edit]
Main articles: Programming language and List of programming languages
Different programming languages support different styles of programming (called
programming paradigms). The choice of language used is subject to many considera
tions, such as company policy, suitability to task, availability of third-party
packages, or individual preference. Ideally, the programming language best suite
d for the task at hand will be selected. Trade-offs from this ideal involve find
ing enough programmers who know the language to build a team, the availability o
f compilers for that language, and the efficiency with which programs written in
a given language execute. Languages form an approximate spectrum from "low-leve
l" to "high-level"; "low-level" languages are typically more machine-oriented an
d faster to execute, whereas "high-level" languages are more abstract and easier
to use but execute less quickly. It is usually easier to code in "high-level" l
anguages than in "low-level" ones.
Allen Downey, in his book How To Think Like A Computer Scientist, writes:
The details look different in different languages, but a few basic instructions
appear in just about every language:
Input: Gather data from the keyboard, a file, or some other device.
Output: Display data on the screen or send data to a file or other device.
Arithmetic: Perform basic arithmetical operations like addition and multiplicati
on.
Conditional Execution: Check for certain conditions and execute the appropriate
sequence of statements.
Repetition: Perform some action repeatedly, usually with some variation.
Many computer languages provide a mechanism to call functions provided by shared
libraries. Provided the functions in a library follow the appropriate run time
conventions (e.g., method of passing arguments), then these functions may be wri
tten in any other language.
Programmers[edit]
Main article: Programmer
See also: Software developer and Software engineer
Computer programmers are those who write computer software. Their jobs usually i
nvolve:
Coding
Debugging
Documentation
Integration
Maintenance
Requirements analysis
Software architecture
Software testing
Specification
See also[edit]
Book icon
Book: Programming
icon
Computer Science portal
Computing portal
Computer networking portal
icon
Computer programming portal
Main article: Outline of computer programming
ACCU
Association for Computing Machinery
Computer networking
Hello world program
Institution of Analysts and Programmers
System programming
The Art of Computer Programming
References[edit]
Catal
Ce tina
Dansk
Deutsch
Eesti
????????
Espaol
Esperanto
Euskara
?????
Franais
Galego
???
???????
??????
Hrvatski
Bahasa Indonesia
Italiano
?????
?????
???????
Latina
Latvie u
Lietuviu
La .lojban.
Magyar
??????????
??????
????
Bahasa Melayu
??????
Nederlands
???
Norsk bokml
Norsk nynorsk
Occitan
???? ?????
O?zbekcha/???????
??????
?????????
Polski
Portugus
Romna
???????
Scots
Shqip
Simple English
Slovencina
Sloven cina
?????? / srpski
Srpskohrvatski / ??????????????
Suomi
Svenska
?????
???
Trke
Trkmene
?? ????
??????????
????
Ti?ng Vi?t
??????
Zazaki
??
Edit links
This page was last modified on 21 October 2016, at 19:13.
Text is available under the Creative Commons Attribution-ShareAlike License; add
itional terms may apply. By using this site, you agree to the Terms of Use and P
rivacy Policy. Wikipedia is a registered trademark of the Wikimedia Foundation, I
nc., a non-profit organization.
Privacy policyAbout WikipediaDisclaimersContact WikipediaDevelopersCookie statem
entMobile viewWikimedia Foundation Powered by MediaWiki