895 reputation
46
bio website freshvanilla.org:8080
location Surrey, ND
age
visits member for 3 years, 11 months
seen Oct 13 at 22:18

Dec
25
awarded  Yearling
Dec
10
answered Why not free memory as soon as its reference counter hits zero
Dec
10
comment Why not free memory as soon as its reference counter hits zero
say A refers to B and B refers to A, but nothing refers to either of them. They both have a reference count of 1.
Dec
6
comment Does Java development typically involve more subclassing than C#/.NET?
Note: You can avoid having to provide methods which don't anything by extending an abstract class full of empty implementations. This way you can selectively override the methods which do something. While not as ugly, it means another level of inheritance.
Dec
6
comment Is this a correct implementation of an Immutable class in Java?
The StringBuffer can be modified after you pass it as an argument to your class, it can also be modified after you return it with getName() so no, it's not immutable. BTW StringBuffer shouldn't be used and StringBuilder replaced it nearly ten years ago.
Nov
3
comment Writing low latency Java
I would add using sun.misc.Unsafe, directly or indirectly is useful. Many Unsafe methods are treated as intrinsic which means they are replaced with machine code, which avoids any JNI.
Nov
3
comment Writing low latency Java
For further links and presentations, you might be interested in the Performance Java User's Group plus.google.com/u/1/communities/107178245817384004088
Jan
30
comment Hotswap and alternatives?
@CristianoGhersi If you use an OSGi container it does the class loading for you. It creates a class loader for each module. If you use something like iPOJO it will wire up components between modules and also remove them so you can unload modules which were previous active.
Jan
10
comment What's a schrödinbug?
IMHO a more common en.wikipedia.org/wiki/Heisenbug is when a program happens to work due to a bug elsewhere in the system. The bug was always there but it didn't show until you fixed something. e.g. code which uses undocumented edge cases which could change at any time, or which has work-arounds on work arounds. Java is full of "features" which can't be fixed because it would break code which incorrectly relied on poor behaviour.
Dec
25
awarded  Yearling
Aug
10
answered How to split large, tightly coupled classes?
Apr
12
comment Why are some saying that Java will be the new COBOL?
Fun is writing code you don't believe will compile, let alone does something useful. When you have to support some elses code which does this, its not so fun. ;)
Mar
1
awarded  Mortarboard
Jan
17
answered Can modern OO languages compete with C++'s array store performance?
Jan
7
comment C vs C++ for a Java (and possibly python) Programmer
Learning just C++ instead of C and C++, will make a huge difference ;)
Jan
7
answered C vs C++ for a Java (and possibly python) Programmer
Dec
25
awarded  Yearling
Dec
1
comment Java void methods implicitly returning this
The compiler would have to support this feature (so the calling code would compile) and it could save the object called and use it again without the calling method being altered.
Nov
25
comment What should I learn after Python?
I would call how you manage linked lists and trees algorithms, i.e. its the code rather than the data associated with it that is complicated. For me, data structures are interesting in terms of how you turn a requirement in to the fields which are needed. Perhaps my use of terminology is non-standard. ;)
Nov
25
comment What should I learn after Python?
@ThiefMaster, You are quite right that there is a small set of useful algorithms you actually need to know (which I find more interesting) Most algorithms are interesting to those who like solving mathematical puzzles, but not for everyone.