Re:To boldly go where Node man has gone before
by paufernandez on Wednesday May 16, 2012 @03:33PM
(#3983620)
It works very well for me. If I want someone to install a Go program I've developed, in Ubuntu 12.04 they can just:
That's it, and it takes a few seconds.
[ Parent
| on HN ]
Re:To boldly go where Node man has gone before
by nilliams on Wednesday May 16, 2012 @04:06PM
(#3983757)
That's great to quickly show someone a program, but not so great if they try it a few weeks later and get a non-stable version of your program, otherwise that definitely won't be it, they'll have to spend some time figuring out what went wrong.
If Go adds some method to specify a tagged version that could be pretty nice though.
I hope it goes without saying that there's no way this kind of hack (neat as it is) is a substitute for a proper package management system like npm (which is a very good package manager).
Re:To boldly go where Node man has gone before
by substack on Wednesday May 16, 2012 @05:59PM
(#3984263)
This is a nifty feature and npm can do something very similar:
npm install git://github.com/substack/node-optimist.git
Re:To boldly go where Node man has gone before
by KaoruAoiShiho on Wednesday May 16, 2012 @04:51PM
(#3983957)
How's that any faster than
npm install express
Not only do npm handle versioning for you, you also don't have to remember the host or username. Obviously Go is a younger community, and could make a package manager some day, but I'm puzzled by how you're comparing this positively with npm.
Re:To boldly go where Node man has gone before
by paufernandez on Wednesday May 16, 2012 @05:44PM
(#3984192)
It is faster because you don't have to install npm, the case I was explaining involves someone with no developing skills.
And I'm not saying this feature of Go is better than npm, I also use npm and I like it very much. What I like is the fact that Go comes already with this feature and I don't need anything extra.
I believe that npm is now included as part of all node distributions.
Re:To boldly go where Node man has gone before
by KaoruAoiShiho on Wednesday May 16, 2012 @04:52PM
(#3983963)
Oh I get it, you're talking about from a package developer's standpoint. Not having to register your package with a central directory does save a bit of time for you I guess.
But when installing packages, I have to say, npm is fantastic.
Re:To boldly go where Node man has gone before
by baudehlo on Wednesday May 16, 2012 @05:59PM
(#3984261)
You don't have to do this with npm either. You can provide a URL to a tarball or a git repository and npm will install from there.
Re:To boldly go where Node man has gone before
by baudehlo on Wednesday May 16, 2012 @05:58PM
(#3984254)
And npm ships with node, so this is no different.
Furthermore npm can install git URLs directly too, including tags and branches if you need a particular one. Just specify the url as the "version" in your dependencies section of package.json. Totally trivial.