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

1d
comment Why use JSON dataset rather than SQL Query?
About the only thing I could think of is "security" - by preventing an external source accessing the SAP service directly, you can't have someone break into the SQL port and issue a DELETE statement... It's a bit of a naive solution, but there you go.
1d
answered Android continually checking Internet, Bluetooth and GPS status?
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
16
awarded  Yearling
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
answered Factory of factories?
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
7
answered What licenses restrict distribution, liability, and commercial use?
Nov
4
awarded  Explainer
Nov
4
revised How to debug javascript in browsers that don't have a console interface?
fixed error in test for console - link to other question
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
revised How to debug javascript in browsers that don't have a console interface?
edited title
Nov
4
answered How to debug javascript in browsers that don't have a console interface?
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