14,622 karma · joined Jan 27, 2009 (17y ago) · 2,278 submissions
comment 16y ago · link · parent
We're yet to see which major niche Go fills, if any. There's a growing community of people from different backgrounds using it, and they seem to enjoy it. I personally think it's a lovely language to write all kinds of code in. I recently rewrote our continuous build client in Go, and I found it a cinch to write it in clear, reliable, maintainable way. It's definitely worth checking Go out because, even though it ticks a lot of the same boxes as existing languages, it's quite different from anything else out there in many subtle ways. Certainly for writing server daemons it totally kicks ass.
It's easy to get started. The standard library is featureful (http://golang.org/pkg/), and there's a lot of good documentation (http://golang.org/doc/docs.html). As for integrating with existing code, Go comes with a tool called cgo (http://golang.org/cmd/cgo/) which allows you to write Go code that links with C code. It's pretty easy to use, and there are many third party libraries (http://godashboard.appspot.com/project) that use it. There's also Go support for SWIG for linking against C++ code.
comment 16y ago · link · parent
Also, it's running a _really_ old version of Go. (http://ideone.com/spBzw) It's at least 400 revisions out of date. We intend to keep the golang.org Playground up-to-date.
2074.
Introducing the Go Playground(blog.golang.org ↗)
76 points · by enneff · 16y ago · 31 comments
comment 16y ago · link · parent
If what you say about the practices at Facebook is even remotely true then it is disgusting and shameful behaviour.
comment 16y ago · link · parent
comment 16y ago · link · parent
This is not necessarily a good thing. Sometimes you need to write a piece of code that executes sequentially. Having the ability to do that if you need to is a good thing. Sometimes it can be unnatural and unwieldy to split a block of functionality up into a set of callback functions.
comment 16y ago · link · parent
I wrote code for those machines, and no, I wouldn't write my UI code to read and write the disk directly.
"Separation of concerns is a modern luxury."
This is a myth. Merely an excuse for poor API design. Proper abstraction doesn't mean inefficiency.
Your last paragraph (the "Edit") is almost offensive. The cause of bloat is not separation of concerns. It's that people just don't care about writing efficient code (or they just don't know how). Did you ever write code in the era you speak of? Because your statement comes across as ill-informed conjecture.
comment 16y ago · link · parent
The guy immediately loses credibility in my eyes for referring to the most popular archive format as 'WinZip'. It's the ZIP file format, designed by Phil Katz of PKWare Inc.
http://en.wikipedia.org/wiki/ZIP_(file_format)
To add injury to insult, the rest of his proposal is pretty similar to ZIP, which also accomplishes the nice-to-have things he mentions at the end.
comment 16y ago · link · parent
The "-f <filename>" flag is perfectly clear, and useful in all modes (c, x, etc). If you remember "tar czf" as a magical incantation, then you're missing something vital. When you understand what each argument means there is no ambiguity. I don't mean to sound condescending, but in my entire life I've never encountered the problem you described.
comment 16y ago · link · parent
"The trick is to control the urge to put in every feature that comes to mind. It's also important to worry more about semantics than syntax."
"Consensus drove the design. Nothing went into the language until all three of us agreed that it was right. This meant that some features didn't get resolved until after a year or more of discussion."
2085.
All Systems Are Go: An Interview with Rob Pike(informit.com ↗)
28 points · by enneff · 16y ago · 3 comments
comment 16y ago · link · parent
By positioning herself as a "girl", I think of her as a girl first, and a developer second. What qualities do I associate with girls? Not the qualities I look for in a programming blogger. Is that prejudice? I guess so.
I clicked the link because it had a catchy title, not because it was from a site "girldeveloper". That I'm not even thinking about the content of the post anymore speaks volumes.
2095.
OSCON 2010: Rob Pike, "Public Static Void"(youtube.com ↗)
3 points · by enneff · 16y ago · 2 comments
comment 16y ago · link · parent
This is pretty much exactly what I said. Do you think if I'd pointed out that I'm actually a google employee also, I might have been spared the down votes?
comment 16y ago · link · parent
They go to great lengths to ensure this is not the case. If the feedback from five different interviewers led to a 'no hire' decision, the chances are good that it was the right decision. Of course, no system is perfect. They tend to err on the side of exclusivity; it's much cheaper to decline a suitable candidate than it is to hire someone who won't work out in the long term.