On Thursday, October 3, 2002, at 10:42 PM, Puneet Kishor wrote:

> if you were to think of it as a web application development IDE...

If you were to do that, you'd be setting yourself up for a lot of pain 
and frustration.

The fact is, GoLive's support for PHP, ASP, et al panders to the 
expectations of designers who want to dabble a bit with programming by 
starting with a scripting language that's primarily embedded in HTML. 
The fact that it does so should not be taken to mean that using a 
wysiwyg editor to edit programming code will be beneficial to either 
your productivity or to your sanity in the long run.

> that, seriously, is a matter of choice. *shouldn't* is a strong word...

Yes, it is a matter of choice. If you choose to embed HTML in your Perl, 
or vice versa, you won't be getting a midnight call from the Programming 
Police. No one will revoke your license to write Perl.

However, the idea of separating logic from presentation is fundamental. 
It's viewed as a good thing by most professional programmers, whether 
they're working on a web site with HTML, or on a native Windows or Mac 
application that uses the Model-View-Controller design pattern.

>  unless I am developing a text-oriented, blogging kinda tool, or a 
> template driven "news site", much of the time my html code itself is 
> governed by some server-side logic...

Parts of the page are usually generated dynamically, true, and there's 
no getting around having some small bits of HTML embedded in your Perl 
code. Just because you can't get 100% perfect separation, however, is no 
reason to abandon the idea entirely.

> Of all the applications I have worked on to-date, I really can't think 
> of a single one where I could have successfully separated the logic 
> from the presentation, programming from the html-ing, no matter how 
> good a practice it is supposed to be.

Of the applications I've worked on, virtually all of them were template 
based. Here are some of them:

<URL: http://pbskids.org/lions/games/unlimited.html>

Not exactly what I would call "text-oriented blogging" or a "news site."

sherm--

Reply via email to