234 reputation
112
bio website cdeszaq.com
location Madison, WI
age 26
visits member for 3 years
seen Apr 7 at 19:12

Currently working with:

  • Groovy
  • Grails
  • Griffon

Apr
18
awarded  Yearling
Apr
3
comment What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
So almost like a template method pattern. That makes sense. Thanks!
Apr
3
comment What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
The update seems much more along the lines of what I'm after. But it would require that Foo know all of the possible "behaviors" (or States), which seems a bit inverted. However, it is much closer to what I'm after than plain Interfaces.
Apr
3
comment What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
Yes, this is definitely along the lines of what I'm looking for. How would I go about asking each Role if they can doIt?
Apr
3
comment What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
No, I'm not looking for Interfaces because those are locked in at compile time and I need something that can change at runtime as my parent Foo changes from being a Bar to a Baz. Also, Interfaces require each concrete class to implement functionality/data-structure, which is the opposite of what I want.
Apr
2
comment What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
Right, that's the most basic level of it, but the issue is when each "role" gives the "user" object (in code) additional fields and methods. The "extra stuff" for each role is what I'm trying to get. Plain vanilla Roles are easy.
Apr
2
asked What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)
Feb
10
awarded  Talkative
Feb
10
awarded  Scholar
Feb
10
accepted What are graph datastores better at doing than other datastores and why?
Feb
9
comment What are graph datastores better at doing than other datastores and why?
From the comment: The graph datastores surface the relationship-as-data aspect that relational models struggle with
Feb
9
comment What are graph datastores better at doing than other datastores and why?
With the edit: Also multi-relational data? Commonly called ternary relationships, where you need to connect n different entities so a RDBMS "associative table" gets unwieldy as the number of entities to connect gets larger?
Feb
9
comment What are graph datastores better at doing than other datastores and why?
So, answering the the n-steps-away sorts of questions? Or, to put it another way, answering questions that rely on transitivity?
Feb
9
revised What are graph datastores better at doing than other datastores and why?
Edited question for clarity
Feb
9
asked What are graph datastores better at doing than other datastores and why?
Feb
3
awarded  Organizer
Feb
3
revised What Special characters should one allow for a Phone Number?
Cleanup of post
Feb
3
suggested suggested edit on What Special characters should one allow for a Phone Number?
Feb
2
comment How to stop dwelling on problems rather than tasks?
Unfortunately, defining "done" is 80% of the battle, I've often found.
Feb
2
answered Jenkins without Automated Tests