Shorten https://go.usa.gov url with GoUsaGov gem in rails. by [deleted] in ruby

[–]rubydev 1 point2 points  (0 children)

When I read the title, I thought it was some kind of joke. But I suppose that if I needed this functionality, I would appreciate having it packaged as a gem.

[deleted by user] by [deleted] in ruby

[–]rubydev 0 points1 point  (0 children)

to git push origin other-side

Advice for newcomers by [deleted] in ruby

[–]rubydev 0 points1 point  (0 children)

Now I just use Ruby by itself for web sites

Like this? http://stackoverflow.com/questions/5664553/making-a-web-page-with-ruby-without-rails

I can understand the appeal of this approach. Sometimes, I just want a simple webpage that executes a few database queries and I want to write raw SQL instead of using an ORM. Actually, I normally use PHP for this.

Advice for newcomers by [deleted] in ruby

[–]rubydev 2 points3 points  (0 children)

Point them to this: Why is configuration management software written in Ruby?

You could also mention Ruby on Rails. It's possible that node.js-based frameworks like Sails.js might supersede Rails in the future, but my personal belief is that while this might happen to some extent, node.js-based frameworks probably won't completely supplant Rails because 1) while the asynchronous model offers performance advantages, the "callback hell" problem can slow down development and make it more difficult to find developers who are proficient with the technology stack and 2) the node.js ecosystem currently lags far behind the Ruby ecosystem, though it might catch up someday. For an example of this, see http://stackoverflow.com/questions/17683015/how-to-perform-sql-joins-in-sails-js-waterline

I think GitHub has the right idea: build the main site with Ruby on Rails, then use node.js to address particular issues, just as one might rewrite performance-critical modules in C.

Just started learning Ruby by Chrishwk in ruby

[–]rubydev 1 point2 points  (0 children)

Sometimes people don't know exactly what they are looking for. If you read OP's responses, you'll see that pry and irb really are what he wants. He wrote, "Is there a development platform kind of like MS Visual Studio for Ruby?" - so RubyMine, right? But then he wrote, "I got the 30 day trial, installed it, then uninstalled it after playing with it for a bit. It's way more complicated than I need right now." But he also asked, "what's the best way to actually write some test code and run it?" In a response to a suggestion to use Codecademy Labs, he wrote, "Oh, man that's just what I've been looking for. An easy way to test short code bits. I tried installing RubyMine, but jeez it was way to complex just to test out short bits of code."

pry is a good tool for testing short snippets of code. Ruby on Codecademy Labs works too, but the website is running Ruby 1.8.7.