All Questions
Tagged with ruby programming-practices
5 questions
-1
votes
1
answer
71
views
Where is it appropriate to implement the split_array method
I am writing an implementation of a binary search tree and in doing this I need a method that splits an array in two.
I am unsure where it is appropriate to place this method. What I mean by "where ...
-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
3
answers
260
views
When is it ok to instantiate all of my objects upfront?
I am currently working with a contractor who's code instantiates a large number of objects upfront at the start of the application. This application is written in ruby, but I wonder how something ...
21
votes
5
answers
2k
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, neat,...
16
votes
5
answers
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 ...