3 ms·
Did I suggest mixing presentation and business logic anywhere? My point was that forcing textual representation and another syntactic layer for presentation log
by keymone 9y ago
Did I suggest mixing presentation and business logic anywhere? My point was that forcing textual representation and another syntactic layer for presentation logic is unnecessary and harmful.
- emodendroket 9y agoOK, but I don't agree. I think it is valuable to separate your template and behaviors associated with it for exactly the same reasons.
- keymone 9y agoit is valuable to separate, but why is it valuable to force a different syntactic layer, often with heavy constrains on what logic can be expressed which inevitably leaks back into various helpers implemented in the layer you've just separated yourself from? why is it not better to separate using mechanics native to your language?
- emodendroket 9y agoBecause what happens otherwise is you eventually end up with a whole program written in your templating language.
- keymone 9y agoTemplating is a bad term, it implies string generation, which is only a subset of what presentation logic is or is about. Taking that into account - if your presentation language is your program's language - I don't see the problem.
- emodendroket 9y agoBut that is my whole point. I want templates separate from the rest of the presentation logic, not interleaved with it.
- keymone 9y agotemplates are presentation logic.
- emodendroket 9y agoThat is why I said I wanted them separate from "the rest of the presentation logic" and not "the presentation logic."