216 reputation
111
bio website
location
age
visits member for 2 years, 7 months
seen Nov 20 at 23:05

Nov
20
awarded  Popular Question
Nov
5
comment How safe are hidden AJAX requests that fake performance?
Your suggestion is similar to how gmail shows "Saving..." text while the XHR is going, and "Saved" after it's done. If it always said "Saved," who would believe it?
Nov
5
comment How safe are hidden AJAX requests that fake performance?
@JimmyHoffa you would use a unique email id in the delete request. It would be really bad to send delete requests based on the arbitrary display order of the emails in your inbox.
Nov
5
comment How safe are hidden AJAX requests that fake performance?
When composing an email in gmail, you might notice light grey text that says "Saving..." and changes to "Saved" once the operation completes. Another thing is if you have a completely "AJAXy" web app, then couldn't you have handlers for error responses available on all of your "pages"? It's possible because all "navigation" is actually AJAX, and you can still be notified about an error from a previous "page". The error response should allow you to click to go back and view the page with the error and retry or fix the problem.
Oct
14
awarded  Tumbleweed
Oct
7
asked Deduplicating html-attached javascript on page
Sep
27
awarded  Informed
Jul
27
comment Does it make sense to break fluid interface if a bad argument is passed?
@JamesBlack during development, I kind of like having fatal errors that force me to fix bugs immediately. Perhaps when it is ready for customer use, I change the code so that it throws exceptions for the developer, and the customers/users don't see anything weird. ?
Jul
27
comment Does it make sense to break fluid interface if a bad argument is passed?
The more code I write the more I realize that it is a pain to have a method return different types. But I don't mind PHP fatal errors like false->set('number',12) because they show me where there is an unhandled condition in the code. I can use exceptions to do that without breaking the code, but in a way I prefer the code breaks completely than continues running with unplanned for conditions.
Jul
2
awarded  Curious
Jul
2
accepted Do objects maintain identity under all non-cloning conditions in PHP?
Jun
8
revised Do objects maintain identity under all non-cloning conditions in PHP?
added some detail about my understanding of PHP objects and the clone operator
Jun
8
comment Do objects maintain identity under all non-cloning conditions in PHP?
Are you sure about that? I just found this stackoverflow question whose chosen answer states that you do not need to use & with objects. I suppose that fairly soon I will find out for myself once my code is wired and I start testing it. SO: stackoverflow.com/questions/2715026/…
Jun
8
asked Do objects maintain identity under all non-cloning conditions in PHP?
May
15
comment Many-to-many in OOP: Class A instantiates Class B, which instantiates Class A, which
I'm thinking perhaps my third-party would use the "builder pattern." I guess I'll not have the circular dependencies in the constructor. The builder will (somehow?) know which objects to create and then throw them together. Voila. I'm new to design patterns. But my application is getting too complex for me to just keep hacking away at it without a grander scheme.
May
15
comment Many-to-many in OOP: Class A instantiates Class B, which instantiates Class A, which
@teresko I have a mysql database. I have to access it somehow, right?
May
14
asked Many-to-many in OOP: Class A instantiates Class B, which instantiates Class A, which
Apr
27
comment Dependency injection for request variables in a web application
You have to put $_GET['id'] somewhere, though. Should it be outside of all classes, in a functional area of the code? Or should there be a class whose sole purpose is to take globals into itself and instantiate objects of other classes based on them?
Apr
27
awarded  Yearling
Apr
27
asked Dependency injection for request variables in a web application