All Questions
32
questions
0
votes
1answer
719 views
How would I integrate python code into Ruby code?
For instance, if I wanted to make a game which used a Python main file, but have another file with Ruby methods on it, how would I call those methods individually?
Secondly, how could I make a Ruby ...
-1
votes
1answer
86 views
Can I use python 3.5.2 on my machine for development if the client is 3.4?
Here is the situation, I wish to use the last programming language of ruby, python and some more on my development machine, but the server where it will be is not last version of that programming ...
1
vote
0answers
175 views
Choosing Between Ruby and Python for a FS Microservice Backend in Node App [closed]
I have been working on a application that up until now has been pure Node. However I am concerned about performance and overhead since the application performs a lot of file system operations (Copy ...
10
votes
1answer
316 views
Python's join seems to focus not on the items to join, but on the symbol, as compared to Ruby or Smalltalk, for a design reason?
I thought one of the cornerstone of OOP is that, we have objects, which are the items we are interested in dealing with, and then we send messages to them.
So it may seem natural that, I have a ...
8
votes
2answers
5k views
How are scripting languages compiled?
I know the term "scripting languages" is just a subset of programming languages, but I want to refer to programming languages such as Python and Ruby among others.
First of all, why don't we need a ...
1
vote
1answer
1k views
Unevenly distributed random number generation [duplicate]
Let's say I have to generate random number from 1 to 100, however, the probability of each number is not 1/100, but a predefined probability.
How to generate that number? I use Ruby/Python.
8
votes
2answers
510 views
Why don't Python and Ruby make a distinction between declaring and assigning a value to variables?
Two of the most popular dynamically typed scripting languages, Python and Ruby, do not make a distinction in syntax between the declaration of a variable and assignation of a value to it.
That is in ...
-1
votes
1answer
756 views
Is there a purely technical term for 'monkey patching' [closed]
EDIT The original title of the question was Is there a non-derogatory term for 'monkey patching'. As I have learned that the term is actually not derogatory, or is at least not meant to be, I changed ...
22
votes
3answers
3k views
Why do so many languages treat numbers starting with 0 as octal?
I've read Where are octals useful? and it seems like octals are something that were once upon a time useful.
Many languages treat numbers preceding with a 0 as octal, so the literal 010 is actually 8....
5
votes
2answers
627 views
Is using static-typing the solution to domain-driven design and decreasing the number of errors?
We are using PHP (a dynamically-typed language) in our project. However, I have found my colleagues asking questions such as https://stackoverflow.com/questions/20438322/modeling-a-binary-relationship-...
16
votes
1answer
12k views
Why did Microsoft abandon IronRuby and IronPython? [closed]
Several years ago, Microsoft announced that Ruby and Python were coming to .net. The projects were called IronRuby and IronPython, respectively. Microsoft said that the projects would be built on ...
7
votes
2answers
277 views
How to share control of links/domains on an open source project with many collaborators?
I'm trying to help the Rebol project re-engineer its web presence now that it is open source as Apache 2 — after nearly two decades of proprietary license!
The language's creator currently has ...
3
votes
2answers
398 views
Getting practicality of PHP from Ruby or Python
I have a rather odd problem. I love the practicality of PHP - specifically that I can fairly safely assume that on any random server I'll have access to the MySQL libraries, and that I can go between ...
2
votes
1answer
11k views
Why does gmail use java? Is there really a advantage over something like php or python? [closed]
Note: I know that none of you (probably) work for google, so this is a lot more of a conceptual question.
So yeah, i discovered that Gmail uses java and that got me thinking, Why?
I personally never ...
3
votes
1answer
2k views
Is it possible to write a code without class methods, globals, and class variables? [closed]
I'm designing my own programming language for fun, and I'm thinking of making it fully Object-oriented (no statics, no globals, no class variables, no class methods), so I need to find a way to ...
3
votes
2answers
447 views
How to fix bad fundamentals? [closed]
I am a native PHP developer, and have been for about a year or so. I love PHP and it was very easy for me to learn, but I have developed some bad habits along the way due to never having a formal ...
1
vote
2answers
1k views
Is it worth converting a Django project to Rails?
I have a project I shelved a while back- it was essentially a working web app built in django but I stopped working on it to work on something else.
I plan on starting it up again in my spare time, ...
16
votes
5answers
7k views
Is monkeypatching considered good programming practice?
I've been under impression, that monkeypatching is more in quick and dirty hack category, rather than standard, good programming practice. While I'd used from time to time to fix minor issues with 3rd ...
107
votes
10answers
77k views
Why is Python used for high-performance/scientific computing (but Ruby isn't)?
There's a quote from a PyCon 2011 talk that goes:
At least in our shop (Argonne National Laboratory) we have three
accepted languages for scientific computing. In this order they are
C/C++, ...
0
votes
1answer
217 views
Whole Solution Complexity … vs Development Complexity
I am generally a PHP Developer that deals in a few different MVC frameworks. I am being tempted (like most) to break out of my comfortable LAMP environment in pursuit of a "prettier" and "more simple"...
34
votes
4answers
6k views
A concrete example of Python's “only one way to do it” maxim? [closed]
I am learning Python and am intrigued by the following point in PEP 20 The Zen of Python:
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be ...
3
votes
2answers
1k views
Why do ruby and python seem to have more community contribution than PHP? [closed]
In a recent blog post by Roy Osherove, it is pointed out that his switch from primarily .Net development to ruby development has seen a huge difference in community involvement and really enjoys it.
...
8
votes
6answers
12k views
What language to use for prototyping and creating quick scripts? [closed]
Right now, I use Python for my quick scripts and prototypes (e.g. algorithms, my pseudocode is very Python-like as well). The oher languages that I am familiar with include Java, C, x86 Assembly and ...
7
votes
7answers
8k views
What advantages switching to ruby might give me as a python programmer? [closed]
This is my first question on stackoverflow, so please bear with me.
I'm trying to stay away from any form of trolling or flame baiting as i have a tremendous respect for both languages.
I'm a python ...
16
votes
5answers
8k views
What should a Python developer know while learning Ruby? [closed]
I have been a Python programmer for about 18 months, consisting of one internship and a few side projects, and I consider myself pretty comfortable in the language.
However, there seems to be a lot ...
6
votes
3answers
1k views
What do you think about gems and eggs? Alternatives? [closed]
I've read recently some criticism (see 1, 2, 3) about the packaging distribution system of two popular programming languages: Ruby gems and Python eggs. The most important argument stated against them ...
24
votes
8answers
23k views
Ruby or Python? [closed]
This question is extremely subjective and open-ended. It might even sound like something I should just research for myself and make my own decision. But I'd like to put it out there and get some ...
1
vote
3answers
3k views
Why is C# ASP.NET generally not regarded as a rapid web development framework?
The terms rapid web development gets associated with Python/Django and ROR. Why is this not the case with C# ASP.NET?
11
votes
7answers
2k views
Is there anyone who has used Python/Ruby and PHP for a long time and still prefer PHP? [closed]
I am usually fascinated by articles defending PHP and the arguments being used. Quite often authors of these types of articles don't mention what experience they have with other languages. Personally ...
3
votes
2answers
176 views
Do system background services affect languages benchmarking?
Today I was looking at some blogs on Ruby and Python. A Python loyalist wrote a few lines of code with a loop to show how Python is faster than Ruby, with a similar code. I also found a blog of a Ruby ...
10
votes
8answers
2k views
How to end my dependency on .NET? [closed]
I have been developing Windows GUI applications since many years and jumped into .NET in early 2005. .NET is a undoubtedly a remarkable platform and I am still using it, but with a variety of ...
12
votes
4answers
1k views
Do you think that GAE alone is enough to justify learning Python over Ruby? [closed]
Considering the fact that you don't have to get involved in setting up/buying a server or even buying a domain, do you think that fact alone is enough to choose one over the other?
I don't ...