4 ms·
> Create your next OS X, Windows or Linux desktop application in pure PHP No, thank you. More specifically, I spent last Saturday setting up PocketMine (a Min
by huhtenberg 12y ago
> Create your next OS X, Windows or Linux desktop application in pure PHP
No, thank you.
More specifically, I spent last Saturday setting up PocketMine (a Minecraft server) for my kids. This remarkable piece of engineering is a console app done completely in PHP and one of the first things it logged was "Can't keep up! Is the server overloaded?". That's a completely idle server on a beefy box. And all I could think was how regrettable it was that a clearly capable programmer voluntarily painted himself in a corner by picking a language that wasn't fit for the job. Same thing with GUI in PHP - yes, it's doable, yes, there's probably a demand for it, but this demand is misplaced and misguided and it's not worth of endorsing. It's like giving devs a heavier weight to sink deeper into a tar pit instead of giving them a rope for getting out. Desktop apps should never ever be written in PHP unless it's some sort of quick and disposable hack, which is likely not what this project has in mind.
- Tehnix 12y ago>Same thing with GUI in PHP I'd more call it a GUI in HTML/CSS/JS. PHP is just for the backend.
- huhtenberg 12y agoI understand that. It's a clever and elegant hack and I appreciate it, but ultimately it is not a viable cross-platform desktop app development option, which is, however, what it says on a tin. That is, I have a problem with the labeling, not the contents.
- debaserab2 12y agoIn what way is the labeling misrepresenting what it accomplishes? I don't see anywhere in the documentation where it boasts as being more viable or comparing itself to other options in any way.
- xyclos 12y agothe "Can't keep up!" error is common in a regular minecraft server, so it may not have as much to do with the fact that pocketmine was written in php. Although, i could be completely wrong about this (probably).
- pp19dd 12y agoNope, you're not wrong. That's part of minecraft and had nothing to do with PHP. I have a 200 meg server.log file that was run on a dedicated server, and in it there are 570,000 lines that say that -- out of 2,461,927. In other words, 23%.
- coldtea 12y agoYes, because programs written in all other kinds of languages don't write stupid messages and don't have BS bugs... And to dispell the ignorance and knee jerk reaction, the message comes from Minecraft, not his PHP code itself: http://minecraftserverhq.com/blog/can't-keep-up/ http://minecraftserverhq.com/blog/can't-keep-up/ I'd rather hire an engineer that doesn't blame a language because of ignorance, and even knows how to Google to find out the root cause.