Live data from Hacker News

Kickstarter: rails.app

kickstarter.com

61–70 of 175 posts

Re: Kickstarter: rails.app

#61
post #40

What about on a virtual private server like at linode? Then one doesn't necessarily have to shell out for a Mac to run osx. I would be much more interested in that.

If you're interested, I have a rails template with extensive documentation on setting it up on a server from scratch.

https://github.com/Hack56/Rails-Template/wiki

Re: Kickstarter: rails.app

#62
post #8

I'm interested in whatever Yehuda Katz comes up with, but I've been a Rails dev at a Mac shop since 2007? and I have never been too frustrated by getting Rails running. Does anyone here have specific problems? From my experience, it really has been a matter of "gem update --system; gem install rails".

Lately it is has been getting a lot harder. The problem right now is that so many things have moved so far, that there simply isn't a known pattern that will work.

Generally speaking, you now need a compiler. If not to install something other than a quite old system ruby, then to install common gems like nokogiri.

XCode seems to change significantly every release. Not long ago, you had to download it, or get it from your system CDs. Then you had to buy it from the app-store. Then you got it for free from the app-store. Then you got the installer for free from the app-store, and had to run the installer. And today I think you get the installer, which you run, and then you go through a series of menus to get to "install command line tools" (like gcc).

Once gcc is there, then you need a ruby. There's RVM and rbenv. Those need to be found, installed (by running a curl command piped through bash), and then a ruby needs to be installed. I use RVM, which is easy enough for me, and it does install bundler by default (which is good).

Once you have a modern ruby, you probably want a database other than sqlite. For that, you usually need homebrew. Again, install homebrew, and then have homebrew install postgresql/mysql.

At this point you are almost ready to install the rails gem.

Oddly, a lot of the newer complexity has less to do with Rails, and has more to do with the Ruby ecosystem getting both older and more complex at the same time.

Every time I help a new developer get started with the rails environment, I too am amazed at how much has changed since I setup my own laptop one year ago.

Re: Kickstarter: rails.app

#63

I have several problems with this. The first, and most important, is here: http://xkcd.com/927/ The second is personal, so please take it with a grain of salt. I pointed out that Yehuda's Bundler gem has an automated condescension feature; if you try to use it without saying 'source :rubygems,' it heckles you and mockingly asks you 'did you mean to say source :rubygems? if so please go back and type it in.' this is p…

Do you mind going into some details about why the Bundler gem was mocking you? I'm a Python dev and only know rudimentary rails/ruby.

Re: Kickstarter: rails.app

#64

I have several problems with this. The first, and most important, is here: http://xkcd.com/927/ The second is personal, so please take it with a grain of salt. I pointed out that Yehuda's Bundler gem has an automated condescension feature; if you try to use it without saying 'source :rubygems,' it heckles you and mockingly asks you 'did you mean to say source :rubygems? if so please go back and type it in.' this is p…

I help maintain the http://github.com/thoughtbot/laptop script that Giles mentioned. Happy to take feedback in Github Issues.

Some other good ones:

https://github.com/atmos/cinderella

https://github.com/pivotal/pivotal_workstation

Re: Kickstarter: rails.app

#66
post #63

I have several problems with this. The first, and most important, is here: http://xkcd.com/927/ The second is personal, so please take it with a grain of salt. I pointed out that Yehuda's Bundler gem has an automated condescension feature; if you try to use it without saying 'source :rubygems,' it heckles you and mockingly asks you 'did you mean to say source :rubygems? if so please go back and type it in.' this is p…

Do you mind going into some details about why the Bundler gem was mocking you? I'm a Python dev and only know rudimentary rails/ruby.

In your Gemfile Bundler requires you to tell it where to lookup for gems. For 99.99% of people that is going to be rubygems.org, but it doesn't have to be. There has been talk about making this the default and then allowing someone to turn it off.

edit: The RubyRouges podcast has a great episode with the maintainer of Bundler where a lot of the difficulties with Bundler are discussed in depth. That's the "talk" I was referring too.

Re: Kickstarter: rails.app

#67
post #63

I have several problems with this. The first, and most important, is here: http://xkcd.com/927/ The second is personal, so please take it with a grain of salt. I pointed out that Yehuda's Bundler gem has an automated condescension feature; if you try to use it without saying 'source :rubygems,' it heckles you and mockingly asks you 'did you mean to say source :rubygems? if so please go back and type it in.' this is p…

Do you mind going into some details about why the Bundler gem was mocking you? I'm a Python dev and only know rudimentary rails/ruby.

actually I hate to say it but one of the early (2006? 2005?) blog posts about the diff between Python and Ruby was that in Python's console, if you hit "q" or escape or ctrl-C or something, you get an error message like the 'source :rubygems' error message, which says "hit ctrl-D to escape." the blog post was saying this is basically the diff between the two languages, that Python would correct you if it knew what you wanted but you asked it the wrong way, whereas Ruby would just either support the most obvious option, or support both the most obvious option and the 'correct' option as well.

the idea in Ruby, and especially in Rails, is that if you know what the default is which most people are going to expect or try, you should support it. to say "we know you thought source :rubygems was the default, but it's not, you have to type it explicitly" is a little un-Ruby and a whole bunch un-Rails.

Re: Kickstarter: rails.app

#68

I have several problems with this. The first, and most important, is here: http://xkcd.com/927/ The second is personal, so please take it with a grain of salt. I pointed out that Yehuda's Bundler gem has an automated condescension feature; if you try to use it without saying 'source :rubygems,' it heckles you and mockingly asks you 'did you mean to say source :rubygems? if so please go back and type it in.' this is p…

This seemed a little odd to me as well, but mostly because I haven't been a noob for a long time and so am out of touch with that feeling of "this is hard" when it comes to installing rails. I don't think that installing rails got any harder relative to where it was in the 1.0 days. vanilla rails locked to one version with globally-installed gems is just as easy as it ever was, so I don't know if its quite fair to sa…

entirely fair, no, entirely funny, yes.

Re: Kickstarter: rails.app

#69
post #66
post #63

Earlier quoted context omitted.

Do you mind going into some details about why the Bundler gem was mocking you? I'm a Python dev and only know rudimentary rails/ruby.

In your Gemfile Bundler requires you to tell it where to lookup for gems. For 99.99% of people that is going to be rubygems.org, but it doesn't have to be. There has been talk about making this the default and then allowing someone to turn it off. edit: The RubyRouges podcast has a great episode with the maintainer of Bundler where a lot of the difficulties with Bundler are discussed in depth. That's the "talk" I was…

well, this is what's insane about Rails these days. we have a value which is correct in 99.99% of the cases, and we are (at best) debating whether or not to make it the default.

I say at best because obviously in my case I did not see a whole lot of debate. the GitHub issue for it is likewise extremely not-discussion-y. wherever the discussion for this incredibly controversial idea is taking place, I haven't seen it.

Re: Kickstarter: rails.app

#70
If someone won't make the effort to learn how to get an environment up and running, what makes him think that environment will have any real user once it's ready? There's a certain value of the commitment one takes when they decide to push forward and figure things out necessary to proceed.
Post reply on HN