News for hackers. Stuff that matters.
Re:How to Design Software Good by mafro on Thursday November 08, 2018 @09:21PM (#18411917)
Once upon a time, the whole internet was going to be built this way!
Re:How to Design Software Good by nothrabannosir on Friday November 09, 2018 @05:23AM (#18413533)
Client side XSLT has one terrific advantage : it allows splitting up a page into dynamic and static parts. This allows you to cache almost-static-but-not-really pages very efficiently. E.g. a news paper front page with a “logged in as…” section top right, but otherwise equal content. Or HN comment pages for logged in users, which currently are uncached and can cause quite heavy load on the server for heavy threads, simply by virtue of people viewing it. I remember a situation where they explicitly asked: please log out when viewing this comment page—that shouldn’t be necessary.
Re:How to Design Software Good by bjoli on Friday November 09, 2018 @03:19AM (#18413047)
I still think client side XSLT is a good thing. I write simple documents and it is automatically converted client side. The world's best static site generator.

I gives me the best of two worlds: simple markup with complete control of output and CSS styling and instant changes of all documents without a compilation step.

Re:How to Design Software Good by dionidium on Friday November 09, 2018 @10:45AM (#18415220)
XSLT got an unfair shake. Yes, XML is ugly, and verbose, and painful to write code in, but the ideas were very good. Most users never understood the processing model or the declarative/functional nature of XSLT, and so tried to write procedural code with it, with predictably nasty outcomes (hint: <xsl:if> is almost always a code smell). But those who did get it, could use it to write some pretty elegant little programs.
Re:How to Design Software Good by tonyedgecombe on Friday November 09, 2018 @03:57AM (#18413196)
I liked XSLT for XML to XML but using it for creating HTML was a nightmare.