Live data from Hacker News

Why you PHP guys should learn Golang

mikespook.com

11–20 of 54 posts

Re: Why you PHP guys should learn Golang

#11
Oh good yet more comments about why PHP is trash and how your intelligence and social status are dictated by what language you are using. I almost don't click on posts about programming languages any more. Yet here i am, commenting..

Re: Why you PHP guys should learn Golang

#12

I don't think that PHP programmers are capable of learning something new. Otherwise they would have left PHP for any other language long time ago.

I don't like PHP either, but nearly every hoster let you run PHP code. You could pick a 3 Euro Webhost and it will be fine. That's one of the biggest advantages for PHP.

Re: Why you PHP guys should learn Golang

#13

I don't think that PHP programmers are capable of learning something new. Otherwise they would have left PHP for any other language long time ago.

Nah... Even if we supposed that PHP beginners all outgrew it after one year, there are enough people always picking it up that you would still always have PHP programmers, until there was enough of a cultural shift that people stopped picking it up. (Unlikely since PHP's virtues or apparent virtues to newbies are many, and whatever its problems it is still a viable way to build things) Second, even if PHP is a relati…

Really, don't feed these trolls that pop up in every single thread that has to do with PHP.

Re: Why you PHP guys should learn Golang

#14

It doesn't seem to me that there is a whole lot of overlap between the virtues or sweet spot of PHP and those of Go. Go is not a particularly hard language for the level it's designed at (though I'm not sure that remembering keywords is really a primary usability concern for any language)... but if you are just trying to slap together a web app and feel intimidated by deploy details and want to use cheap shared hosti…

I agree, and luckily he touches that subject a little at the end of the article, the line: "In any case, most of PHPers alwasy need to learn other languages for the backend development." Pretty much sums up exactly why a PHP developer should learn Go. For all the things that PHP just isn't meant to do.

Re: Why you PHP guys should learn Golang

#15
No offense to the writer, but it seems to me he doesn't really understand web development. In 99.9% of web applications, the bottleneck for scaling is the database and not the language. Web application processes are generally not CPU intensive and are short lived, something PHP handles very nicely.

On the other hand, PHP has a huge list of existing resources, libraries and excellent documentation and community.

Look over at the language used by the largest sites on the Internet, and compare the number that use PHP to the number that use Go. Not saying Go can't handle those applications, but obviously PHP was used in scale effectively on many occasions, while Go hasn't proved anything yet.

Re: Why you PHP guys should learn Golang

#16
With a JVM or .NET language they would be better served than with Go.

Given the available communities, performance of current JIT and GC systems, tools, libraries and distribution mechanisms.

If they prefer to go VM free, there are commercial native compilers for JVM and MSIL bytecodes.

For those with VM phobia, D, OCaml, SBCL, Haskell, Rust offer native code compilation by default, with 2012 set of language abstractions.

Re: Why you PHP guys should learn Golang

#17
So basically the argument is that if you are the "when all you have is a hammer everything looks like a nail" kind of developer, you should use Go as hammer instead of PHP.

I don't think so.

Not to mention the unfounded and insulting assumption that "you PHP guys" are all the "everything looks like nail" kind of people. Methinks the author is projecting too much.

Re: Why you PHP guys should learn Golang

#18

I don't think that PHP programmers are capable of learning something new. Otherwise they would have left PHP for any other language long time ago.

Breaking news: Some people just want to solve the problem at hand and don't care for language elitism ("you use php? you suck!") in their choice of tools.

Re: Why you PHP guys should learn Golang

#19

Oh good yet more comments about why PHP is trash and how your intelligence and social status are dictated by what language you are using. I almost don't click on posts about programming languages any more. Yet here i am, commenting..

I can see why are sensitive (I am also primarily a PHP dev) but I didn't see any "PHP is trash" statements in this article. The article even shows how you can use PHP with Go via Gearman.

Re: Why you PHP guys should learn Golang

#20

No offense to the writer, but it seems to me he doesn't really understand web development. In 99.9% of web applications, the bottleneck for scaling is the database and not the language. Web application processes are generally not CPU intensive and are short lived, something PHP handles very nicely. On the other hand, PHP has a huge list of existing resources, libraries and excellent documentation and community. Look…

It powers YouTube, among other things: http://code.google.com/p/vitess/

Go documentation is very good, the standard library is extensive, and it has a very active community, but it does lack certain libraries that web developers might find attractive, e.g. a comprehensive ORM.

Insinuating PHP is better because it's deployed in more places is silly.

Post reply on HN