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.


Feb
21
comment Why are scientific programming languages so weird?
@Aqwis Answer for your own words. What is weird and not. A thing that is set from the babyhood and by maths (natural numbers do not include zero), can not be weird from any side. And what contradicts with it, IS weird. And that you have accustomed to something else, is irrelevant. These languages simply are not made for you or me.
Feb
21
comment Why are scientific programming languages so weird?
I agree almost with everything, except p.3. Scientists do not make their languages, they ORDER them. They are clients, users, but not their creators. If somebody is, he/she is already an IT geek. And syntax of any language is questionable, no one is ideal for all tasks.
Feb
21
comment Why are scientific programming languages so weird?
@Aqwis Oh, yes, I already see the baby counting zero, one, two... The most natural way, really.
Feb
15
comment Is Lisp the first language to adopt structured programming?
A good historical a theoretical question. +1. Welcome to Programmers!
Feb
15
comment How do I maintain consistency between hard-coded values in different files?
A good conceptual question. +1. Welcome to Programmers!
Jan
27
comment How can I indicate if an object operates with another one in an UML class diagram?
@gnat Yes, I see. Thank you.
Jan
27
comment How can I indicate if an object operates with another one in an UML class diagram?
@gnat Should we really repeat the question in the answer?
Jan
27
comment How can I indicate if an object operates with another one in an UML class diagram?
DAO loads data from DB and CREATES instances of Entity. It is EXACTLY the answer for the 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
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.
Dec
31
comment How do I prevent unknowningly duplicating code?
@Secure 1. I thought I had explained it. Yes, in more theoretical terms, but I am talking to professionals. 2. As for "very often" or "very rare", I think, it depends on the language, frameworks used, the general task and the style of programming (I mean, Pascal style applied to Java etc.). 3. And what is "very often"? For me it is more than once for a project :-)
Dec
30
comment How do I prevent unknowningly duplicating code?
You have forgotten to mention what is the usefulness of expressing two algorithms that only look similar, but really are different, as one module? The code should express the logic of the task. It is my point. You insist that it is bad... Hmmm. You need really hard arguments.
Dec
30
comment How do I prevent unknowningly duplicating code?
@Secure Yes, you can't make code absolutely safe against changes, but you can make it safer. Otherwards all posts on this theme are senseless - go and punish all of us.
Dec
30
comment How do I prevent unknowningly duplicating code?
@Secure If you have two same pieces on different places, and these pieces are really the same - than if you have them united, the possibility to create a new mistake while changing that piece is lower. If these two pieces are the same accidentally, than uniting them will, on the contrary, create dangerous situation, it is very possible that you will need the change in merely one of them. And you will forget that it is used in another place where it is expected to remain the same.
Dec
30
comment How do I prevent unknowningly duplicating code?
@Spoike In the first two cases the potential code duplicating is bad and should be wrapped in some function/class/component/etc. In the third case it is not bad and should be left as is. Where do you see contradictions?