85,375 reputation
19195342
bio website
location Lancaster, CA
age
visits member for 4 years, 2 months
seen 34 mins ago

enter image description here


Dec
12
comment What are good ways of balancing informative exceptions and clean code?
I upvoted your answer, but error messages made in this way are "static"; you can't add modifiers to them like the OP is doing in his code. So you've effectively left out some of his functionality.
Dec
12
comment Why did Java make package access default?
I've never found that argument for testing private methods compelling. You refactor code into methods all the time for reasons that have nothing to do with the public API of a class, and it's a very nice thing to be able to test those methods independently, without involving any other code. That is the reason you refactored, right? To get a piece of independent functionality. That functionality should be testable independently as well.
Dec
12
comment Unit testing side effect-heavy code
It's too bad the library didn't use composition instead of inheritance, because you could just mock the command class if that were the case.
Dec
11
comment Creative Commons 3 vs Common Public Attribution License Version 1.0 for my PHP Script
Why don't you just write your four points as a license?
Dec
11
answered How do I recreate this Access Control/Group/ whatever methodology in OO/MVC
Dec
11
comment Unit test DAO code using SQL Lite when the application database is Oracle
You can either unit test using an Oracle database (sort of a contradiction), or avoid the SQL that SQLite doesn't understand. There aren't going to be any other databases that understand the Oracle-specific code. Why don't you use integration tests to cover the Oracle-specific code?
Dec
11
awarded  design-patterns
Dec
10
comment Does Abstract Factory Pattern scale?
You might want to make those things clear in your answer.
Dec
10
reviewed Close How to get requirements from Non-technical client?
Dec
10
revised How signing out a CLA prevents legal issues in open-source projects?
added 5 characters in body
Dec
10
comment Does Abstract Factory Pattern scale?
You're kidding, right? What if your company makes 256 products? Or 1024?
Dec
10
revised Does current evidence support the adoption of Contextual over Canonical Data Models?
deleted 10 characters in body
Dec
10
revised When should var be used instead of declaring an explicit type?
edited title
Dec
10
awarded  Nice Answer
Dec
10
comment Why not free memory as soon as its reference counter hits zero
Strongly related: programmers.stackexchange.com/questions/113209/…
Dec
10
comment Are verb-like classes a code smell?
What are you talking about? All of your class names are already nouns, not verbs.
Dec
9
answered Why not free memory as soon as its reference counter hits zero
Dec
9
revised Software without a testable goal
added 166 characters in body
Dec
9
answered Software without a testable goal
Dec
9
comment Software without a testable goal
@Matt: Thanks for the additional information. That's enough for me to write an answer.