Reputation
11,438
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 40 64
Impact
~411k people reached

1d
comment Where should PDOExceptions be dealt with?
Yes, that's exactly how it should work.
2d
answered Clean Code: can private methods rely on member variables set by other private methods?
2d
answered Creating two-way object references and keeping data integrity
2d
comment Where should PDOExceptions be dealt with?
you don't need to add special handling for your PDOException in order to do that. All you need is to have a catch-all error handler that will catch the error, log the relevant information, and then send an error response to the client. In the case of an AJAX request, it should return some sort of error code in the http response, and the client side code show show a generic error.
Jul
3
answered How do I make this functional DSL written in an imperative language more efficient?
Jul
3
comment Creating two-way object references and keeping data integrity
Is this just in-memory, or are you storing this in a database?
Jul
3
answered Where should PDOExceptions be dealt with?
Jul
3
comment Where should PDOExceptions be dealt with?
In what circumstances will the PDOException be thrown?
Jul
1
awarded  Great Question
Jun
30
comment How do I make this functional DSL written in an imperative language more efficient?
Do you have conditionals?
Jun
29
comment How do I make this functional DSL written in an imperative language more efficient?
In the example you've given, you could "recompile" it down to a constant, but I'm guessing you've got parts of the system you aren't showing us?
Jun
29
comment How do I make this functional DSL written in an imperative language more efficient?
Are you concerned about optimizing just the run time, or are you also concerned about "compile" time?
Jun
25
comment How to avoid calling String.Replace() in a loop?
@Alexus, yes it'll end up being basically the same algorithm. The reason I'd consider this is just because it doesn't require you to manually write the logic he's describing.
Jun
25
comment How to avoid calling String.Replace() in a loop?
@Alexus, if by that you mean calling .Replace() repeatedly on a StringBuilder, then no. Calling Replace() repeatedly will scan the string multiple times, whereas this will only scan the string once.
Jun
25
answered How to avoid calling String.Replace() in a loop?
Jun
24
comment Is the git “Golden Rule of Rebasing” so essential?
what if I merge someone else's feature branch into my own?
Jun
17
comment Why python function programming functions are not collection methods?
@ALXGTV, none of that is likely to be relevant in python.
Jun
11
comment In git, how to do versioning for a dozen libraries all worked at in parallel
If you insist on having multiple repositories see: stackoverflow.com/questions/816619/…
Jun
11
comment In git, how to do versioning for a dozen libraries all worked at in parallel
I think you should probably not have multiple repositories. See this question: programmers.stackexchange.com/questions/161293/…. As long as you are frequently doing work cross repository, the split is working against you.
Jun
6
comment Is this the correct way to use Bower
Are you using a build tool like grunt/gulp/etc, or other tools like a concatenor/minifier?