XML over CSS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Marston

    #16
    Re: XML over CSS


    "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message
    news:sNedncBMW_ L_4G7dRVn-ug@comcast.com. ..[color=blue]
    >
    > "Chris Hope" <blackhole@elec trictoolbox.com > wrote in message
    > news:1089607523 _1604@216.128.7 4.129...[color=green]
    > >It depends how you code your PHP. But generally when people code the HTML
    > >output in the PHP you often end up with a lot of HTML and PHP being mixed
    > >up together with database calls in the middle of the HTML output. There's
    > >not necessarily anything wrong with this (and I've done it plenty of[/color][/color]
    times[color=blue][color=green]
    > >in the past) but it is nice to separate that stuff from the output. Using
    > >XML/XSL enforces the separation.[/color]
    >
    > Well, if you look at it from the another prospective, a technology that
    > forces you to do things in a certain way takes away flexibility.[/color]

    That is true, but there are supposed to be trade-offs. In order to provide a
    RAD (Rapid Application Development) environment you need to make as much use
    of reusable code as possible. This gives you speed of development as you
    don't have to rewrite the same code each time. The trade-off is that when
    you use a resuable module you are stuck with what that reusable module does
    or the way that it does it. If you want to do something different to have to
    write a new module. So there is a trade-off between reusability and
    flexibility. The trick is to provide modules that combine both, but not many
    programmers can do that.
    [color=blue]
    > It's worth remember that while it's nice to separate logic from
    > presentation, that in itself is not the goal, or even a goal. The[/color]
    objective[color=blue]
    > of programming is to create software that does something useful. An[/color]
    obvious[color=blue]
    > truth but a surprisingly large number of those in our field seem not to
    > understand it. A lot of beginners, espeically, suffer from what I call the
    > "CS syndrome." They just sit around trying to come up with code that
    > demostrates a particular technique, technology, or principle--precisely[/color]
    the[color=blue]
    > kind of code that you find in programming books.[/color]

    How true. What is even worse is that some senior programmers follow a
    technique or paradigm with almost religious zeal. They think that their way
    of doing it is "the only true way" and that anyone who attempts to adopt an
    alternative method is a heretic. Their approach is dogmatic (follow the
    rules and damn the result) whereas mine is pragmatic (achieve a result
    regardless of the rules).

    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




    Comment

    • Chung Leong

      #17
      Re: XML over CSS

      "Tony Marston" <tony@NOSPAM.de mon.co.uk> wrote in message
      news:cd0b53$h76 $1$8300dec7@new s.demon.co.uk.. .[color=blue]
      > That is true, but there are supposed to be trade-offs. In order to provide[/color]
      a[color=blue]
      > RAD (Rapid Application Development) environment you need to make as much[/color]
      use[color=blue]
      > of reusable code as possible. This gives you speed of development as you
      > don't have to rewrite the same code each time. The trade-off is that when
      > you use a resuable module you are stuck with what that reusable module[/color]
      does[color=blue]
      > or the way that it does it. If you want to do something different to have[/color]
      to[color=blue]
      > write a new module. So there is a trade-off between reusability and
      > flexibility. The trick is to provide modules that combine both, but not[/color]
      many[color=blue]
      > programmers can do that.[/color]

      Reusability is great of course. What people consistently fail to understand
      is that it takes considerable effort to make code reusable. That includes
      testing and documentation. I simply love the application framework in
      Delphi, for example. And even some of Microsoft's stuff impresses me
      sometimes. In these instances the companies made serious investment into
      creating APIs that are programmer-friendly. That was the focus of the
      designers/programmers. The notion that some alone programmer, while coding
      some website, can somehow come up high-quality reusable code is unrealistic
      and contrary to my own experience
      [color=blue]
      > How true. What is even worse is that some senior programmers follow a
      > technique or paradigm with almost religious zeal. They think that their[/color]
      way[color=blue]
      > of doing it is "the only true way" and that anyone who attempts to adopt[/color]
      an[color=blue]
      > alternative method is a heretic. Their approach is dogmatic (follow the
      > rules and damn the result) whereas mine is pragmatic (achieve a result
      > regardless of the rules).[/color]

      Form follows function. The end ususally suggests the means. The trick is to
      know what you're trying to accomplish and not lose focus on that. Far too
      many programmers develope in a backward manner, coming up with the solution
      before they know what the requirements are. Not unlike the actions of a
      certain head of state: "we have to invade Iraq! Why? Because invading Iraq
      is the thing to do."


      Comment

      Working...