Computer Programming: An Overview of Concepts, Languages, and History, Summaries of Programming Languages

The code may be a modification of an existing source or something completely new. The purpose of programming is to create a program that exhibits a certain ...

Typology: Summaries

2022/2023

Uploaded on 05/11/2023

zeb
zeb 🇺🇸

4.6

(27)

231 documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer programming
From Wikipedia, the free encyclopedia
Jump to: navigation, search
Programming" redirects here. For other uses, see Programming (disambiguation).
Software development process
Activities and steps
Requirements · Specification
Architecture · Design
Implementation · Testing
Deployment · Maintenance
Models
Agile · Cleanroom · DSDM
Iterative · RAD · RUP · Spiral
Waterfall · XP · Scrum · Lean
V-Model · FDD
Supporting disciplines
Configuration management
Documentation
Quality assurance (SQA)
Project management
User experience design
Tools
Compiler · Debugger · Profiler
GUI designer
Integrated development environment
Computer programming (often shortened to programming or coding) is the process of writing,
testing, debugging/troubleshooting, and maintaining the source code of computer programs. This
source code is written in a programming language. The code may be a modification of an existing
source or something completely new. The purpose of programming is to create a program that
exhibits a certain desired behaviour (customization). The process of writing source code often
requires expertise in many different subjects, including knowledge of the application domain,
specialized algorithms and formal logic.
Contents
1 Overview
2 History of programming
3 Modern programming
3.1 Quality requirements
3.2 Algorithmic complexity
3.3 Methodologies
3.4 Measuring language usage
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Computer Programming: An Overview of Concepts, Languages, and History and more Summaries Programming Languages in PDF only on Docsity!

Computer programming

From Wikipedia, the free encyclopedia

Jump to: navigation, search Programming" redirects here. For other uses, see Programming (disambiguation). Software development process Activities and steps Requirements · Specification Architecture · Design Implementation · Testing Deployment · Maintenance Models Agile · Cleanroom · DSDM Iterative · RAD · RUP · Spiral Waterfall · XP · Scrum · Lean V-Model · FDD Supporting disciplines Configuration management Documentation Quality assurance (SQA) Project management User experience design Tools Compiler · Debugger · Profiler GUI designer Integrated development environment Computer programming (often shortened to programming or coding ) is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. This source code is written in a programming language. The code may be a modification of an existing source or something completely new. The purpose of programming is to create a program that exhibits a certain desired behaviour (customization). The process of writing source code often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic.

Contents

  • 1 Overview
  • 2 History of programming
  • 3 Modern programming
  • 3.1 Quality requirements
  • 3.2 Algorithmic complexity
  • 3.3 Methodologies
  • 3.4 Measuring language usage
  • 3.5 Debugging
  • 4 Programming languages
  • 5 Programmers
  • 6 References
  • 7 Further reading
  • 8 See also
    1. External links Overview Within software engineering, programming (the implementation ) is regarded as one phase in a software development process. There is an ongoing debate on the extent to which the writing of programs is an art, a craft or an engineering discipline.[1] Good programming is generally considered to be the measured application of all three, with the goal of producing an efficient and evolvable software solution (the criteria for "efficient" and "evolvable" vary considerably). The discipline differs from many other technical professions in that programmers generally do not need to be licensed or pass any standardized (or governmentally regulated) certification tests in order to call themselves "programmers" or even "software engineers." However, representing oneself as a "Professional Software Engineer" without a license from an accredited institution is illegal in many parts of the world.[ citation needed ] Another ongoing debate is the extent to which the programming language used in writing computer programs affects the form that the final program takes. This debate is analogous to that surrounding the Sapir-Whorf hypothesis [2] in linguistics, that postulates that a particular language's nature influences the habitual thought of its speakers. Different language patterns yield different patterns of thought. This idea challenges the possibility of representing the world perfectly with language, because it acknowledges that the mechanisms of any language condition the thoughts of its speaker community. Said another way, programming is the craft of transforming requirements into something that a computer can execute. History of programming See also: History of programming languages Wired plug board for an IBM 402 Accounting Machine. The concept of devices that operate following a pre-defined set of instructions traces back to Greek Mythology, notably Hephaestus and his mechanical servants[3]. The Antikythera mechanism was a calculator utilizing gears of various sizes and configuration to determine its operation. The earliest known programmable machines (machines whose behavior can be controlled and predicted with a set of instructions) were a Muslim Scientist Al-Jazari's programmable Automata in 1206.[4] One of Al-Jazari's robots was originally a boat with four automatic musicians that floated on a lake to entertain guests at royal drinking parties. Programming this mechanism's behavior meant placing pegs and cams into a wooden drum at specific locations. These would then bump into little levers

