All Questions
4 questions
2
votes
1
answer
118
views
Is it a good software engineering practice to store libraries as attributes of objects?
Suppose I initialize a library, say, in python object -
#filename: file_A
import file_
class A():
def __init__(self):
self.pd = file_.pd
self.np = file_.np
And suppose the ...
8
votes
3
answers
468
views
Would it be better to have extra checks, or would it be a waste of time? [duplicate]
In your opinion, do you think it is a waste of time to make checks that you know there is no possible way of it being there/not being there, or would you just put it there just in case there is a bug ...
3
votes
3
answers
3k
views
Does mobile based (Android) development, benefit from Object Oriented Programming?
My development on Android is based on scientific programs and while I'm building these most of the code is in one or two long classes. When I come to deploy these programs I try to decouple everything ...
276
votes
14
answers
125k
views
Should we avoid object creation in Java?
I was told by a colleague that in Java object creation is the most expensive operation you could perform. So I can only conclude to create as few objects as possible.
This seems somewhat to defeat ...