|The One Addition That Would Make HTML5 Great|
|Written by David Conrad|
|Friday, 13 January 2012|
Page 2 of 2
So when you use a tag <MyObject> what happens is that the instantiator calls MyObject() and when you use:
the instantiator does:
You can work out the other details, like how properties are intialized and so on.
The benefits of .jsp
Personally I prefer the option of loading a .jsp page because it makes it so much easier to do away with markup altogether for any programmer wanting to work in code. After all if HTML is just an object instantiation language then the same job can be done in code and the markup isn't necessary if you don't want to use it.
At this point you might be fuming and saying that HTML is a pure semantic markup language. Don't worry it still can be for those who want to think that this is what it is. There is no reason the CSS shouldn't continue to work in exactly the same way as it does now and in fact for those who want to ignore the changes nothing has changed.
There is another reason you might be fuming. There is a clear case that I have just stolen all of this from XAML and other instantiation languages. True, I admit it; this is not a particularly original idea. What I am trying to point out is that we can make the change to HTML to make it an object-instantiation language with virtually no impact on the way it is used now and with every impact on the way it is used in the future.
It seems to me that it is all win and if we make this one change HTML will be a fit tool for constructing apps without damaging its layout abilities or its theoretical purity.
So let's start lobbying WhatWG and W3C and ...
Let's try and make HTML and the web a better place for programmers.
HTML - is it really going to hack it?
HTML5 - I've seen it. It's rubbish.
or email your comment to: email@example.com
To be informed about new articles on I Programmer, subscribe to the RSS feed, follow us on Google+, Twitter, Linkedin or Facebook or sign up for our weekly newsletter.
|Last Updated ( Friday, 13 January 2012 )|