Ahahaha I legitimately cannot tell if this is a sarcastic blog post. To me it just sounds like such a joke. It's quite confusing. I hope it's a joke...
I think this is a realistic reflection on the state of this area in our industry. It is both sarcastic/a joke and not a joke at all.
“Hello, (real) world” in PHP in 2017
11–20 of 144 posts
Re: “Hello, (real) world” in PHP in 2017
#12Ahahaha I legitimately cannot tell if this is a sarcastic blog post. To me it just sounds like such a joke. It's quite confusing. I hope it's a joke...
"That’s it, we can run it now. “Hello, world!” is displayed on the screen. It looks almost like the result of "
Re: “Hello, (real) world” in PHP in 2017
#13Re: “Hello, (real) world” in PHP in 2017
#14Re: “Hello, (real) world” in PHP in 2017
#15Default in PHP is to output the bare text. Unless you wrap it in special markup '<?php'. That's an unique feature in the top languages.
Re: “Hello, (real) world” in PHP in 2017
#16It's still is easier AND cheaper to deploy a Hello World in PHP than a Hello World in any other language. You can get a cheap Apache/PHP hosting for $2/month, use SFTP a get a working app in minutes. The default PHP distribution comes with a lot of extensions.
The problem is that PHP doesn't help a beginner graduate from a basic webpage to a secure and robust application without having to download a complex framework and meddle with configuration files. IMHO by the time you are tempted to use Symfony you might switch to Java or ASP.net directly.
If PHP was really beginner oriented, it would actually do everything it could to use the most secure defaults for every feature, like templating, or sessions.
Microsoft attempted to do that with WebPages, which is kinda what PHP should have been if it was really intended for beginners. WebPages mostly use secure defaults. While it doesn't prevent spaghetti code it makes having to rely on a complex framework unnecessary.
Re: “Hello, (real) world” in PHP in 2017
#17Re: “Hello, (real) world” in PHP in 2017
#18This seems like a decent primer for someone who already has their heads wrapped around application development, but absolutely horrid for someone who wants to pick up a web language for the first time and create that first simple output. That first simple output IMO is critical for retention and engaging the language knowing exactly what you're going to get by looking at dirt simple code like echo hello world; at lea…
You do realise this article wasn't written as a beginner's tutorial but as a sarcastic view of modern web dev?
Re: “Hello, (real) world” in PHP in 2017
#19Earlier quoted context omitted.
I think this is a realistic reflection on the state of this area in our industry. It is both sarcastic/a joke and not a joke at all.
Poe's law in full action. If for some reason this is not a joke, it's a pretty lousy tutorial, as for every single arbitrary framework/tool decision here, there's not a single rationale here but "because it's 2017". I'd absolutely prefer 1995's Hello World if it's just about saying "Hello World".
So, although I wouldn't really chose tools author choses here, so the "not-really-a-joke joke" is still largely opinionated, I have to admit that assuming AJAX and some kind of MVC-ish framework (even if it's a one of your own) on both back-end and front-end is pretty much a must for a typical PHP web-application.
Re: “Hello, (real) world” in PHP in 2017
#20Maybe wasn't the best solution but it worked...and was fast too.