Reputation
555
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 19
Impact
~8k people reached

  • 0 posts edited
  • 1 helpful flag
  • 146 votes cast
Nov
12
revised Which is the most practical way to add functionality to this piece of code?
edited tags
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
This approach looks good, +1! The proposed structure needs some polishing though since it is a work of an enum: enum DataType { TRANSPARENT, PASSABLE, PASSAGE_COST, SATELLITE_DATA} and the whole thing can be used in a map: Map<DataType, Object> data;
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
Sorry, but I don't understand how it works from the example. Where does the incrementCost method go? where does the constant TRANSPARENT go? what is a sealed class? Why should get/setData should be private?
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
I don't want the user to have to extend a class since he may have one which is already extending something.
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
You don't get the point.
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
This is the Rule of the Three, right? I in fact already have a demo application but your answer looks like you think this is a Catch 22: I can't write an interface while there are no applications and I can't write applications while there is no interface. So there should be one interface for a start.
Nov
12
asked Which is the most practical way to add functionality to this piece of code?
Sep
18
asked How can I indicate if an object operates with another one in an UML class diagram?
Aug
31
comment Does macros support make Scala a Lisp dialect?
I think you still live in the last century.
Aug
30
comment Does macros support make Scala a Lisp dialect?
Says someone who is still using Delphi. Ok. I take your word for granted.
Aug
30
asked Does macros support make Scala a Lisp dialect?
Aug
29
asked What is a battery backup up cache?
Aug
27
comment Self reference using a new table vs concatenated list of ids
We are using mysql. Yeah this is my other problem. It is impossible to query the database in a sensible way.
Aug
27
revised Self reference using a new table vs concatenated list of ids
edited tags
Aug
27
asked Self reference using a new table vs concatenated list of ids
Jul
30
comment Explaining technical things to non-technical people
I'm doing this all the time. +1
Jul
30
comment How can I convince management to deal with technical debt?
I just adopted your approach. +1
Jun
12
awarded  Nice Answer
Jun
4
awarded  Yearling
May
23
awarded  Notable Question