All Questions
3 questions
-1
votes
1
answer
66
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
vote
3
answers
255
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,...