333 reputation
312
bio website
location
age
visits member for 2 years, 11 months
seen yesterday

Dec
8
awarded  Enlightened
Dec
8
awarded  Nice Answer
Dec
8
awarded  Yearling
Dec
7
revised How to best do cross-browser cross-platform visual CSS regression testing?
added 98 characters in body
Dec
7
answered How to best do cross-browser cross-platform visual CSS regression testing?
Dec
1
comment Is doing Parent.call from the child object a right way to implement Inheritance in JavaScript?
@JimmyHoffa what you're describing sounds to me like what Crockford calls "functional inheritance". I don't think that pattern deals with the "super" issue any more cleanly than prototypal inheritance, though. As far as I can tell this question is really about referencing the parent explicitly rather than having some kind of super keyword.
Dec
1
revised Is doing Parent.call from the child object a right way to implement Inheritance in JavaScript?
added 417 characters in body
Dec
1
answered Is doing Parent.call from the child object a right way to implement Inheritance in JavaScript?
Nov
30
comment What is the difference between user requirements and system requirements?
@5had3sofQu4rtz that seems like a pretty unconventional meaning for "system requirements." I've never seen it mean anything other than what a program needs in order to run. For example, system requirements for Windows 8, system requirements for Diablo III. I'd take that author's definition with a large grain of salt.
Nov
30
comment Web components and performance
Are you confusing Shadow DOM with the "virtual DOM" that things like React use?
Nov
29
comment What is the difference between user requirements and system requirements?
@5had3sofQu4rtz a program's intended user base users might need the program to have a save feature and an undo feature (user requirements). The program might need half a gig of disk space and half a gig of ram to run, and maybe it only runs on Windows (system requirements).
Nov
29
comment What is the difference between user requirements and system requirements?
They are entirely different. User requirements are features the users need the software product to support, and system requirements are features the software product needs the host environment to support.
Nov
26
comment Entity Component System Coupling
@Telastyn good point about the second case, the system could just check if two "position" components have the same identity. For the first case, the ability to change components on the fly is one of the things about this pattern that appeals to me. Maybe I'm abusing the pattern by doing this, but I assumed the OP here was doing the same: "Systems are responsible for the actually modifying the entities by changing their components." But maybe this means changing the properties of components, not changing which components an entity is composed of. I might write up a question about that later.
Nov
26
comment Entity Component System Coupling
@Telastyn I've run into two cases where systems need access to the entity being processed and not just its components. A system might need to add a component to an entity, or remove one. It might also need to check if an entity is the same as the one being processed; for example imagine a system where you need to find the nearest entity to the entity being processed (that could probably be handled with some kind of "identity" component, but using the identity of the entity itself seems more straightforward).
Nov
25
comment How can I fetch data from more than one web services simultaneously in PHP?
This is actually a common problem when working on property rental portals in my experience. Property managers use a variety of data providers to get their property info into various portals. A good portal will want to pull from a number of providers and aggregate all of this into a local database. The information also changes fairly often, since rates are seasonal and availability calendars change all the time. We used to handle this by pulling updates from each provider once a night, and pulling a last-minute update for an individual property when a customer was ready to book.
Nov
24
comment Find 'Connected Components' in undirected, unweighted graph coded as a 2d array
You could make a copy of the graph, then iterate through each node, doing a flood fill from that node. As you do the flood fill, change the value of each connected node to 0. At the end of the flood fill, increment a counter. When your iterator moves to the next node, skip it if it has a value of 0. At the end, each node should be 0 and your counter should contain the number of connected components.
Nov
23
answered What are the advantages of using async JavaScript modules (like AMD) for traditional sites?
Nov
22
awarded  Revival
Nov
22
comment Find common ancestor
Assuming it's a dynamic tree, the most straightforward way is probably to walk from each leaf up to the root of the tree, unshifting each node onto the front of an array, then check the arrays for the index that doesn't contain the same node in each array. The node at the index before that is the lowest common ancestor.
Nov
21
revised Are promises suitable for Model Controller communication?
added 47 characters in body