Reputation
9,596
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 12 26
Newest
 Nice Answer
Impact
~457k people reached

3h
reviewed Approve smart-pointer tag wiki excerpt
3h
reviewed Approve a funky interleaved sorting problem
3h
reviewed Approve smart-pointer tag wiki
3h
revised Why isn't C's most basic printing function named `print` instead of `printf`?
Spelling and grammar
2d
comment Should every class I write adhere to an interface?
I'd also add that interfaces should model abstractions, so don't create them by simply hoisting all the public members of a class. Think about what that class represents, and only put those things in the interface that any object of that type should have. You might also wind up creating multiple interfaces (e.g. Moves and Shoots for your tank example) for a single class.
Apr
28
comment Database design, processor vs inconsistency
The second approach is the one that has been used by just about every financial system since day 1. Every day you "balance the books" by summarizing the transactions and applying them to the previous day's balance. Then you record the new balance and use that going forward. Continually re-computing balances over an ever-expanding time frame is not scalable.
Apr
26
answered Logging an audit trail (Java application)
Apr
26
answered Possible performance issues implementing multi-tenant database?
Apr
25
comment How to treat “The field is never used” warnings?
Note that this is not always possible. I sometimes have fields that are used by AOP and other external processes that the IDE doesn't know about. In those cases I usually use the IDE's //unused facility with a quick comment about what actually references the variable.
Apr
25
comment Reverting the vim source command
Or better yet, the vi and vim Stack Exchange site (vi.stackexchange.com).
Apr
21
comment My coworker is a nice guy, but his performance is sub-par. Do I tell my boss?
+1 for putting the focus on bad code instead of playing the blame game. Internecine conflict always has a negative impact on the schedule, and on code quality in general.
Apr
15
comment Method returning an unmodifiable list
The IDE will just show that the return value is a list, there's no way for it to show that the list is unmodifiable (since "unmodifiable list" isn't a data type).
Apr
13
answered Testing a bootloader written from scratch?
Apr
13
answered Warnings in a REST API as not critical errors
Apr
13
answered Should an audit user column be nullable?
Apr
5
comment Should temporary files be saved to /tmp or the current working directory?
@musiphil: I never said they'd fix the permission problem, I was responding to his question about using system calls to create the files.
Apr
5
comment Should temporary files be saved to /tmp or the current working directory?
@gurka: You should be calling tmpfile(3) to generate your temporary files, or at least calling mktemp(3) to create the file names.
Apr
4
reviewed Approve hiphop tag wiki excerpt
Apr
4
reviewed Approve hiphop tag wiki
Mar
24
comment REST: Can I use POST request to read data?
Cons are it does add a level of indirection to calls that use the service, and if you don't have some kind of expiration policy you wind up with a lot of abandoned data. Pros are you avoid the issue you're having, and it's more RESTful than reading with a POST, plus you can share data across multiple calls, so you can establish a "context" for a series of related calls.