r/computerscience • • Nov 10 '25

General What can be considered a programming language?

From what I know, when talking about programming languages, we usually mean some sort of formal language that allows you to write instructions a computer can read and execute, producing an expected output.

But are there any specific criteria on here? Let's say a language can model only one single, simple algorithm/program that is read and executed by a computer. Can it be considered a programming language?

By a single and simple algorithm/program, I mean something like:

  • x = 1

or, event-driven example:

  • On Join -> Show color red

And that's it, in this kind of language, there would be no other possible variations, but separate lexemes still exist (x, =, 1), as well as syntax rules.

45 Upvotes

66 comments sorted by

View all comments

2

u/Mission-Landscape-17 Nov 10 '25

Not all programming languages are general purpose. some can be very narrowly defined for solving proplems in a spegific domain. For example cascading style sheets I. A domain specifim language for styling web pages. you can't really do anything else in it.

1

u/meat-eating-orchid Nov 10 '25

But css is not a programming language, it is a style sheet language

2

u/Mission-Landscape-17 Nov 10 '25 edited Nov 10 '25

Potato potahto

It has conditionals, loops, variable, datatypes and expressions. At this stage its a proramming language. You'dbe surprised how much interactivity you can get into a website with just html +css and no javascript.

→ More replies (1)