All Questions
31 questions
1
vote
1
answer
1k
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
1
answer
95
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
0
answers
187
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 ...
9
votes
1
answer
340
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
1
answer
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
1
answer
2k
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
2
answers
547
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
1
answer
2k
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 ...
25
votes
3
answers
4k
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
2
answers
700
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-...
17
votes
1
answer
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
2
answers
287
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
2
answers
401
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
1
answer
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
1
answer
3k
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 ...