|
You are right. You could write some code in C++ which shows a foramtted text or write a HTML snippet of code which does the same, but C++ is an imperative language and HTML and even XML are declarative languages, and voters could count them as programming languages.
|
|
|
|
|
It's gotta have the ability to perform some algorithm. This means logic structures like "if", loops, decision making. HTML has none of that. You can't write a program in HTML. You need a programming language to do that, not a layout or formatting language.
Sure, HTML is a language, but not a programming language. To have logic in a web page, you have to use JavaScript to make it "do stuff" (with a few, small exceptions with CSS maybe). Otherwise, it just sits there, looking pretty.
Same is true for XML. It's a data language, not a programming language.
The poll is about programming languages, not all computer languages, which knocks out a considerable amount of languages from consideration in this specific poll.
My "monthly" programming languages:
- C#
- VB.NET
- Write stored procs in MS SQL and Oracle SQL (I could count those as 2 languages, but I don't).
- JavaScript
I could have counted the following if the poll was about computer languages:
- HTML
- XML
- CSS
- Plain SQL (just writing queries, not stored procs)
So, even though I use 8 languages every month, only 4 of those are programming languages, so my vote in the poll was "4-5". I was also careful not to count the many languages I've used over the years and the new languages I'm experimenting with, because I don't use them currently on a regular, monthly basis. I think some people have counted every language they've ever written a line of code for in their life (whether or not it was a programming language or not).
But, HTML is not a programming language by any stretch of the imagination. That's a mistake that some newbs make, but not experienced developers.
|
|
|
|
|
I use C# and C++
Rarely use C
So therefore... To C or not to C
|
|
|
|
|
I use C# mainly, but there has few other also. Like VB6/VBA, ASP.Net with C#, SQL, ActionScript, Java Script and very rarely VB.Net also.
Suman
|
|
|
|
|
C++ , C# , SQL and VHDL give me all I need. I hadn't taken SQL into account so I selected 3, though.
EDIT: I also use Befunge for advanced parallel processing from time to time, but it is not on the Wikipedia's listing. What an unfairness...
Greetings - Jacek
|
|
|
|
|
The most popular choice is 4 to 5? Really? I use just one, C#, and SQL but that doesn't count.
I would have thought most people would be the same. Are you sure you're not just showing off?
Regards,
Rob Philpott.
|
|
|
|
|
T-SQL was listed as a language, so that's 2. I regularly use just C# and T-SQL as well.
|
|
|
|
|
Rob Philpott wrote: I would have thought most people would be the same. Are you sure you're not just showing off?
Depends on what you do, really. At my previous job I was regularly using:
C++ for server-side code
VBA for the MS Word client side (yes, our client app was MS Word )
Javascript - for browser scripts
plus non-programming languages such as HTML, XML, SQL...
Occasionally, I was also using some C# for automated tests and reading some Python code.
Nowdays it is mostly C++ plus occasionally some Perl.
|
|
|
|
|
Given that in the course of a normal week I use or have to work with C#, VB.net, JavaScript, T-SQL, PL-SQL for just web development I am not surprised to see 4 to 5 being the most popular.
In my case it is actually higher as I work with systems that are written in VBScript (as well as an derivative of ECMAScript) and even develop on 4D databases using its internal language.
As to SQL not counting, that is correct but the procedural based extensions do count. <attempts to dodge incoming flames>
|
|
|
|
|
I want to know who uses 31 or more!
Mark D. Collins
|
|
|
|
|
What's more there are 4 of these idiot voters so far
|
|
|
|
|
SQL is a programming language. It may not be general-purpose or Turing complete, but, in my opinion, that doesn't matter.
|
|
|
|
|
I beg to differ. I think a language must be Turing complete before it's promoted to a programming language. What's the point if there are things you just can't do with it...?
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
Jörgen Sigvardsson wrote: here are things you just can't do with it...?
That's what BASIC is for...
(ducks for cover)
|
|
|
|
|
PIEBALDconsult wrote: SQL is a programming language
Ain't. It is a query language.
PIEBALDconsult wrote: It may not be general-purpose or Turing complete, but, in my opinion, that doesn't matter.
It matters
|
|
|
|
|
"Computer programs (also software programs, or just programs) are instructions for a computer." -- Wikipedia
That's not a very good definition (as I recall, my early teachers also included things like "step-by-step" etc.), but it gets the idea across.
SQL is a language for specifying instructions to a computer -- as far as I'm concerned, that makes it a programming language.
|
|
|
|
|
PIEBALDconsult wrote: That's not a very good definition
There we agree...
PIEBALDconsult wrote: SQL is a language for specifying instructions to a computer -- as far as I'm concerned, that makes it a programming language.
HTML also specifies instructions to a computer - how to render a web page. Does it make it a programming language?
Or how about RTF - also a set of instructions for a computer, but I don't know anybody who would call it a programming language.
One way or another, there must be some well-defined line that divides programming languages from "the rest of the world", and that line is Turing completeness. Standard SQL is not Turing complete, therefore it is not a programming language. PL/SQL and T-SQL are Turing complete and they are programming languages.
|
|
|
|
|
Documents written in HTML, XML, RTF, etc. are data, not programs.
Nemanja Trifunovic wrote: that line is Turing completeness
I just don't see it that way nor any reason to define it like that.
Nemanja Trifunovic wrote: PL/SQL and T-SQL are Turing complete
Then you may assume that when I say "SQL" I am referring to the SQL-92-compliant parts of PL/SQL and T-SQL.
|
|
|
|
|
|
Only select is a query.
Insert, update, delete, create, drop, truncate, alter, etc. are not queries; they are program statements.
|
|
|
|
|
OK, to end this (very interesting ) discussion, I suggest you take a look at the SQL Standard[^]. You'll notice that SQL is called "Database Language SQL" and if you scroll down to chapter 4.20, you'll see how SQL interfaces with "standard programming languages". I guess you can make a case that SQL can still be called a "non-standard programming language" but the SQL standard itself never does that.
|
|
|
|
|
Well then that changes my answer to 2 if you leave out scripting languages like sh.
John
|
|
|
|
|
What? No. I didn't say that scripting languages aren't programming languages.
|
|
|
|
|
I should have clicked the link before answering..
C++
SQL
sh
bash
awk
sed
John
|
|
|
|
|
It's easy!
1. c++ - app dev
2. perl - scripts
web dev:
3. php
4. sql
5. javascript
doesn't include c#, java, asp used on occasion.
such fun - I'm glad to have autocomplete.
cheers
|
|
|
|