View Full Version : Markup or Programming Language???
Makeup or Programming Languages???
Hi masters,
Languages like HTML,XHTML,XML,XSL is a markup or programming language.
Some teaching books or sites insist on saying they are makeup ones.
Thank you for valuable right info.
----------------------------------------------------
I'm studying safely @ CF
I'm back and forth to CF for my life. (http://icebergz.biz.ly)
Learning IT is a life-time ongoing process.
redoc
02-23-2005, 04:48 AM
Do, by makeup, you mean markup? These languages are markup languages, in the fact that they format data. They are not executable. Hope that helps
tboss132
02-23-2005, 08:05 AM
They are markup languages. They contain instructions to the browser on how to display the page. Programming languages can be compiled and they can perform calculations and stuff. Markup languages can't - unless you use a script in them. See this (http://www.cs.tut.fi/~jkorpela/prog.html) page for more information.
whackaxe
02-23-2005, 11:02 AM
-markup is used to store data
-programming is used to treat data
thats how i always looked at it (if you consider XML the base of markup)
liorean
02-23-2005, 11:13 AM
Programming languages have some traits:
- Deals with processing
- Can handle logic
- Can handle conditionals and looping
Markup languages:
- Deals with data and structure, but not processing
- Can't handle logic
- Can't handle conditionals and looping
mattyod
02-25-2005, 10:49 AM
I hope I'm not being to obvious here but once you understand the differences as explained above the biggest clue is in the name....
xml = eXtensible Markup Language
html = HyperText Markup Language etc.
Sort of ends any debate on the matter.
XSLT is Turing-complete (see here (http://www.unidex.com/turing/utm.htm)), however, which makes it possible for XSLT to solve any computational task, making it a programming language, built upon markup. :)
The lines are not always so clear, as one can see.
bcarl314
02-25-2005, 06:52 PM
Mmmm, fuzzy grey lines all over the place.
Here's a question:
Isn't markup a set of instructions which tells a parser how to render a page?
If one were to define a "program" as a "Set of instructions designed to execute a specific task", then I think you can call markup a programming language.
OTOH, if you were to follow liorean's definitions
Programming languages have some traits:
- Deals with processing
- Can handle logic
- Can handle conditionals and looping
Markup languages:
- Deals with data and structure, but not processing
- Can't handle logic
- Can't handle conditionals and looping
Then traditional HTML is NOT a programming language.
Looking further at the debate, we have this...
[quote]
-markup is used to store data
-programming is used to treat data
[quote]
Is a .csv file markup? By that definition, it would be. I hardly consider a .csv file "mark up" as I think of markup as a set of instructions for organizing data. It, by itself, does nothing, but needs a parser to work. Just the same way a c, c++ or java script does nothing with out an interpreter or compiler. So, what is a program???
mattyod
02-26-2005, 01:14 PM
Would it perhaps be fair to say that Mark Up languages are a form of programming that deal specifically with data & it's structure/presentation?
As they still pass instructions to a processor.
ReadMe.txt
02-26-2005, 01:19 PM
Would it perhaps be fair to say that Mark Up languages are a form of programming that deal specifically with data & it's structure/presentation?
As they still pass instructions to a processor.
no they dont, the parsers for these markup languages do.
liorean
02-26-2005, 01:43 PM
As I said, requirements for something to be a programming language is that it can handle logic, that it can handle conditional processing, and that it can somehow repeat processing. XHTML cannot do those things, and is an XML format. XSLT can do these things and is an XML format - XSLT is a programming language that uses XML syntax. That's not strange - source code is data, and XML is one way of representing data. If you wish, you can make an XML syntax for any programming language. You just need to build the AST (Abstract Syntax Tree if that helps explain the concept) from an XML structure instead of parsing from the original format.
Puffin the Erb
02-26-2005, 07:26 PM
Just to add.....
A mark-up language is not a programming language, it has no concept of aspects such as data types or logic, it just marks up content.
A stand-alone application, such as a Web browser, which is written in a programming language, processes the content based on the way that content is marked-up.
Scripting languages can exist within the stand-alone application - for example JavaScript - these add functionality ( for example the ability to dynamically manipulate the mark-up ) without the complexity of the full-blown language used to create the stand-alone application.
Although we often hear people describe themselves 'HTML programmers' I would say this is oxymoronic.
codegoboom
02-26-2005, 09:30 PM
I think it's a matter of perspective; if one chooses to think of it as programming, then that's just what it is; there's no harm in that, as organizing contracts between the markup and manipulation of it can be a complex process at either end. :)
Furthermore, the UI is the program, as far as the user sees, and the structuring of markup can certainly simplify the user experience, by masking underlying complexity. In that respect, markup is an aspect of programming, or of factoring programs to a higher level of abstraction.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.