2,351 reputation
1126
bio website sleepeasysoftware.com
location Los Angeles, CA 90066
age
visits member for 2 years, 6 months
seen Dec 18 at 17:49

Oct
14
revised How to refactor an OO program into a functional one?
added 358 characters in body
Oct
14
answered How to refactor an OO program into a functional one?
Oct
14
comment Is it bad practice to check object types with an identifying member variable?
@amon personally, every time I try to use the visitor pattern the code becomes harder to maintain. I'm a java programmer though, maybe that makes a difference.
Oct
11
revised Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
added 283 characters in body
Oct
7
comment What are the advantages of converting empty strings to evaluate to true as compared to false?
Did you mean to say "false-ish"? To rephrase your answer, are you saying, "Because you can write less"?
Oct
7
awarded  Nice Question
Oct
5
comment Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
@jozefg you often do that in Java too with a private constructor and a static method to create a new instance. But rarely does one create a class with a private constructor and public fields. And if someone did, that would seem like the opposite of data hiding to me. Maybe you can explain what I'm missing here.
Oct
4
comment Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
@AndresF. ah yeah that's true. I forgot that Haskell has modules and you can hide data types and functions in them. Perhaps when I say FP I'm really saying Clojure. You can have private functions and "fields" in Clojure, but I feel like it's idiomatic to make your data visible to anything and pass it anywhere.
Oct
4
revised Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
deleted 128 characters in body
Oct
4
asked Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
Sep
17
comment Is the Entity Component System architecture object oriented by definition?
Yes, thanks. Can you give a concrete example of how a component would manage its own interaction by responding to external events?
Sep
17
comment Is the Entity Component System architecture object oriented by definition?
@JonPurdy I don't mean to offend, but I'm having trouble pinning down your opinion on anything you say. Your replies are leaving me with more questions than answers. EG: in your latest reply you say, "not contradictory to, but certainly broader than". How do you figure? The wiki article says "no game methods" and "minimal data" in the E and C, respectively. You're saying E and/or Cs can directly communicate. I don't know of any way to do that but with logic. That seems to directly contradict the wiki. If not, explain how. Thanks.
Sep
17
comment Is the Entity Component System architecture object oriented by definition?
@JonPurdy also, "entities might be aggregates of components, which communicate directly, implicitly by their type, or by message passing or events" seems to contradict the wikipedia article quotes I've given. Entity = Data, Component = Data, System = Behavior. That means communicating directly is out. And if anything's going to be message passing or sending events, it's going to be the System. The Components might be the message, but they won't be directly involved in sending the message. At least that's my interpretation.
Sep
17
comment Is the Entity Component System architecture object oriented by definition?
@JonPurdy Well what part of ECS crosses that line to make you say it's an "object-oriented architectural technique"? I don't think I understand what that line is.
Sep
17
comment Is the Entity Component System architecture object oriented by definition?
To add on to @delnan's question, are you disagreeing with the snippet of the OO wikipedia article I quoted?
Sep
17
revised Is the Entity Component System architecture object oriented by definition?
added 4 characters in body
Sep
16
revised Is the Entity Component System architecture object oriented by definition?
added 12 characters in body
Sep
16
revised Is the Entity Component System architecture object oriented by definition?
added 82 characters in body
Sep
16
revised Is the Entity Component System architecture object oriented by definition?
added 75 characters in body; edited title
Sep
16
asked Is the Entity Component System architecture object oriented by definition?