3 ms·
Why try to make PHP more readable? Just use another language. PHP, like C++, is a big industry dinosaur that can't and won't change. In my opinion, the best t
by d0m 15y ago
Why try to make PHP more readable? Just use another language.
PHP, like C++, is a big industry dinosaur that can't and won't change.
In my opinion, the best think you could do is create a new language which compiles to PHP. I.e. A coffeescript for PHP. You don't have to "vote" and get stupid arguments against; you don't have to be backward compatible; and you only have great programmers in that project since crappy ones will just continue to use their 1500 lines unmaintainable functions anyway.
- jpadvo 15y agoBut why not make it more readable? The patch exists - all it would take is for it to be accepted. And there are a ton of people who can't justify the switching costs of moving to a different language. And true, a lot of us aren't great programmers. So? Better tools help. And it's perfectly okay to build and improve tools that regular people will use. Even if they won't be creating the Mona Webapp. ;)
- d0m 15y agoWhy not make it more readable? Because I feel like every attempt made to improve PHP are refused by the community.
- Zak 15y agoAnd it's perfectly okay to build and improve tools that regular people will use. It is, unfortunately PHP resists changes that most of the rest of us consider improvements. I think at this point we might be better served by putting our efforts in to replacing PHP rather than improving it. The replacement need not be the ultimate web language, but should try to be a good language while maintaining a low barrier to entry.
- Kudos 15y ago> coffeescript for PHP Make this happen please. I can't think of a more deserving language and it'd make my day job a lot nicer.
- michaelchisari 15y agoHaven't had a chance to check it out, but here's an option: http://pypi.python.org/pypi/hotpotato http://pypi.python.org/pypi/hotpotato
- d0m 15y agoSeems interesting. The big caveat I see is how the final code is generated, unlike CoffeeScript which is more 1:1 with real JavaScript.