943 reputation
721
bio website accelerando.euweb.cz
location Prague, Czech Republic
age 52
visits member for 2 years, 6 months
seen Jul 4 at 10:41

Senior developer, algorithms master, PM, analyst, applied mathematician.

The Three Little Daughters Raiser

Hobbies:
logics, history, psychology, sociology, pedagogics, photo, cycling, hiking.

In past:
space-/astro- geodesist, cartographer, astronomer, teacher, radiometrist on the liquidation of the Chernobyl catastrophe in 1986.


Jan
27
answered Is UML a good way to shortly and simply explain a concept?
Jan
27
answered Package diagram for an MVC patterned project?
Jan
16
revised How to show an “or includes” relationship - UML Use case diagram
added 12 characters in body
Jan
15
answered How to show an “or includes” relationship - UML Use case diagram
Dec
30
awarded  Yearling
Sep
12
answered Fields vs method arguments
Jul
1
awarded  Notable Question
Apr
17
awarded  Popular Question
Mar
3
awarded  Notable Question
Feb
26
awarded  Constituent
Feb
26
awarded  Caucus
Feb
15
awarded  Nice Question
Jan
18
comment Replacement for instanceof Java?
@delnan The author says he should avoid instanceOf with the reason, as I understood, being purely administrative. At least I don't know the reason. So, I can't argument for other ways, I can only propose variants.
Jan
18
revised Replacement for instanceof Java?
deleted 147 characters in body
Jan
18
comment Replacement for instanceof Java?
After reading from a DB, you are setting the value to a freshly created object. It will have a class as declared, not necesarily equal to the class of the read value. So, you have to find out what class you have. Or what sort of data a class has - in the case of single class with switching among different classes of data
Jan
18
comment Replacement for instanceof Java?
@Schmooo Are you sure you need three different classes? Maybe one class with a switch inside will serve better?
Jan
18
comment Replacement for instanceof Java?
@Schmooo And getClass should be avoided, too?
Jan
18
comment Replacement for instanceof Java?
@delnan The QA was - what else except instanceof can be used. I answered it. And added a link to comparison. As a bonus. So, your attack is excessive.
Jan
18
comment Replacement for instanceof Java?
@Schmooo If you have saved an instance of a class in some way that preserves the class, you can use either getClass or instanceof. If you haven't preserved the class, you can use neither.
Jan
18
comment Replacement for instanceof Java?
I have nothing against your first sentence. But the second one - sorry, I can't understand what do you mean at all.