By fifthposition
via wordpress.transentia.com.au
Published: Feb 04 2010 / 12:30
![]() | |
| BIRT 3.7 | |
| Written by: Michael Williams | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By fifthposition
via wordpress.transentia.com.au
Published: Feb 04 2010 / 12:30
Comments
a1programmer replied ago:
What a joke! lol.
paulk_asert replied ago:
In what way?
a1programmer replied ago:
You know, when I first saw this, the code used to generate that output is so ugly, I did not think the author was being serious... I thought that it was someone being sarcastic.
Generating HTML from code should be highly avoided if possible.
paulk_asert replied ago:
It may seem a little ugly. What's not obvious at first glance is that the example is somewhat of a unit test. Showing every possible combination of syntax, e.g. every String type, every option possible even when not needed. As the author says, it was an “external brain dump” type of post - one that you can come back to and look up the one style you need for your task at hand. Re "avoiding generation of HTML" if possible, well I would say that it needs to be looked at on a case by case basis. We have some sites where duplication is reduced by several orders of magnitude by using generation: sometimes templates, sometimes code such as shown for this article. Unless I got paid by the hour to write HTML and had a gullible and wealthy customer, hand writing HTML wouldn't even be a starter for some of these systems.
Disclaimer: I didn't write the blog but do know the author.
Voters For This Link (11)
Voters Against This Link (1)