News for hackers. Stuff that matters.
Re:Goro – An implementation of PHP written in Go by cglace on Monday November 26, 2018 @10:20PM (#18539055)
Why choose PHP over python, node, ruby, elixir, go, etc. There are just so many great choices that offer just as much and more than PHP. I get that PHP has made major strides over the years. I just don't see why you would choose PHP for a greenfield project.
Re:Goro – An implementation of PHP written in Go by claudiawerner on Tuesday November 27, 2018 @12:44PM (#18544573)
One component is the fact that it comes out of the box on a great many hosting providers and it's part of the old "standard" LAMP stack. You don't have to set up any reverse proxy crap and the architecture is simple enough - you access a .php file which is really just HTML with some embedded code and it interprets the file. The concept couldn't be any closer to JavaScript which I suspect has attracted so much attention from beginners just because it's everywhere on web clients, just as PHP is everywhere on web servers.
Re:Goro – An implementation of PHP written in Go by insulanus on Monday November 26, 2018 @11:49PM (#18539480)
Well, my guess is that PHP offers a lot more to the beginner.

When you've been doing this a while, you can appreciate what e.g. Python gives you in structure, maintainability, and lack of foot-guns.

But when you're still in the "how does this work? Why won't this work? It worked!" phase, having less boilerplate, and fewer non-problem domain concerns (types? modules? tuples? Say what you mean, Old Man!) might be really valuable.

I think the best thing I remember about PHP is probably its online manual. Each library function had a few full use cases underneath.

Re:Goro – An implementation of PHP written in Go by cglace on Tuesday November 27, 2018 @07:31AM (#18541774)
> But when you're still in the "how does this work? Why won't this work? It worked!" phase, having less boilerplate, and fewer non-problem domain concerns (types? modules? tuples? Say what you mean, Old Man!) might be really valuable

However, modern php isnt being sold as index.php and a mysql connection. It's Doctrine, composer and laravel/symphony. Which have their fair share of boilerplate.

>I think the best thing I remember about PHP is probably its online manual. Each library function had a few full use cases underneath

The problem with PHP is that you need the online manual everytime you want to use a function because the argument order is so inconsistent.

Re:Goro – An implementation of PHP written in Go by Mave83 on Tuesday November 27, 2018 @12:46AM (#18539773)
best documentation in my opinion