119 reputation
2
bio website nucleint.com
location New York, NY
age 29
visits member for 2 years, 7 months
seen Apr 16 at 20:36

Apr
4
comment Zero behavior objects in OOP - my design dilemma
Got'cha. I guess that'd be why I've seen so many hand-rolled "inheritance the way I want it" implementations in JS.
Apr
4
comment Zero behavior objects in OOP - my design dilemma
I think behavior-less classes are a "bad smell" because so many are likely to implement anemic models. In the case of the answer to this, though, I'd posit that - like the answer-er says - a card needn't know anything, so if I came across a card-game app that generally had logic and data in classes but represented cards as structs, I'd consider it a good design choice.
Apr
4
comment Zero behavior objects in OOP - my design dilemma
Haha :) I think what you're saying is that you fall into the latter school of thought. Perhaps I'm unclear as to exactly what constitutes a class (the ability to have an honestly private scope?), but I'd assume having a constructor, properties for "internal" state, and methods tied those properties would make them classes? You also get inheritance if you're willing to mess with the prototype chain.
Apr
4
comment Zero behavior objects in OOP - my design dilemma
Some really good comments here, but aren't there actually classes in Javascript? Or - because it's not really built for hiding logic or data from other logic or data - are you all simply not considering these true implementations of Classes?
Nov
20
answered Duplication of code (backend and javascript - knockout)
Nov
20
awarded  Supporter
Nov
18
answered Microkernel architectural pattern and applicability for business applications
Nov
17
answered Architecture of interaction modes (“paint tools”) for a 3D paint program
Jun
19
comment Extensibility data model pattern
Sorry...didn't really notice your followup solution until...now o:) Also I'm not too familiar with C# syntax so I'm not exactly sure what you're expressing w/ the code below.
Feb
24
awarded  Teacher
Feb
23
answered Retexturing a model via API on the web
Feb
23
answered Extensibility data model pattern