|
Does ruby have a stepwise debugger, similar to perl's "perl -d"?
Started by someguy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
From the command line (if you have the debug module available):
ruby -r debug /path/to/ruby_script.rb
....
Here is a random blog article about ruby-debug to get you started.
Check out the ruby-debug gem and the rdebug command.
|
|
I working mostly with DataMapper in Ruby and Merb, so im looking for PHP ORM that is similar to DataMapper. Any good ones?
Started by Dan Sosedoff on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're interested in the project, please help me out! I'm looking for more... .
The phpDataMapper project was created specifically to be like Ruby's DataMapper.
I believe Doctrine is implemented in a similar way.
similar ORM to ROR.
|
|
Is there a Ruby version of for-loop similar to the one in Java/C(++)?
In Java:
for (int i=0; i<1000; i++) { // do stuff }
The reason is because I need to do different operations based on the index of the iteration. Looks like Ruby only has a for-each...
Started by ryanprayogo on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Ruby tends to use iterators rather than loops; you can get all the function of loops with Ruby's powerful iterators....
In Ruby, the for loop may be implemented as:
1000.times do of the loop.
Iteration
You can user each with index.
|
Ask your Facebook Friends
|
I am new to Python. Just want to know is there any module in python similar to ruby's drb? Like a client can use object provided by the drb server?
Started by ccy on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I have no idea what drb is, but from the little information you have given, it might be something like the Perspective Broker in Twisted
Introduction
Suppose you find yourself in control of both ends of the wire: you have two programs that need to talk... .
|
|
In Ruby on Rails, there's RJS templates that help do AJAX by returning javascript code that will be executed in the client browser. How can I do a similar thing in the Java/J2EE world? Is Google Widget Toolkit similar to RJS? What options do I have?
Started by Ivan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Also worth checking out is DWR , which gives you remote procedure call style... .
GWT is great if you want to do all or most of the client side in java .
There is no direct equivalent.
Yes, I think Google Web Toolkit is the java equivalent to RJS templates .
|
|
Does anyone know if there is a .NET library/API similar to Ruby's Sinatra ?
Just wondering since with the new Routing API in ASP.NET MVC, WCF and .NET 3.5, it seems like a possibility.
Started by kenny on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Libraries or not, but from what I can tell it's routing syntax is very similar, if not identical.
|
|
Is there a realtime apache/php console similar to webrick or mongrel with ruby on rails?
I want to be able to monitor what the heck my server is doing.
edit: but I don't want to grep the log
Thanks!
Started by ThomasGHenry on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Simple Example:
<?php FB::log('Log message'); FB::info('Info message'); FB::warn('Warn message'); FB::error('Error message'); ?>
Read More
ApacheTop may not quite do what ... .
I believe FirePHP might be somewhat equivalent to what your looking for .
|
|
Perl has been one of my go-to programming language tools for years and years. Perl 6 grammars looks like a great language feature. I'd like to know if someone has started something like this for Ruby.
Started by dreftymac on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
However there is something similar for Perl5, see Regexp::Grammars
/I3azIf you want to use actual Perl 6 grammars in Ruby, your best bet is going to be Cardinal , a ruby a viable ruby implementation....
similar for Ruby.
|
|
Background
Perl and Ruby have the __END__ and __DATA__ tokens that allow embedding of arbitrary data directly inside a source code file.
Although this practice may not be well-advised for general-purpose programming use, it is pretty useful for "one-off...
Started by dreftymac on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Basic on the VIC20 and C64 had a " Data " command that worked something... .
Fortran has a DATA statement that sounds like what you're looking for .
Perl supports the __DATA__ marker, which you can access the contents of as though it were a regular file handle .
|
|
I've been working a lot with Ruby on Rails in the past several months, and am loving it. Recently however, I've come into some work that requires PHP, and would like to retain a lot of the nice baked in features that Rails provides, such as:
Restful Routes...
Started by Mike Trpcic on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Ruby and PHP are quite different CakePHP and Rails and they are quite similar but as mentioned above, the underlying language makes.
Which-one-is-closest-to-php
I'm afraid your question is flawed.
|