All Questions
3 questions
-1
votes
1
answer
1k
views
Duplicate code to avoid performance decrease due to function calls? [closed]
I have a simple list in Java that I need to search using one of two methods. The first method simply returns the position in the list of the first matching element. The second filters out any elements ...
8
votes
1
answer
3k
views
In Java, why use bit hacks when non-bitwise technique it is more readable?
Is there any legitimate use for bit manipulation hacks in higher-level languages such as Java?
I can see them being useful in speed-sensitive low-level and computation-intensive programs, e.g. ...
49
votes
10
answers
3k
views
When does "proper" programming no longer matter?
I've been building an android game in my spare time. It's using the libgdx library so quite a bit of the heavy lifting is done for me.
While developing, I carelessly selected datatypes for some ...