-
by Aleksey Gureev on Aug 13, 2005
I continue the small tutorial on driving design with tests. It's the second part which brings more thoughts and presents the process in greater detail.
-
by Aleksey Gureev on Aug 9, 2005
This writing will help you overcome several annoyances of Java Web Start in respect to networking.
-
by Aleksey Gureev on Aug 6, 2005
Writing tests is not usually a simple task. When you write tests ahead of code and even ahead of design,
it becomes really trivial task. Having all tests at hand even before you start coding specific
functionality, guaranties that you will (a) spend minimum time, (b) implement what's really
necessary, (c) have all documentation and tests ready, (d) sleep well knowing that you can give
the product away in the middle of the night as it's already tested thoroughly.
-
by Aleksey Gureev on Feb 23, 2005
When it comes to testing, how can you be sure that the cache releases objects when the VM runs low
on memory? This small writing gives some tips about how running out of memory can be simulated
in your test cases safely.
-
by Aleksey Gureev on Fed 2, 2005
What to do when the user interface becomes unresponsive or locks up? How to find out why, when and where?
The answer was always near us and as you will see from the article it's relatively simple. Make a
step towards improving the performance of your developments with this revolutionary new watchdog-like
performance monitor and detector. No SDK or VM patching. Everything can be done on the application level.
-
by Aleksey Gureev on Feb 1, 2005
In some cases you will wish to have the cache of objects, but what if these objects are registered
listeners of some other objects? This hard link between the cached items and persistent ones will
not let the first to be garbage collected. The article shows how this misbehavior can be easily
avoided using soft-referenced wrapper for your listeners.
-
by Aleksey Gureev on Dec 31, 2004
Font for text and font for date are both fonts. Colors for corresponding elements are both colors.
Colors and fonts are properties of some theme. You need some constants to read out properties
(i.e. fonts or colors) from the theme. The safest and clearest way to have them broken into hierarchy
of sub-types. The article is not only about fonts and colors, it's about general approach to
enumeration sub-types and testing of their applications.
Written in the times of Java 1.4
-
by Aleksey Gureev on Dec 23, 2004
Have you ever seen how file managers preparing the thumbnails in the background while you are browsing
some folder on your drive? If you will switch to the other folder and then get back to the first you
will see the thumbnails almost instantly. They were calculated asynchronously and cached. Here's what
the text is about.
Written in the times of Java 1.4
-
by Aleksey Gureev on Dec 22, 2004
What to do when you wish to lock something in one thread, but unlock it in the other? Smells bad?
No. Smells a bit unsafe? Yes. But how on earth it can be done if standard locks can be unlocked
only from the threads they were locked at?
Written in the times of Java 1.4