Questions about Ruby, dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.
-2
votes
0answers
27 views
Store/Delete a string permanently in Ruby [closed]
Can you create a program in ruby that can store a string or delete and replace them permanently?
Yes I know you can store and change a string that is stored in a variable by writing
var1 = "Hello ...
0
votes
1answer
91 views
How does dependency inversion principle work in languages without interfaces?
In C#/Java, the dependency inversion principle is often demonstrated by high-level classes that depends on an interface/abstraction (that it owns). Low-level classes will implement the interface, thus ...
9
votes
3answers
1k views
What functionality does WebStorm contain which RubyMine does not?
I am looking at buying Rubymine as I am doing a small amount of ruby, but a large amount of html5/javascript.
I was going to get Webstorm as I do have a lot of pure html5/js based frameworks/apps ...
2
votes
1answer
110 views
Attempt at understanding the double-dispatch pattern
I've been trying to grok the double-dispatch pattern and having a hard time. I finally attempted a sample program to help myself understand. Here's the gist. But then I decided to attempt it without ...
0
votes
1answer
68 views
Online stores service design
I am designing an online store service app with rails. Everyone who wants to make his/her own store can do it with this app by just signing up and choosing a domain. I want to make it as SaaS as it ...
0
votes
2answers
196 views
How to execute a Ruby file in Java, capable of calling functions from the Java program and receiving primitive-type results?
I do not fully understand what am I asking (lol!), well, in the sense of if it is even possible, that is. If it isn't, sorry.
Suppose I have a Java program. It has a Main and a JavaCalculator class. ...
-2
votes
1answer
112 views
Preliminary Ruby Resources [closed]
I've been programming with PHP for awhile as both a professional/hobbyist and would like to learn Ruby as well. I was going to pick up Agile Web Development with Rails and was wondering if there is ...
2
votes
0answers
215 views
How difficult would it be to port Rails to PHP 5.4? [closed]
I have no intention or desire to do this, but out of idle curiosity, what would be some of the "gotchas" if one were to want to port Rails to PHP 5.4? Would it be possible with a fairly straight ...
-1
votes
1answer
219 views
Simple game using Ruby on Rails [closed]
I want to create a simple game like tic-tac-toe or connect4 or something like that using Rails. I have a (very) basic idea of how to write a Rails app with regular html elements, but I don't really ...
1
vote
1answer
132 views
Should an open source gem contain .rvmrc?
Using .rvmrc seems to be considered a best practice for apps.
But should an open source gem contain .rvmrc in their source code on Github? I think it's not good to require everyone who wants to ...
8
votes
2answers
217 views
Is Non-Deterministic Resource-Management a Leaky Abstraction?
From what I can see, there are two pervasive forms of resource-management: deterministic destruction and explicit. Examples of the former would be C++ destructors and smart pointers or Perl's DESTROY ...
0
votes
1answer
588 views
Python and ruby frameworks equivalent to codeignter [closed]
I am a decent php programmer. I had been learning python for some time due to the django hype. But now I find that I don't like django that much. Reason being it does a bit too much by itself. I ...
1
vote
1answer
88 views
Ruby manager for Windows: Is Ruby's PIK alive or dying?
At first, please forgive probably offtopic and/or notconstructive question, but I truly have no idea where to ask it. At first I targetted StackOverflow there's at least some PIK-related traffic ...
20
votes
6answers
861 views
How to avoid giant glue methods?
In my current job, I've been tasked with cleaning up old code a few times. Often the code is a labyrinth and the data behind it is even more tangled. I find myself combing out things into nice, ...
1
vote
1answer
64 views
Building an RPC framework
I'm curious about what it takes to build a simple and robust RPC framework. I've only looked at a few ruby frameworks but they are all lacking in some way. What I want out of an RPC framework is some ...