Hacker News new | ask | show | jobs
by williamdclt 51 days ago
> If you enable templating devs are then going to ask for more

This might be the worst argument for anything I've read this week, there's got to be a name for this logical fallacy

2 comments

No

It's a repeated observation that keeps coming true. DSLs have a tendency to become turing complete over time.

- It happened to wikipedia's templating language

- It happened to PHP

- It happened to mod_rewrite

- It happened to server-side includes

- etc...

It just keeps happening.

In fact it's such a problem with infrastructure teams that use yaml/json configs that you see a lack of turing-completeness being advertised as a feature (see Dhall configuration language).

I don't disagree with "DSLs have a tendency to become turing complete over time", it's a well known fact.

But "we can't give something to users because otherwise they'll ask for other stuff" is not an argument. They're _already_ asking for stuff (templating) anyway. No one is suggesting that shutting users up is a reason to implement templating, it's the trade-offs of this feature that are debated. And if it gets implement then yes, users will certainly ask for more features, the trade-offs of which can be debated.

If you think that the line for HTML features is where we already are, you can present your arguments for why (tbh I'll probably agree). But "if you enable templating devs are then going to ask for more" isn't one.

The reality is that 90% of the features they ask for boils down to adding just a simple if statement, and as soon as a DSL has a practical if statement it becomes turing complete.

If the other 10% of features are implemented, then any further change makes the DSL turing complete.

It's not even really `if` by itself, conditionals are good enough. Templates with for loops that can check if an index is the first or last can implement if statements. Also templates that can nest other templates recursively with a max recursion depth can also implement if.

You have to go out of your way to avoid turing completeness if you want to avoid a complexity explosion.

A "slippery slope" fallacy might be what you're thinking of.
It's almost a meta-slippery-slope fallacy, in that the specific slope is not specified; only the existence of the slope and its slipperiness is asserted.
The slope we've observed over the decades is PHP. Which went from "basic HTML templating language" to "dotnet but you write $ everywhere". PHP has grown so much in complexity and feature-set that Symphony and the likes are legitimately dotnet-type. They make Go backends look low-level and primitive.