Turn off ri and rdoc generation by default
github.com
github.com
The real problem is that installing the documentation is slow. If it was fast, nobody would suggest leaving it out.
Either precompile it, or make the compiler faster.
Additionally, now that we all use bundles, gemsets and who-knows-what to isolate and manage gems, we get massive, massive duplication. See for example, the output of this gist: https://gist.github.com/834302
So you're saying the root problem is you haven't configured your production servers?
I'm not sure what you mean. If you mean "It's trivial to add 'gem: --no-ri --no-rdoc' to your .gemrc file. It's your fault if you haven't configured your server correctly.", then you're avoiding the point of this argument.
We all agree that you can change defaults. We're discussing what the default should be.
Generating both HTML and console documentation is suspect, but generating no documentation at all is much worse.
To me, and everyone I did a very quick straw poll of, rubygems is a loader for gem files. If it's truly only meant to be a dev tool, what would you suggest instead for loading third party libraries into an app?
The goal is to have sensible defaults that cover the majority of use cases but allow deviation when necessary. Since the vast majority of Rubyists almost never use ri and RDoc locally, DHH is arguing that the default should be to not install the documentation.
“Production system” isn't the default. Given improved speed, you can --no-doc it on your production systems.
> Additionally, now that we all use bundles, gemsets and who-knows-what to isolate and manage gems, we get massive, massive duplication. See for example, the output of this gist: https://gist.github.com/834302*
Choosing to use external tools that behave poorly with Gems isn't without its tradeoffs, nor germane to this.
08:56 < banisterfiend> erikh: the pull request was rejected right?
08:56 < erikh> banisterfiend: after about 200 people commented on it
08:57 < erikh> banisterfiend: you know, he's working on a better solution
08:57 < banisterfiend> i didnt know :)
08:58 < erikh> nobody fucking asks that first before sending a bunch of
propellerheads to troll though
So I guess we'll see something to fix this anyway?1.7 will replace --no-rdoc and --no-ri with a single --[no-]document option (which should be automatically aliased to --[no-]doc by optparse) making this easier to do.
Not quite the same, if that was what was meant, and calling people who express a valid opinion on this "propellerheads" just seems unnecessarily insulting. There are 200+ comments because people feel strongly about this and not because they are trolling.
People are complaining about having to install a .gemrc to get sensible behavior. Making the file a few characters shorter doesn't make it less of a burden.
I google far more often than I ri.
I can't say I've ever used ri, although I do browse local rdoc, sometimes. I know plenty of developers that hadn't heard of "gem server" until I mentioned it. And this is completely discounting production environments, where the documentation is almost certainly a waste of deploy time.
It's an orthogonal problem, though. The main issue with doc generation is that it is really, really slow (compared to the rest of the install process). If it can be sped up – patches are surely welcome – it'll just leave the envs that flat-out don't need the docs, ever, and those can use the new --no-doc.
http://www.google.com/search?hl=en&source=hp&biw=101...
Personally, I can switch to a browser window, google for a gem, find its docs, and read them online in less time than it takes for ri to return its usually incomplete result or ask for brain-dead disambiguation. Ruby would have a better reputation if ri simply didn't exist.
When did "+1" become a valid opinion?
The few people who attempted to actually discuss the patch were more than drowned out by -- well -- a bunch of propellerheads.
If everyone wrote a short paragraph on their agreement with the original idea it would be very hard to find the comments where people were either dissenting or had something original to say.
I sometimes use the local rdoc, but I have it turned off by default, online docs are useless when working with older versions of gems.
This is the real problem IMO. Especially as capistrano's bundler module kills the log output when installing gems in the deployment environment, I bet a lot of people don't realise that 50% of their deployment time is generating docs, because they see no direct indication of this on the console output for capistrano.
file {
"/etc/gemrc":
content => "gem: --no-rdoc --no-ri\n",
mode => 644,
owner => root,
group => root
}
Well, maybe that and ntpd.The Rubygems project has been extremely poorly maintained over the years despite having one of the largest user bases of the Ruby ecosystem. Reminds me of northern africa. That github pull request might as well be the streets of Libya.
Have you ever tried to help out? It's understaffed because people like you would rather complain about it on the Internet than actually improve the situation.