As you can probably tell, I’ve been out of the loop for a while. I haven’t been feeling up to doing much in the past few weeks other than work and some gaming. This is an article I’ve been meaning to get to for some time: actual discussion of programming languages.
This website is a lot more generalized that the name implies. Originally the site was intended to be called jrConway Programming and Development; this would’ve probably fit better, and there are more steps to development than just programming. Most of what I have discussed so far is about things related to programming, such as creating a website using a web application; a content management system.
Programming is a fairly broad term, and there are many mixed feelings as to what constitutes actual programming and a full-on programming language. There are also computer languages related to programming, but they aren’t specifically programming languages persay. Let’s start by discussing markup.
A markup language is used to format data in an orderly fashion. When you’re building a basic website, you’re not really programming, you’re using markup (HTML) and c
ascading style sheets (CSS) to format the markup. Obviously, this is not considered programming, so markup is not a programming language. Markup is often affected by programming languages, though.
Just of note, the screenshot above is of this theme’s header file located on Github. You can see some PHP tags in there which appear to be markup, but they are not mark markup at all, so don’t mistake PHP for markup. Several progr
amming languages can be inserted into HTML such as PHP and ASP, but that’s only a few things here and there; most PHP code is all stored in separate files.
Although many would argue this with me, a scripting language is merely a type of programming language. Typically, when writing out code it is considered a script if it is under a few thousand lines of code. It is very, very difficult to accurately describe a true scripting language, and reading up articles online, the lines between scripting and programming languages are really blurred so much that it really comes down to personal preference.
Some argue that scripting languages must be compiled. A question I found on StackOverflow addresses this issue quite a bit. Numerous comments throughout the article describe the situation. Languages that are traditionally compiled are often called programming languages, and languages that are traditionally interpreted are called scripting languages. However, any of these languages can be either compiled or interpreted, so there’s really no different whatsoever between scripting and programming languages.
So What Constitutes a Programming Language?
This has been a hard question to find an accurate answer to. At least for trying to back up my evidence with facts online. From what I know, though, programming languages have to have logic. You have to be able to perform mathematical calculations, run loops, make conditional branches, and store variable, among other things. Believe it or not, there’s a startling number of people who honestly believe that html is a programming language.
Can HTML run loops? Can HTML create variables? Can HTML perform mathemetical calculations? Can HTML process data from its own inputs?
The answer? No to all of the above.
If you want to run loops in HTML, you have to use PHP or ASP. Both can be used to create variables and reuse them as well. HTML has input forms, but HTML cannot use them; the only way to use them is to process the form data in either PHP or ASP, or even other server-side programming languages.
After searching I finally found what I was looking for; TIOBE’s list of the most popular programming languages. Trying to find an irrefutable source unfortunately has been cumbersome, and some lists I’ve found even list SQL and HTML in the lists of top ten programming languages! Yeah, I love both HTML and SQL, and they’re incredibly useful languages for creating websites and web applications. But they’re NOT programming languages no matter how much you want them to be.
As for scripting languages… there are numerous debates about it, but the general consensus is that they are programming languages. In fact, there’s not much different between scripting languages and programming languages other than how they are traditionally used; interpreted or compiled. Both can be interpreted or compiled, though. And all programming languages are made for specific purposes.