Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.




Nobody 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.


Razor lets you write C# inside templates.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: