3 ms·
> What server language today except PHP (and its forks) is actually designed for the web and works as the web was intended? I'd say Rails is a very nice DSL fo
by rbanffy 5y ago
> What server language today except PHP (and its forks) is actually designed for the web and works as the web was intended?
I'd say Rails is a very nice DSL for building web applications that's written as an extension of Ruby.
We have two dimensions here, one for how easily a language allows you to build a website, and how expressive, consistent and error-proof a language is. It's easy to build a simple website with PHP (as it was with ASP and JSP, or even Cold Fusion). I actually like that approach, that maps running scripts to state transitions. But I also like the consistency and expressiveness of Python, Java, Scala, or C# (which I have used). As languages, they are "nicer" (and that's completely subjective) than PHP, and that niceness more than compensates for being unable to write code inside templates.
- 369548684892826 5y agoRazor lets you write C# inside templates.
- sgjohnson 5y agoNobody in their right mind has put actual logic inside templates when doing PHP for a while now. PHP has supported strict typing for a while now, making it also fairly consistend and error-proof. There is nothing at all wrong with PHP and it's rapidly moving in the right direction.