ArticleslgStudy

biology

Automatic programming

Automatic programming is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Automatic programming rather than just read about it. In short: In computer science, automatic programming is a type of computer programming in which some mechanism generates a computer program, to allow human programmers to write the code at a higher abstraction level. There has been little agreement on the precise definition of automatic programming, mostly because its meaning has changed over time.

Automatic programming — main illustration
Automatic programming — illustration

Key takeaways

  • Automatic programming belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Automatic programming to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Automatic programming from memory before moving on to harder problems.

Reference excerpt

In computer science, automatic programming is a type of computer programming in which some mechanism generates a computer program, to allow human programmers to write the code at a higher abstraction level. There has been little agreement on the precise definition of automatic programming, mostly because its meaning has changed over time. David Parnas, tracing the history of "automatic programming" in published research, noted that in the 1940s it described automation of the manual process of punching paper tape. Later it referred to translation of high-level programming languages like Fortran and ALGOL. One of the earliest programs identifiable as a compiler is named Autocode. Parnas concluded that "automatic programming has always been a euphemism for programming in a higher-level language than was then available to the programmer." Program synthesis is one type of automatic programming where a procedure is created from scratch, based on mathematical requirements.

Origin Mildred Koss, an early UNIVAC programmer, explains: "Writing machine code involved several tedious steps—breaking down a process into discrete instructions, assigning specific memory locations to all the commands, and managing the I/O buffers. After following these steps to implement mathematical routines, a sub-routine library, and sorting programs, our task was to look at the larger programming process. We needed to understand how we might reuse tested code and have the machine help in programming. As we programmed, we examined the process and tried to think of ways to abstract these steps to incorporate them into higher-level language. This led to the development of interpreters, assemblers, compilers, and generators—programs designed to operate on or produce other programs, that is, automatic programming."

Generative programming Generative programming and the related term metaprogramming are concepts whereby programs can be written "to manufacture software components in an automated way" just as automation has improved "production of traditional commodities such as garments, automobiles, chemicals, and electronics." The goal is to improve programmer productivity. It is often related to code-reuse topics such as component-based software engineering.

Source-code generation Source code generation is the process of generating source code based on a description of the problem or an ontological model such as a template and is accomplished with a programming tool such as a template processor or an integrated development environment (IDE). These tools allow generating source code via any of various means. Modern programming languages are well supported by tools like Json4Swift (Swift) and Json2Kotlin (Kotlin). Programs that could generate COBOL code include:

the DYL250/DYL260/DYL270/DYL280 series Business Controls Corporation's SB-5 Peat Marwick Mitchell's PMM2170 application-program-generator package These application generators supported COBOL inserts and overrides. A macro processor, such as the C preprocessor, which replaces patterns in source code according to relatively simple rules, is a simple form of source-code generator. Source-to-source code generation tools also exist. Large language models such as ChatGPT are capable of generating a program's source code from a description of the program given in a natural language. Many relational database management systems (RDBMS) provide a function that will export the content of the database as SQL data definition queries, which may then be executed to re-import the tables and their data, or migrate them to another RDBMS. Some languages use annotations to generate source code and inject it. For example, this is done in Java and Kotlin using annotations, for example the Project Lombok library which runs at compile time with an annotation processor. There is an active C++ proposal for C++29, to add token sequence injection using compile-time reflective programming (reflection).

Low-code applications

A low-code development platform (LCDP) is software that provides an environment programmers use to create application software through graphical user interfaces and configuration instead of traditional computer programming.

Vibe coding

See also Automatic bug fixing Automated machine learning Comparison of code generation tools Feature-oriented programming GitHub Copilot AI-assisted software development Language-oriented programming Modeling language Program transformation Semantic translation Vocabulary-based transformation Fourth-generation programming language Low-code development platform Emergent Coding

Notes

References Czarnecki, Krzysztof; Eisenecker, Ulrich W. (1 May 2000). Generative Programming: Methods, Tools, and Applications. Association for Computing Machinery (ACM Press), Addison Wesley. ISBN 978-0-201-30977-5. Retrieved 19 April 2026. Fowler, Matthew (Spring 2009). "Code Generation for Dummies". Software Development Magazine. Methods & Tools. Retrieved 19 April 2026 – via Martinig & Associates.

Worked examples

Example 1 — a first encounter with Automatic programming

Start with the simplest possible case. Write down what Automatic programming claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Automatic programming before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Automatic programming ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Automatic programming

In research
Automatic programming appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Automatic programming in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Automatic programming is common in secondary-school and first-year university syllabi. It links to neighbouring topics Programming paradigms, Source code generation, so understanding it makes those chapters shorter.
In everyday life
Look for Automatic programming outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Automatic programming” →

How to study Automatic programming in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Automatic programming means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Automatic programming out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Automatic programming in simple terms?

In computer science, automatic programming is a type of computer programming in which some mechanism generates a computer program, to allow human programmers to write the code at a higher abstraction level. There has been little agreement on the precise definition of automatic programming, mostly b…

Why does Automatic programming matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Automatic programming?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Automatic programming.

Tags

  • Programming paradigms
  • Source code generation

Keep exploring