A new build system?
Re: A new build system?
Well, I'm still going to try to make it. I've discovered a way to make parsing of the language quite easy.. So I figure it's worth a shot, I plan for it to be usable within 2 weeks, and capable as a full build system in a month or two.
Re: A new build system?
JackScott wrote:I meant the HTML part. Or the CSS part.
Javascript is fairly C-like as well, from my limited experience with it.
HTML isn't a programing language. Thats like saying .docx is a programming language. Its just a document format.
Re: A new build system?
Just because it isn't imperative does not mean it is not a programming language. HTML and other SGML derivatives use tags to describe what should be done - not how to do it, which is what an imperative language would do.dude101 wrote:JackScott wrote:I meant the HTML part. Or the CSS part.
Javascript is fairly C-like as well, from my limited experience with it.
HTML isn't a programing language. Thats like saying .docx is a programming language. Its just a document format.
Re: A new build system?
Erm...
I like being generous to the urchins on the block. But by no stretch of the imagination is HTML a programming language, imperative or otherwise.
There is no input to HTML (other than its own source), and it cannot do computations of any kind. No programming there.
I like being generous to the urchins on the block. But by no stretch of the imagination is HTML a programming language, imperative or otherwise.
There is no input to HTML (other than its own source), and it cannot do computations of any kind. No programming there.
Every good solution is obvious once you've found it.
Re: A new build system?
Solar wrote:Erm...
I like being generous to the urchins on the block. But by no stretch of the imagination is HTML a programming language, imperative or otherwise.
There is no input to HTML (other than its own source), and it cannot do computations of any kind. No programming there.
Exactly, HTML is a document format like .doc or .xls.
Re: A new build system?
I beg to differ.
HTML is a markup or declarative language, which is a subset of "programming languages".
HTML is a markup or declarative language, which is a subset of "programming languages".
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: A new build system?
HTML contains no computation, only information and a description of how to display it. One could argue that it expresses the logic of how to compute the display of that data, but then any format that contains formatting information would be a declarative programming language.Wikipedia wrote:In computer science, declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow.
A much closer match would be markup language:
Wikipedia wrote:A markup language is a set of annotations to text that describe how it is to be structured, laid out, or formatted.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: A new build system?
JohnnyTheDon +1 for that.
Also, declarative language is not equivalent, nor a subset of a Declarative programming language.
Not to mention, you automatically fail as a software developer when you tell your employer you can "program" html.
Also, declarative language is not equivalent, nor a subset of a Declarative programming language.
Not to mention, you automatically fail as a software developer when you tell your employer you can "program" html.
Re: A new build system?
Looks like you guys can't read, so I'll just paste the relevant sections here (credibility of wikipedia is a different question):
Declarative programming is often defined in a number of ways:
...
# A program that describes what computation should be performed and not how to compute it
...
Many markup languages such as HTML, XAML, XSLT, SVG or other user interface markup languages are often declarative. HTML, for example, only describes what should appear on a webpage.
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: A new build system?
I would disagree, but since we're arguing semantics there is no real way to be completely 'right'.
The problem with calling HTML a declarative programming language is that it brings too many other things into the category. For example, if HTML is declaractive then the BBCode I am using to write this post is also a declarative programming language. In fact, I would go as far to say that any text would be a declarative programming language if HTML is included because it tells the computer what letters to display, what order to display them in, and where to put spaces, returns, etc. (though that may be stretching it).
The problem with calling HTML a declarative programming language is that it brings too many other things into the category. For example, if HTML is declaractive then the BBCode I am using to write this post is also a declarative programming language. In fact, I would go as far to say that any text would be a declarative programming language if HTML is included because it tells the computer what letters to display, what order to display them in, and where to put spaces, returns, etc. (though that may be stretching it).
Re: A new build system?
Hmm, It seems I missed one keyword; in the description it describes SGML as a declarative language, not a declarative programming language.
Thanks, combuster
Thanks, combuster