Programming Languages in the LLM Era: What Developers Should Rethink
For developers who use large language models in their daily work, understanding code requires more than recognizing familiar keywords. This article explores context-dependent meaning, second-order abstraction, and the limits of LLM-generated code, then provides a structured prompting template and a review checklist for verifying model outputs.
Developers who write code and use large language models (LLMs) need to keep four principles in mind:
- Programming keywords and function names are human conventions. Their meaning depends on how they are defined in a particular context.
- Second-order abstraction enables reusable rules that can serve many use cases over time.
- LLMs are good at generating text that follows common patterns, but they cannot reliably guarantee version accuracy, boundary handling, or consistency.
- Explicit constraints in prompts and systematic reviews of outputs are more reliable than trusting a model’s confident wording.
1. Symbols, Meaning, and Boundaries
Languages consist of symbols. In Course in General Linguistics, Ferdinand de Saussure describes a sign as having two parts: the signifier, its sound or written form, and the signified, the concept it represents. The connection between them is established by convention rather than determined by the thing itself. This is known as the arbitrariness of the sign.
Programming languages work in much the same way. Consider class. It is a keyword in Java, Python, and C++, but its meaning is not identical across these languages. In Java, a class defines a blueprint within a statically typed system. In Python, a class is also a runtime object that can be assigned and passed around. JavaScript originally used prototype chains to provide similar functionality; its later class syntax provides a more familiar form over that prototype-based model. The same signifier requires a fresh check of its meaning when the language changes.
Teams therefore need shared definitions. If “user” means a login account in documentation, a contact in code, and a paying member in the database, discussions will lead to misunderstandings. Aligning terminology costs relatively little and can prevent substantial rework.
2. Second-Order Abstraction in Programming Languages
First-order abstraction turns concrete things into symbols—for example, using a variable named total to represent the sum of a set of numbers. Second-order abstraction abstracts the rules of abstraction themselves.
Python decorators provide an example. Placing @cache above a function definition wraps the function’s calling behavior so that repeated calls with the same arguments can reuse a computed result. The decorator does not need to know what the wrapped function does; it describes a transformation rule.
Generics in type systems, macros in C, and traits in Rust can also be understood through this lens. Rather than directly describing a particular piece of data, they express rules for describing or working with data.
The value of second-order abstraction is reuse: a rule written once can apply to many concrete situations. The trade-off is a higher reading burden. Readers must understand the rule before they can understand the code shaped by it.
This is also an area where LLMs can make mistakes. A model may fluently demonstrate decorator usage without correctly determining the execution order of a particular decorator in the relevant version.
3. What LLMs Do Well—and Where They Fall Short
LLMs predict likely text based on the context they receive. This mechanism makes them useful for three common tasks:
- Explaining familiar concepts.
- Generating boilerplate code.
- Rewriting an explanation for a different audience.
The same mechanism also creates limitations.
Version-sensitive APIs can be wrong. If a library renames load to read in version 2.0, a model may still produce the old name—and present it with confidence.
Definitions can drift during long conversations. If “order” initially means a paid transaction, the model may later treat it as any order that has been placed. The resulting code can become internally inconsistent.
Generating code is not the same as executing it. A model does not run code merely by producing it. Execution results must come from external tools.
Boundary conditions are easy to overlook. Empty lists, time-zone transitions, and concurrent writes are examples of cases that may be missed.
These limitations do not make LLMs useless. The important point is to understand where they may fail and keep responsibility for verification with the developer.
4. Glossary
- Signifier: The physical form of a sign, such as a written word or a sound.
- Signified: The concept represented by a sign.
- Arbitrariness of the sign: The connection between a signifier and its signified is determined by convention.
- Second-order abstraction: Abstraction over abstraction rules themselves, as illustrated by decorators, generics, and macros.
- Layered prompting: Organizing a prompt into five parts: role, task, context, constraints, and output format.
- Hallucination: Model-generated content that appears plausible but does not match the facts.
5. A Layered Prompting Template
Organize a request into five layers.
Role
Specify the perspective the model should take, such as “a backend engineer familiar with Python 3.12.”
Task
State the required action in one sentence, such as “Write unit tests for the following function.”
Context
Provide the source code, version numbers, existing definitions, and relevant documentation excerpts.
Constraints
List interfaces that must not change, libraries that may be used, and any performance or security requirements.
Output Format
Specify a structure such as code blocks, a step-by-step list, or JSON so the response is easier to use.
A complete prompt could read:
You are a backend engineer familiar with Python 3.12.
Task: Write three unit tests for
parse_order.Context: The function source code and order field definitions are attached.
Constraints: Do not change the function signature or introduce new dependencies.
Output format: Return pytest code, with a one-line comment for each test explaining which branch it covers.
This structure makes the request’s assumptions and boundaries explicit rather than leaving the model to infer them.
6. A Checklist for Reviewing Model Outputs
After receiving a response, check the following items:
- Terminology: Are terms consistent with the definitions used throughout the discussion? Does each concept continue to refer to the same thing?
- API accuracy: Can the cited function names, parameter names, and version numbers be verified in the official documentation?
- Execution and testing: Has the code actually been run? Do the tests cover empty or null inputs, boundary conditions, and exception paths?
- Assumptions: Are the conditions behind each conclusion stated explicitly? Would the conclusion still hold in another environment?
- Sensitive operations: Have sections involving security, permissions, money, or data deletion received human review?
- Independent checks: Have numerical results, comparisons, and sorting results been checked using another method?
- Unsupported claims: Are there assertions without evidence, such as “all major frameworks support this”? If so, verify their sources.
With this workflow, an LLM’s output remains a draft to be checked rather than automatically becoming the basis for a decision.
