The PHP Singularity (2012)
blog.codinghorror.com
The PHP Singularity (2012)
1–6 of 6 posts
Re: The PHP Singularity (2012)
#2Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
Re: The PHP Singularity (2012)
#3Make me wonder... Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
The thing is, you have more control over what language you can run on the server-side, whereas all your web browser clients run JavaScript. So it made sense to have a transpiler targeting JavaScript.
Re: The PHP Singularity (2012)
#4PHP still follows the very simple way. Install LAMP (perfected down to a simple one step script), run certbot, copy code and voila, you're done.
PHP and it's community on the other hand is learning from its mistakes. The popularity of Laravel and the clean code it forces you to write is a godsend. So is the work in the community to recommend it to every beginner.
Re: The PHP Singularity (2012)
#5Make me wonder... Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
Just pick a better language (e.g. Python/Ruby/Groovy/C#). Period. And JavaScript was never as horrible as PHP anyway, in my opinion. The thing is, you have more control over what language you can run on the server-side, whereas all your web browser clients run JavaScript. So it made sense to have a transpiler targeting JavaScript.
I had the displeasure of PHP being the first "programming language" I came across. Most of my knowledge was gleaned from w3schools and various web pages scattered around the web. I recall doing a lot of Googling while trying to figure out edge cases and such.
Re: The PHP Singularity (2012)
#6Make me wonder... Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
Just pick a better language (e.g. Python/Ruby/Groovy/C#). Period. And JavaScript was never as horrible as PHP anyway, in my opinion. The thing is, you have more control over what language you can run on the server-side, whereas all your web browser clients run JavaScript. So it made sense to have a transpiler targeting JavaScript.