Live data from Hacker News

Why you PHP guys should learn Golang

mikespook.com

41–50 of 54 posts

Re: Why you PHP guys should learn Golang

#41
post #36

How can you possibly write an article telling PHP programmers to develop in Golang instead without writing anything about web programming in Golang ? Why do people use PHP mostly ? For web development. Why PHP guys should learn Golang should at least tell PHP guys if it's possible to do web development in Golang, and how, and show them how it's better suited (without telling them only "it's a better language").

Last line of the article:

> This is my writing exercise. If you find any grammatical or spelling error, plz tell me!

Also notice that it's a predominately Chinese blog.

Re: Why you PHP guys should learn Golang

#42
Great idea! Now how drunk do I need to get Systems so they will actually install Go on our servers? Because I'm sure that they would just love giving several thousand students, staff, and faculty the ability to run arbitrary machine code!

Re: Why you PHP guys should learn Golang

#43
post #41
post #36

How can you possibly write an article telling PHP programmers to develop in Golang instead without writing anything about web programming in Golang ? Why do people use PHP mostly ? For web development. Why PHP guys should learn Golang should at least tell PHP guys if it's possible to do web development in Golang, and how, and show them how it's better suited (without telling them only "it's a better language").

Last line of the article: > This is my writing exercise. If you find any grammatical or spelling error, plz tell me! Also notice that it's a predominately Chinese blog.

Well, thanks for pointing this out, although I think it should be possible, for a Chinese author who's not very fluent in written English, to write about Golang in a web dev perspective.

I don't really care about the author's English skills, I'm no grammar nazi.

Re: Why you PHP guys should learn Golang

#44
> But why you PHP guys should learn Golang? Just because it is cool! Ja, I’m kidding, but it is true.

I stopped reading here.

I don't know. Skimming over this blogpost made me think "Why should I use go?". I'm not even a PHP guy and this isn't even convincing me. What hope do they have to convince a PHP guy.

I didn't see any code. Sure there's a link to the "A Tour of Go" but if I was a PHP guy I would be confused by the syntax. No semicolons? Ok that may be an advantage (I'm also fairly sure you can add semicolons to Go and it wouldn't care).

I dunno, there wasn't enough here explaining why I should use Golang instead of PHP. I didn't like the way it was formatted. I didn't like the rhetoric.

I am one of those strange people who prefers to watch videos of a language or a web tool working and found http://ftp.heanet.ie/mirrors/fosdem-video/2011/maintracks/go... which seems to go through some of Golang's features. It's a little longer than that blogpost but it's a little better with convincing me to use Golang.

Re: Why you PHP guys should learn Golang

#45
Hmm, found nothing in the article to really validate the claim that PHP developers should learn GO.

It might be a cool language, but the main reason php developers use PHP in the first place is Web Development; the article doesn't even mention the possibility of using GO for web development.

There aren't any code samples on the article either; why is GO so good ? what does the syntax looks like? Don't just tell, SHOW

I prefer to invest my time learning languages like ruby or python.

Re: Why you PHP guys should learn Golang

#46

Earlier quoted context omitted.

I primarily develop using PHP. I read the first few lines of this article, got to this 'PHP is easy to learn. Golang is as easy as PHP!' and basically read, 'Hey thicko PHP guy, you could probably learn to use this language, cos its simple enough for your addled brain'. The immediate feeling of condescension turned me off.

Let's try this with me... The original: "PHP is easy to learn. Golang is as easy as PHP!" Some str_replaces: "Ruby is easy to learn. Golang is as easy as Ruby!" "Clojure is easy to learn. Golang is as easy as Clojure!" "Python is easy to learn. Golang is as easy as Python!" Hmm, I'm still not feeling offended. Are you sure this might not be some sort of inferiority complex at play? I think a lot of PHP developers get…

I'm pretty sure it's not an inferiority complex, im in no way precious over the language that I develop in. I just don't agree with the inference that developers that use PHP do so because they aren't smart enough to use other more complex languages.

The particular line of the article I quoted however does, to me, infer that php developers can only learn simple languages.

Re: Why you PHP guys should learn Golang

#47

Earlier quoted context omitted.

Most web developers who read Hacker News don't host their stuff with a hosting provider that doesn't even provide shell. With Go you just need to be able to execute a binary. You sounded a lot like Go hasn't proved it's viable for "web scale." It has. Is it as widely deployed? Of course not, it's new. I'm not sure what strength of PHP you're referring to--I'm assuming the ubiquity with shared hosting providers--but i…

Again, you assumed wrong. Makes me wonder what your actual experience with PHP is. The strength of PHP is its focus on the web environment through features and functions that make it simpler to develop in that environment, that have be implemented in code on most other languages. In addition, the huge amount of available mature libraries for a variety of purposes and the large community that supports it, is something…

I've used PHP for 15 years. You keep making these "I-know-better-because-I-use-PHP" statements, but ironically you probably have never even touched Go. Give it a try. Don't be the guy who hates anything that's new.

("Poor library support" is a terrible argument for PHP vs. Python, Ruby, or even functional languages with respect to web development too.)

Re: Why you PHP guys should learn Golang

#48

Earlier quoted context omitted.

Again, you assumed wrong. Makes me wonder what your actual experience with PHP is. The strength of PHP is its focus on the web environment through features and functions that make it simpler to develop in that environment, that have be implemented in code on most other languages. In addition, the huge amount of available mature libraries for a variety of purposes and the large community that supports it, is something…

I've used PHP for 15 years. You keep making these "I-know-better-because-I-use-PHP" statements, but ironically you probably have never even touched Go. Give it a try. Don't be the guy who hates anything that's new. ("Poor library support" is a terrible argument for PHP vs. Python, Ruby, or even functional languages with respect to web development too.)

You're the one who's doing the hating my friend... you keep finding hidden messages in what I write and generally piling up on PHP without good reason. I never said anything bad about Go, or bad library support in other languages, just not agreeing with the article on comparing PHP to it where PHP is (in my humble opinion) a very strong option already.

Re: Why you PHP guys should learn Golang

#49

Earlier quoted context omitted.

I've used PHP for 15 years. You keep making these "I-know-better-because-I-use-PHP" statements, but ironically you probably have never even touched Go. Give it a try. Don't be the guy who hates anything that's new. ("Poor library support" is a terrible argument for PHP vs. Python, Ruby, or even functional languages with respect to web development too.)

You're the one who's doing the hating my friend... you keep finding hidden messages in what I write and generally piling up on PHP without good reason. I never said anything bad about Go, or bad library support in other languages, just not agreeing with the article on comparing PHP to it where PHP is (in my humble opinion) a very strong option already.

I pile up on PHP because it's a shitty language, and basically the only argument for using it nowadays is that it's relatively ubiquitous among budget shared hosting providers. I don't think I ever tried to hide that I hate it.

Now you're twisting your own words.

Re: Why you PHP guys should learn Golang

#50

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…

I think you're right about PHP for most web apps.

A type of web app for which Go shines is ones that have data already prepared when the user arrives. Database retrieval and update can be handled by processes that aren't dependent on the user. This can make the app super fast; e.g. langalot.com.

Post reply on HN