corrections to be made much more easily than with punch cards. As time has progressed, computers have made giant leaps in the area of processing power. This has brought about newer programming languages that are more abstracted from the underlying hardware. Although these 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 typically are easier to learn and allow the programmer to develop applications much more efficiently and with less code. However, high-level languages are still impractical for many programs, such as those where low-level hardware control is necessary or where processing speed is at a premium. Throughout the second half of the twentieth century, programming was an attractive career in most developed countries. Some forms of programming have been increasingly subject to offshore outsourcing (importing software and services from other countries, usually at a lower wage), making programming career decisions in developed countries more complicated, while increasing economic opportunities in less developed areas. It is unclear how far this trend will continue and how deeply it will impact programmer wages and opportunities. Modern programming

Quality requirements

Whatever the approach to software development may be, the final program must satisfy some fundamental properties. The following five properties are among the most relevant:

  • Efficiency / performance : the amount of system resources a program consumes (processor time, memory space, slow devices such as disks, network bandwidth and to some extent even user interaction): the less, the better. This also includes correct disposal of some resources, such as cleaning up temporary files and lack of memory leaks.
  • Reliability : how often the results of a program are correct. This depends on conceptual correctness of algorithms, and minimization of programming mistakes, such as mistakes in resource management (e.g. buffer overflows and race conditions) and logic errors (such as division by zero).
  • Robustness : how well a program anticipates problems not due to programmer error. This includes situations such as incorrect, inappropriate or corrupt data, unavailability of needed resources such as memory, operating system services and network connections, and user error.
  • Usability : the ergonomics of a program: the ease with which a person can use the program for its intended purpose, or in some cases even unanticipated purposes. Such issues can make or break its success even regardless of other issues. This involves a wide range of textual, graphical and sometimes hardware elements that improve the clarity, intuitiveness, cohesiveness and completeness of a program's user interface.
  • Portability : the range of computer hardware and operating system platforms on which the source code of a program can be compiled/interpreted and run. This depends on differences in the programming facilities provided by the different platforms, including hardware and operating system resources, expected behaviour of the hardware and operating system, and availability of platform specific compilers (and sometimes libraries) for the language of the source code.

Algorithmic complexity

The academic field and the engineering practice of computer programming are both largely concerned with discovering and implementing the most efficient algorithms for a given class of

problem. For this purpose, algorithms are classified into orders using so-called Big O notation, O(n) , which expresses resource use, such as execution time or memory consumption, in terms of the size of an input. Expert programmers are familiar with a variety of well-established algorithms and their respective complexities and use this knowledge to choose algorithms that are best suited to the circumstances.

Methodologies

The first step in most formal software development projects is requirements analysis, followed by testing to determine value modeling, implementation, and failure elimination (debugging). There exist a lot of differing approaches for each of those tasks. One approach popular for requirements analysis is Use Case analysis. Popular modeling techniques include Object-Oriented Analysis and Design (OOAD) and Model- Driven Architecture (MDA). The Unified Modeling Language (UML) is a notation used for both OOAD and MDA. A similar technique used for database design is Entity-Relationship Modeling (ER Modeling). Implementation techniques include imperative languages (object-oriented or procedural), functional languages, and logic languages.

Measuring language usage

It is very difficult to determine what are the most popular of modern programming languages. Some languages are very popular for particular kinds of applications (e.g., COBOL is still strong in the corporate data center, often on large mainframes, FORTRAN in engineering applications, scripting languages in web development, and C in embedded applications), while some languages are regularly used to write many different kinds of applications. Methods of measuring language popularity include: counting the number of job advertisements that mention the language[10], the number of books teaching the language that are sold (this overestimates the importance of newer languages), and estimates of the number of existing lines of code written in the language (this underestimates the number of users of business languages such as COBOL).

