Reputation
4,279
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 28
Newest
 Cleanup
Impact
~122k people reached

Sep
11
comment How best to handle database refactoring within a team?
The database migration scripts that the OP currently uses may be in source control, so how does Liquibase solve the problem?
Aug
14
comment Question about mocking externals
@ex3v - I've updated the answer.
Aug
11
comment Is splitting up a function into several inner functions an anti-pattern?
If you think Clean Code is "the bible for devs", you should read Code Complete.
Jul
29
comment Avoiding Double POST
Why are you worried about this?
Jul
23
comment Improve coding quality
Reading Code Complete is a great start.
Jul
21
comment Web Service REST clarification
@Residuum - multiple PUT requests to the same URL should not insert a new entity every time. If the entity already exists, it will simply replace its current state with that given. The effect of N PUT requests to the same entity URL is the existence of the entity with the given state.
Jul
9
comment Program Design clearness vs convenience
One option would be to add a source property to DomainObject and set it to the filename when loading from a file. This provides the info your colleague wants without breaking encapsulation or leaking the abstraction too much.
Jul
1
comment Should I be using a composite key for this table?
See dba.stackexchange.com/q/8334/13333
Jun
25
comment When to stop reviewing code?
Code quality and defect detection are both products of code reviews. I recommend you read chapter 20 "The Software Quality Landscape" of Code Complete. It opened my eyes.
Jun
25
comment When to stop reviewing code?
Part of the goal of code reviews is absolutely spotting bugs. Testing will never catch everything, so multiple defect detection techniques should be used. See Code Complete, Table 20-2 for details on defect detection rates of various methods.
Jun
11
comment Creating an Interface To a Language's Standard Library?
I believe so, yes.
Jun
11
comment Creating an Interface To a Language's Standard Library?
Martin Fowler's take: martinfowler.com/articles/nonDeterminism.html#Time
Jun
11
comment Should custom data elements be stored as XML or database entries?
Not if you're using indexes all the way.
Jun
10
comment Pooling (Singleton) Objects Against Connection Pools
Let us continue this discussion in chat. -- Never mind, Chrome doesn't like the SE chat because it uses mixed content.
Jun
10
comment Pooling (Singleton) Objects Against Connection Pools
You don't have control over the timeout when using a database connection pool? What pool implementation are you using?
Jun
10
comment Pooling (Singleton) Objects Against Connection Pools
For #1, how would you handle more requests than DAOs in the pool?
Jun
9
comment Pooling (Singleton) Objects Against Connection Pools
I wouldn't worry about any performance effects of DAO instantiation: programmers.stackexchange.com/q/149563/34183
Jun
5
comment Quite confused about what constitutes Current state of a resource
If the relationship between a parent resource and children (e.g. the number of child resources) isn't part of the parent's state, what state is it a part of?
Jun
2
comment Should a Parent with Children have a DefaultChild, or should a Child have a Default property?
@Dunk: option 2 would work as long as the default tracker is specific to the User or the User-Customer relationship, for example on a many-to-many link table.
May
30
comment Securing web services
One reason to avoid sending a username/password for every request is to avoid having to keep them in the client state for inclusion with every request. Capturing them solely to add them to a single request, then working with time-limited tokens for subsequent requests is a bit more secure.