1,879 reputation
822
bio website
location
age
visits member for 1 year, 10 months
seen Apr 15 at 23:37

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?
Aug
23
comment “Everything is a Map”, am I doing this right?
@SebastianRedl What am I supposed to pass for parent? Is repetitions and array of numbers or strings or does it not matter? Or maybe repetitions is just a number to represent the number of repretitions I want? There's plenty of apis out there that just take an options object. The world is a better place if you name things correctly, but it doesn't guarantee you'll know how to use the api, no questions asked.
Aug
22
awarded  Notable Question
Aug
19
comment “Everything is a Map”, am I doing this right?
I read this Fogus/Hickey interview before, but I wasn't capable of understanding what he was talking about until now. Thanks for your answer. Still not sure if Hickey/Fogus would give my design their blessing though. I'm concerned I took the spirit of their advice to the extreme.
Aug
19
comment “Everything is a Map”, am I doing this right?
I think my comments to @Evicatos will elaborate on my position here. Yes, I'm mutating and the functions aren't pure. But, my functions are really easy to test, especially in hindsight for regression defects I didn't plan on testing. Half the credit goes to JS: It's very easy to construct a "map"/object with only the data I need for my test. Then it's as simple as passing it in and checking the mutations. Side-effects are always represented in the map, so they're easy to test.
Aug
18
awarded  Good Question
Aug
17
awarded  Self-Learner
Aug
16
awarded  Popular Question
Aug
14
comment “Everything is a Map”, am I doing this right?
@MattFenwick Yes I'm saying that.
Aug
14
comment “Everything is a Map”, am I doing this right?
@MattFenwick Are you expecting the bad/Clojure and good/imperative to be similar? There's a reason I wrote ;;good above the imperative. It's supposed to be similar to the good/Clojure
Aug
14
revised “Everything is a Map”, am I doing this right?
edited body
Aug
14
comment “Everything is a Map”, am I doing this right?
Your second paragraph make sense to me and that really sounds like it sucks. I'm getting the sense from your third paragraph that we aren't really talking about the same design though. "re-use" is the point. It'd be wrong to avoid it. And I really can't relate to your last paragraph. I have every function take the gameState without knowing anything about what happened before or after it. It simply reacts to the data it's given. How did you get into a situation where the functions would step on each others toes? Can you give an example?
Aug
14
revised “Everything is a Map”, am I doing this right?
added 3 characters in body
Aug
14
revised “Everything is a Map”, am I doing this right?
deleted 20 characters in body
Aug
14
answered “Everything is a Map”, am I doing this right?