4 ms·
So the answer to "Stop writing PHP like it's 2009" is to not write PHP at all, and write Hack instead?
by bpicolo 9y ago
So the answer to "Stop writing PHP like it's 2009" is to not write PHP at all, and write Hack instead?
- deleted 9y ago[deleted]
- kuschku 9y agoAn argument could be made that we need a new law of programming languages: > Given enough time, all languages converge to become Java.
- throwaway7645 9y agoI don't think that is true at all. Can you clarify what you mean by that as quite a few languages (some that are old) off the top of my head share little with Java: APL, Perl, OCaml, Rebol, Nim, Common Lisp...etc.
- madsbuch 9y agoExcept that it is far from true.
- kuschku 9y agoLook at the JS world, or the PHP world, and it certainly seems true for them.
- paulredmond 9y agoHere's a side-by-side with Java and the PHP RFC for Generics. https://pbs.twimg.com/media/DBYQXlYUwAAZt9t.jpg https://pbs.twimg.com/media/DBYQXlYUwAAZt9t.jpg
- ChrisLTD 9y agoSeems that way. Unfortunately, this kills the #1 reason to use PHP: Easy deployment on almost any web host.
- TallGuyShort 9y agoIt would seem deploying on cloud infrastructure is more popular now than traditional web hosts. I would suggest that perhaps it's no longer that "the #1 reason to use PHP == deployment" but that "the #1 reason to KEEP using PHP == huge but stable codebase + fear of forgetting important things in a reimplementation". A few years ago I considered HHVM because it could give us a big performance boost with little effort while we worked on longer term migration. Switching the runtime really was a viable and valuable option to consider.
- chipotle_coyote 9y ago* It would seem deploying on cloud infrastructure is more popular now than traditional web hosts.* This depends on who your target audience is. I've been toying around with the idea of writing a modern blogging engine[1] and have come to the conclusion that if I actually wanted to do that and wanted to be able to target the same kinds of folks who would otherwise be installing WordPress, I probably need to stick to PHP. Not only are there still more people on traditional web hosts than you might think (I'm always surprised by this when I talk to friends outside, and even sometimes inside, the technosphere), there's an awful lot of people who use cloud infrastructure by clicking the "install Ubuntu with a LAMP stack" button. I suppose technically I could provide a Docker image and include instructions on how to install that, like Discourse does, but that sounds...fraught. [1] Yes, yes, I know, but I always liked Ghost's original "we want to focus on being a great blogging platform, not a CMS like WordPress has become" manifesto. Since they kicked that to the curb and said "fuck yeah CMS, baby," I'd kinda like someone else to pick up the baton. (Static web site generators are awesome if they fit your use case, but that use case isn't everyone's.)
- johnonolan 9y ago> Since they kicked that to the curb and said "fuck yeah CMS, baby," This literally never happened, but ok? > have come to the conclusion that if I actually wanted to do that and wanted to be able to target the same kinds of folks who would otherwise be installing WordPress, I probably need to stick to PHP I'd agree with that. But plenty of people already doing it, eg. https://craftcms.com https://craftcms.com
- deleted 9y ago[deleted]