Programming with AI
ENRU
G

Glossary

the jargon that turns up every day

What it is

The words that arrive in AI answers, in error messages and in documentation. Not a dictionary but a list of what gets in the way of reading until you know it.

Code and its parts

WordWhat it means
variablea named place a value is kept in
function, methoda named piece of code; a method is a function belonging to an object
argument, parameterwhat you pass into a function; what it is called inside
returnhand a value back out of a function
class, instancea class (the description); an instance (an object made from it)
property, fielda value belonging to an object
array, listan ordered collection of values
dictionary, map, objectkey–value pairs
string, integer, float, booleantext, a whole number, a decimal, true/false
null, None, undefined"nothing"; in JS also "no value was set"
scopewhere a name exists
statement, expressionan instruction; something that has a value
loop, iteraterepeat; go through the elements one at a time
nestedone thing inside another
mutable, immutablechangeable; unchangeable

What happens while it runs

WordWhat it means
runtimethe time the program is running (as opposed to the build)
exception, throw, raisean error object; sending it up out of the code
catch, handleintercept an error and deal with it
stack trace, tracebackthe chain of calls leading to the crash
debuglook for the cause of an error
loga record of an event; "the logs" are those records
crashthe program dies
hang, freezethe program stops responding
race conditiontwo processes interfering with each other
memory leakmemory taken and never given back
timeouta limit on how long to wait
async, await, promiseasynchrony: "wait for the result without blocking everything"
thread, processtwo ways of running things at the same time
cachestored answers kept so they needn't be computed again

Data and the network

WordWhat it means
APIthe way one program talks to another
endpointone specific address of an API
request, responsewhat is sent; what comes back
payload, bodythe contents of a request or a response
headera line of metadata on a request or a response
status codethe response code: 200, 404, 500
JSONa text format for data: pairs and lists
schema, validationa description of data; checking against it
parse, serializeturn text into data; turn data into text
querya request to a database
indexa pointer in a database that speeds up searching
migrationa change to the database's structure
transactiona group of changes, all or nothing
CRUDcreate, read, update, delete
CORSthe browser rule about requests to another address

Frontend

WordWhat it means
frontend, backendwhat the user sees; what runs on the server
DOMthe tree of a page's elements in the browser
componenta piece of interface with its own code
propsdata passed into a component from outside
statedata a component holds itself
renderdraw, build the interface
hooka React function named useSomething
effectsomething done on the side: a request, a subscription, a timer
layouthow the elements are arranged
responsiveadapting to the width of the screen
viewportthe visible area of the screen
bundlethe built file holding the page's whole code

Process and tools

WordWhat it means
repository, repoa project with its history of changes
commitone recorded change
branch, mergea parallel line of work; bringing it back together
diffthe difference between versions
pull requesta proposal to merge changes in
rollback, revertgoing back to how it was
dependencysomebody else's library your code needs
lock filea file with the exact versions of the dependencies
environmentthe set of settings a program runs with
buildturning sources into something that runs
artifactwhat comes out of a build
deployputting it on the server
rolloutreleasing a new version gradually
lintera program that looks for suspicious places in code
refactoringreworking code without changing its behaviour
legacyold code that is frightening to change
technical debtdeferred decisions, and their interest

About AI

WordWhat it means
prompta request to the model
context, context windowwhat the model can see now; how much fits
tokenthe chunk of text the model counts volume in
hallucinationsomething invented: a function, a link, a fact that doesn't exist
temperaturehow varied the answers are
fine-tuningfurther training a model on your own data
agenta mode in which the model runs commands itself
system prompta standing instruction set before the conversation