This account is temporarily suspended network-wide. The suspension period ends on May 11 '24 at 18:00.
Reputation
Top tag
Next privilege 5 Rep.
Participate in meta
Badges
7
Newest
 Student
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 20 votes cast
Aug
7
awarded  Custodian
Aug
7
awarded  Scholar
Aug
7
awarded  Student
Jul
14
comment Is there any “real” reason multiple inheritance is hated?
Good answer. I think that it could also answer my question. Since most of the languages ascend to some root class, we can roughly say that you cannot have multiple inheritance without Diamond. That is why MI is reduced to diamond. But, it still should be wrong for rare languages without common parent and, moreover, for the interfaces, which never have it. I had an example in my question where declaring getName in two clashing interfaces had some sense (I don't remember why I didn't use toString there).
Jul
14
comment Is there any “real” reason multiple inheritance is hated?
Why do you call the Ordered extends Set and Sequence a Diamond? It is just a Join. It lacks the hat vertex. Why do you call it a diamond? I asked here but it seems a taboo question. How did you know that you need to call this triangualar structure a Diamond rather than Join?
Jul
14
comment How to reduce a switch in a switch statement?
@Deduplicator Do that by default and handle exceptional cases separately.
Feb
2
accepted What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?
Feb
1
comment What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?
@user61852 It does not matter. I tried to use : in place of = because I use this exclusively in javascript (although my question is not limited to my app, therefore it is irrelevant to ask about its language at all) but this did not help me to read the config as JSON object. JSON requires all values quoted, which is unnecessary burden on the user.
Feb
1
comment What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?
Well, I will specify it to the user. I had a simple line per equality-separated key/value pair format in mind. That is, every line is split by = and quotes are not the issue whereas it is unclear with whitespaces because I prefer to have them and this creates ambiguity. Saying that leading/ending whitespaces are trimmed is enough. Thanks.
Feb
1
asked What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?
Sep
24
awarded  Autobiographer
Jul
12
comment What does mathematics have to do with programming?
That is why they are so sure (you mock this belief out in your answer) that DRY does not exist outside the field, though it is universal principle of any truth/beauty/efficiency, aka Occam's Razor. I am tired of programmer stupidity and math arrogance.
Jul
12
comment What does mathematics have to do with programming?
Well, I like to see that things are identical essentially, at the abstract level. Yet, I am punished for that thinking. Mathematicians say that programming functions are not pure and just punish me when I ask to clarify the difference between single num and single-entry vector, math.stackexchange.com/questions/384927. They say that there is not single notion of vector, e.g. programmers forbid to think about objects as collectins of fields which identifies them with DB records and dynamical system state vectors.
Jul
12
comment What does mathematics have to do with programming?
Donald Knuth. Mathematicians think that he is a programmer, programmers think that he is a matematician. He, therefore, must connect these two fields.
Sep
25
comment Why is “tight coupling between functions and data” bad?
Coupled with the fact that inheritance is evil (you must contain rather than extend) and there is no advantage in replacing conditionals with polymorphism, we can conclude that OOP is meaningles from very beginning, valjok.blogspot.com/2013/01/…
Sep
2
comment Be liberal in what you accept… or not?
How showing some case does not show that case?
Sep
2
comment Be liberal in what you accept… or not?
I wonder what is the difference between HTML and general data? The robustness principle is about communication. One writes - one reads. Why network communication is different than visual or API? I have an API example where the principle of being liberal at what we accept simplifies the life of users who are programmers, reduces the code size and, therefore, improves performances + eliminates bugs. Look stackoverflow.com/questions/18576849
Sep
2
comment Be liberal in what you accept… or not?
You are saying that fail-fast, which is opposite of "robust" is more efficient.
Aug
1
comment Why must a constructor's call to the superconstructor be the first call?
Can you elaborate? What makes deferred super initialization acceptable in Delphi that breaks in Java? If you've realized something important, it might be a good answer.
Aug
1
comment Why must a constructor's call to the superconstructor be the first call?
It was tagget 'Java' to discuss the restriction we see in that language, not to prohibit comparison with other OOP implementations.