r/ProgrammerHumor • • Jun 01 '23

Meme HTML is not a programming language

Post image
9.1k Upvotes

500 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jun 01 '23 edited Jun 01 '23

Let's say we write a Spring Boot REST service that grabs some JSON from some other API, filters it, manipulates it, and returns the resulting data as JSON. If we're using Lombok/Mapstruct/etc, this program would boil down to defining two DTOs, writing a mapper between them, then just adding some simple JAX-RS annotations to define what the REST service and client are doing. This is analogous to defining a table (DTO), a view (DTO and mapper), writing a table insert statement (REST client), and writing a view select statement (REST server).

It feels extremely arbitrary to say that the first is programming and the second isn't. I think it's also relevant that the "query language" portion of SQL is only involved in the view select statement, and partially in the view DDL.

Your argument also seems to be heavily implying that declarative languages aren't programming languages. I don't think this is accurate, as it excludes the Lisp family of languages. It also excludes functional programming paradigms which are definitely declarative, even though they can be and are used in languages you described as imperative/procedural. In fact, functional programming with streams would likely be the best way to write the REST server JAX-RS method in the above example.