Debugging

A bug which was debugged in 1947. Debugging is a very important task in the software development process, because an incorrect program can have significant consequences for its users. Some languages are more prone to some kinds of faults because their specification does not require compilers to perform as much checking

  1. ^ Kenneth E. Iverson, the originator of the APL programming language, believed that the Sapir–Whorf hypothesis applied to computer languages (without actually mentioning the hypothesis by name). His Turing award lecture, "Notation as a tool of thought", was devoted to this theme, arguing that more powerful notations aided thinking about computer algorithms. Iverson K.E.,"Notation as a tool of thought", Communications of the ACM , 23: 444-465 (August 1980).
  2. ^ New World Encyclopedia Online Edition New World Encyclopedia
  3. ^ Al-Jazari - the Mechanical Genius, MuslimHeritage.com
  4. ^ A 13th Century Programmable Robot, University of Sheffield
  5. ^ Fowler, Charles B. (October 1967), "The Museum of Music: A History of Mechanical Instruments", Music Educators Journal 54 (2): 45–49, doi:10.2307/
  6. ^ Columbia University Computing History - Herman Hollerith
  7. ^ [1]
  8. ^ [2]
  9. ^ Survey of Job advertisements mentioning a given language> Further reading
  • Weinberg, Gerald M., The Psychology of Computer Programming , New York: Van Nostrand Reinhold, 1971 See also Main article: Outline of computer programming
  • ACCU (organisation)
  • Association for Computing Machinery
  • Computer programming in the punch card era
  • Hello world program
  • List of basic computer programming topics
  • List of computer programming topics
  • Programming paradigms
  • Software engineering
  • The Art of Computer Programming [edit] External links Wikibooks has a book on the topic of Computer programming Wikibooks has a book on the topic of Windows Programming
  • Programming Wikia
  • Programming Wiki
  • How to Think Like a Computer Scientist - by Jeffrey Elkner, Allen B. Downey and Chris Meyers Major fields of computer science Mathematical foundations Mathematical logic · Set theory · Number theory · Graph theory · Type theory · Category theory · Numerical analysis · Information theory

Theory of computation Automata theory · Computability theory · Computational complexity theory · Quantum computing theory Algorithms and data structures Analysis of algorithms · Algorithm design · Computational geometry Programming languages and Compilers Parsers · Interpreters · Procedural programming · Object-oriented programming · Functional programming · Logic programming · Programming paradigms Concurrent, Parallel, and Distributed systems Multiprocessing · Grid computing · Concurrency control Software engineering Requirements analysis · Software design · Computer programming · Formal methods · Software testing · Software development process System architecture Computer architecture · Computer organization · Operating systems Telecommunication & Networking Computer audio · Routing · Network topology · Cryptography Databases Data mining · Relational databases · SQL • OLAP Artificial intelligence Automated reasoning · Computational linguistics · Computer vision · Evolutionary computation · Machine learning · Natural language processing · Robotics Computer graphics Visualization · Image processing Human computer interaction Computer accessibility · User interfaces · Wearable computing · Ubiquitous computing · Virtual reality Scientific computing Artificial life · Bioinformatics · Cognitive Science · Computational chemistry · Computational neuroscience · Computational physics · Numerical algorithms · Symbolic mathematics NOTE: Computer science can also be split up into different topics or fields according to the ACM Computing Classification System. Software engineering Fields Requirements analysis • Software design • Computer programming • Formal methods • Software testing • Software deployment • Software maintenance Concepts Data modeling • Enterprise architecture • Functional specification • Modeling language • Programming paradigm • Software • Software architecture • Software development methodology • Software development process • Software quality • Software quality assurance • Structured analysis Orientations Agile • Aspect-oriented • Object orientation • Ontology • Service orientation • SDLC Models Development models : Agile • Iterative model • RUP • Scrum • Spiral model • Waterfall model • XP • V-Model Other models : Automotive SPICE • CMMI • Data model • Function model • IDEF • Information model • Metamodeling • Object model • Systems model • View model • UML Software Kent Beck • Grady Booch • Fred Brooks • Barry Boehm • Ward Cunningham • Ole-