Reputation
2,402
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
10 21
Newest
 Yearling
Impact
~180k people reached

Feb
5
comment Child class accessing its parent's method from Ancestor method
I think the start of your trouble is conflating hierarchy in a file directory with hierarchy in class inheritance, and now you're trying to overcome that by some awkward contortions. Could you provide (simplified - even pseudo-code) source code for all three classes and a description of how the objects relate to the paths and what you want them to do.
Jan
11
comment Is it possible to mock and inject traits in PHPUnit?
nothing wrong with mocking out the inherited methods from the trait - that's how you isolate the specific method for testing.
Nov
27
comment Factory of factories?
In GTA, they probably just have a single VehicleFactory... there isn't a lot of difference in essential between bike and a jet from a factory point of view (other than appropriate location)
Nov
27
comment Factory of factories?
@dan1111 - 3D printers can even make more 3D printers ;) in any event - while in the real world you have factories that create more factories, in programming you'd have strategies to determine the appropriate factory to build a bike/car/printer.
Nov
27
comment Factory of factories?
@q126y - so you have a BikeFactory - why do you need multiple BikeFactories?
Nov
27
comment Factory of factories?
can you provide details on what is the actual problem this FoF trying to solve? it might be more appropriate to use inject some kind of factory manager using dependency injection
Nov
9
comment Shopping cart in PHP : Sessions or Database?
no - i'm saying you need to find out why sessions are breaking
Nov
9
comment Shopping cart in PHP : Sessions or Database?
Even if you store the cart in the database, how are you going to reliably identify the user on each page load (and link them to their cart) if your session data is unreliable - you need to find out why you sessions are breaking.
Nov
7
comment What licenses restrict distribution, liability, and commercial use?
yeah, should have mentioned the lawyers...
Nov
4
comment How to debug javascript in browsers that don't have a console interface?
pretty sure the number of browsers that don't have a console interface for javascript is equally small - but that might help with certain prejudices against IE6 (which should be killed with fire)
Nov
4
comment How to debug javascript in browsers that don't have a console interface?
yeah, and you can replicate that by having some element container in your page and instead of relying on "console.log" you append that information to that element container
Nov
4
comment How to debug javascript in browsers that don't have a console interface?
append to a "console" element in the page?
Nov
3
comment How to reconcile “not mocking what you don't own” with “expectations” in unit tests?
So, this was a pattern a developer who used to work for me started to implement. We were all naive then, I think.
Nov
3
comment How to reconcile “not mocking what you don't own” with “expectations” in unit tests?
Three good answers - hard to pick one out for acceptance. Thanks.
Jul
16
comment An Introductory Tutorial for Neural Net Backpropagation with Simplified Math
well - the α is just a label - it's the greek letter alpha - and its only use here is to indicate the output neuron - as for the δ - this is the greek letter delta, and it's used in maths to indicate a change in value - so, δα is the error in neuron α
Apr
21
comment Do legal names matter with source code licensing in the USA?
you probably need to ask a lawyer - but copyright is copyright - you'd still have copyright on your work under and alias, but you would have a harder time enforcing it without disclosing you true identity.
Apr
16
comment Why do many exception messages not contain useful details?
@MasonWheeler - not all computer users are computer owners - company machines used by one or more employees, for example.
Apr
2
comment Is there a common reason a more technical/traditional web developer should use a CMS for his/her own purposes?
wait - you were trying to code PHP for a WP plugin through the CMS? there are better ways to do that
Mar
31
comment Why are people making tables with divs?
how does this go anywhere close to answering the question?
Mar
31
comment Why are people making tables with divs?
and if you look at the other two answers here, you will see that neither say simply "because it's the rule" - they both lay out very clear justifications for the rule and use cases