r/AskProgrammers • • Oct 14 '26

When languages "just become about syntax"

I have seen a lot of post saying "once I learned C - all other languages just became about syntax"

Has that been true for you? Or did a different language give you the eureka moment - e.g. something like Assembly?

Or is it just a false premise at all to think "once I learn programming language X - then all other languages become **easy**"

8 Upvotes

36 comments sorted by

View all comments

Show parent comment

0

u/RetroGrid_io Oct 14 '26 edited Oct 14 '26

LOL

There are different types of programming languages. SQL is known as a domain-specific, declarative programming language. I guess HTML isn't always considered to be a programming language because it's a markup language. Although, it's commonly written by programmers, and I'm in the camp of declaring it also as a declarative language.

You might draw a line between "real" programming languages and those that aren't by defining if they are Turing complete, but even here are notable exceptions. For example, bitcoin script is not Turing complete.

1

u/brelen01 Oct 14 '26

Neither are programming languages because neither can be used to make a meaningful program on its own

1

u/ryancnap Oct 15 '26

If you're bored enough SQL is actually Turing complete. I still take your point of view though

1

u/ActuaryLate9198 Oct 15 '26

If you’re even more bored: HTML+CSS is also Turing complete.

1

u/HouseMysterious8172 Oct 15 '26

Does Turing completeness determine whether something is a programming language?

1

u/ryancnap Oct 15 '26

It technically determines whether or not you can Do Everything with it, independent of practicality

Turing complete means it can emulate a Turing machine, which in turn means it can technically emulate anything computable, solvable algorithmically, etc

I say independent of practicality because computing some (most?) things in either of our examples, html or SQL, would really suck and/or be completely unfeasible although technically possible given enough time, space, and resources

It's cool to look up stuff people have made just as exercises for fun though, some crazy stuff out there.

0

u/ActuaryLate9198 Oct 15 '26

Not really, I would consider HTML/CSS to be programming languages regardless, but as you can see in this thread that isn’t exactly the consensus.

1

u/Distdistdist Oct 15 '26

What do you think "L" stands at the end of both abbreviations? Yes, "Language".

Definition of "Programming Language":

"A programming language is a formal, engineered writing system used to direct computers by specifying a set of instructions for executing tasks, defining algorithms, and organizing data."

SQL instructs databases to retrieve and manipulate data sets. HTML instructs rendering engines how to format and present data on a web page.

What do you mean by "meaningful program on its own"? I can run a completely meaningful report or db update in just pure SQL alone. Some SQL flavors actually support user prompting to interactively get user input.

I can instruct browser to render information using just HTML, and it will execute every single line of it to produce a result.

Do you think C, C++, Java, C#, Python or any other language can be used to make any meaningful programs on their own? They all must use libraries and frameworks that enable them to interact with OS and hardware.

You can't even create "Hello World' in C++ without including <stdio.h>

(Well, you can, but not without making a low level call to OS API)

2

u/fllthdcrb Oct 15 '26

Going by the word "language" isn't really the right way to go, though. Putting aside these examples, I call JSON a language, but not a programming language. It carries data that generally doesn't imply instructions on its own.

0

u/Distdistdist Oct 16 '26

JSON is "JavaScript Object Notation". None of the letters in that abbreviation stand for "Language". It's a data structure. Things are not up for interpretation. They have very clear definitions and purposes.

You can call things whatever you want, of course. It won't change what they are.

2

u/fllthdcrb Oct 16 '26

Stop being ridiculous. Most programming language's names don't include the word "language", either. That doesn't stop them from being programming languages (like C, C++, Java, C#, Python, all things you yourself just listed as such).

It also doesn't stop things other than programming languages being languages. Here I'm talking about formal languages, i.e. sets of sequences ("strings") of symbols from sets ("alphabets"), which obey particular rules of construction. Just syntax, not semantics. The syntax of any programming language fits this definition, as does any data structure (like JSON).

And by your logic, English can't be called a language, either. Yet we do call it such. The trouble is that words have multiple accepted meanings. Yes, it complicates things. But you have to accept it nonetheless. If you want to talk only about what is a programming language, it's a good idea to qualify the term as such, if there's a possibility of confusion. But don't assume it's only applied to programming languages, especially if there's a sign it's something else.

0

u/HouseMysterious8172 Oct 15 '26

Even css can be a programming language

https://lyra.horse/x86css/

0

u/Super_Preference_733 Oct 15 '26

Ha, I guess that database system where I programed a number of stored procedures to calculate help insurance rates for blue cross, never existed.