Reputation
9,366
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 12 25
Newest
 Talkative
Impact
~429k people reached

Sep
24
answered How do web developers deal with editing (pre-processed) vendor prefixed CSS in browser dev tools?
Sep
22
revised Service oriented web architecture speed
Trivial grammar tweak
Sep
17
comment How to deal with tremendous number of failing tests?
This is why I like JUnit's @Ignore annotation -- you can keep your tests, but not execute them. Then it's simply a matter of re-enabling them and fixing them one at a time. It allows you to narrow your focus down to just a handful of tests at a time, instead of being overwhelmed with thousands of failures.
Sep
17
answered Implementing a complexity hiding layer
Sep
11
revised Under the hood of Java application servers resources
Added explanation and link to Jersey project.
Sep
11
answered Under the hood of Java application servers resources
Sep
9
comment Is it good to define a variable inside a loop?
@RobertHarvey: True, but which code is clearer: the single assignment, or the scope restriction? I'd argue that placing the declaration (and assignment) inside the loop shows intent, which is more valuable than explicitly optimizing the loop.
Sep
8
comment Is it good to define a variable inside a loop?
I don't think there's been a compiler written in the last twenty years (outside of an undergrad compiler course) that wouldn't figure out you're assigning the same value on each iteration and move that assignment out of the loop.
Aug
18
comment Using a distributed system as an alternative to disk storage
I think you'd be better off with a RAID array of SSDs, unless you're working with Infiniband or some other insanely fast network. And once you start dispersing your network, latency creeps in and will kick your throughput in the gnuts.
Jul
9
awarded  Guru
Jul
2
answered How do binary trees use memory to store its data?
Jun
3
answered Architecture: Should I schema validate incoming reply messages?
May
29
answered How to use one web page to create and edit database entries
May
21
answered Should I use BLOB or Tables for storing large data?
May
11
answered Structuring Procedural vs OO code
Apr
28
answered Is it better to make database calls or external API calls first in the context of a single Web request?
Mar
12
answered Working with two different database types for one application
Feb
2
comment S3 image urls in database
@the_: UUIDs would be better, since random number generators can (by design) produce the same number more than once. Since you're using Postgres, I'd recommend just using a sequence.
Jan
30
comment S3 image urls in database
@the_: Use something like a UUID or a database sequence (if your database software offers one). If your data volume is low enough, you could probably get away with something like (user ID + timestamp).
Jan
29
comment S3 image urls in database
Three things you can do: (1) save the parent first to get the ID, (2) have an ID generator you can call to set the ID before you save it, or (3) generate a separate (non-primary) ID to act as a surrogate key and store that in a separate field in Product (say ProductImageID).