A new build system?

Programming, for all ages and all languages.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: A new build system?

Post by earlz »

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.
dude101
Member
Member
Posts: 56
Joined: Thu Apr 09, 2009 10:26 pm

Re: A new build system?

Post by dude101 »

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.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: A new build system?

Post by JamesM »

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.
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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: A new build system?

Post by Solar »

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.
Every good solution is obvious once you've found it.
dude101
Member
Member
Posts: 56
Joined: Thu Apr 09, 2009 10:26 pm

Re: A new build system?

Post by dude101 »

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.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: A new build system?

Post by JamesM »

I beg to differ.

HTML is a markup or declarative language, which is a subset of "programming languages".
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: A new build system?

Post by JohnnyTheDon »

Wikipedia wrote:In computer science, declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow.
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.

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.
User avatar
Combuster
Member
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?

Post by Combuster »

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. :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: A new build system?

Post by JamesM »

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.
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: A new build system?

Post by JohnnyTheDon »

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).
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: A new build system?

Post by JamesM »

Hmm, It seems I missed one keyword; in the description it describes SGML as a declarative language, not a declarative programming language.


Thanks, combuster ;)
Post Reply