380 reputation
19
bio website
location Germany
age 42
visits member for 2 years, 7 months
seen Apr 14 at 10:39

Software Engineer. Mostly Java atm.


Sep
12
comment Is there a specific design strategy that can be applied to solve most chicken-and-egg problems while using immutable objects?
(assuming I understood Haskell's syntax) I think my current solution is actually very similar, but I was wondering if it was the "right one", or if something better exists. First I create an "handle" (reference) for every (not-yet-created) object, then create all objects, giving them the handles they need, and finally initializes the handle to the objects. The objects are themselves immutable, but not the handles.
Sep
12
comment Is there a specific design strategy that can be applied to solve most chicken-and-egg problems while using immutable objects?
This is a good answer, but unfortunately only because I failed to mention that my "materials", indeed my "blocks", are all singleton, so new WaterBlock() just isn't an option. That is the main benefit of immutable, you can reuse them infinitely. Instead of having 500,000 blocks in ram, I have 500,000 references to 100 blocks. Much cheaper!
Sep
12
awarded  Nice Question
Sep
12
comment How to design a system that allows for multiple parallel extensions of the same “component”?
This question: programmers.stackexchange.com/questions/92811/… is less specific, but provides a good explanation of plugin based design.
Sep
12
awarded  Supporter
Sep
12
comment How to design a system that allows for multiple parallel extensions of the same “component”?
It will a be an Internet Client-Server (Cluster) model running on OpenGL. I am mostly "framework unencumbered", that is, I can choose whatever fits my needs, but I want to stick to the JVM. OSGi is an attempt at standardizing "components" (called bundles) for the JVM.
Sep
12
asked Is there a specific design strategy that can be applied to solve most chicken-and-egg problems while using immutable objects?
Sep
12
comment How to design a system that allows for multiple parallel extensions of the same “component”?
Internet Client-Server (Cluster) model. The "mods" have to be installed both on the client and the server to work, but server is partitioned to allow different mods in different regions.
Sep
12
awarded  Student
Sep
12
asked How to design a system that allows for multiple parallel extensions of the same “component”?