New answers tagged coding-standards
0
votes
How to deal with Classes having the same name (different packages)
The standard Java classloaders don't support having multiple class with the same name.
This is what OSGI allows you to do. OSGI allows you to have multiple versions of the same class. Without going ...
0
votes
Is storing computed values always bad?
Just in case you have a calculated value where the calculation is expensive, and done repeatedly. So expensive that you favour speed over code complexity:
Create a backing variable with the last ...
3
votes
Is storing computed values always bad?
To make a true apples-to-apples comparison, modify the first version to make it semantically equivalent to the second, i.e. the class should encapsulate the calculation and not allow any outside to ...
2
votes
Does a `long` ban make sense?
Today I assume that char = 8 bit, short = 16 bit, int = 32 bit, long = 32 or 64 bit, no guarantee either way, long long and int64_t = 64 bit on any device that I write software for, with any compiler.
...
Top 50 recent answers are included
Related Tags
coding-standards × 547coding-style × 148
naming × 58
java × 53
c# × 45
programming-practices × 42
conventions × 38
code-quality × 32
c++ × 30
php × 29
clean-code × 24
naming-standards × 23
.net × 20
python × 19
c × 18
architecture × 17
object-oriented × 15
comments × 15
variables × 14
design × 13
javascript × 13
language-agnostic × 12
readability × 11
standards × 11
design-patterns × 10