5,148 reputation
942
bio website
location
age
visits member for 2 years, 6 months
seen 4 hours ago

Sep
2
comment Should I throw guard exceptions that will be thrown by internal methods anyway?
Why are you disallowing a truncate to 0 length?
Sep
2
reviewed Reject suggested edit on Beginning a sentence with a function name?
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
A possible race condition is when 2 (or more) processes work on the same data in parallel. Imagine, 2 processes at the same time querying which numbers are free, giving a range and then storing it in a database. Where it can go wrong is this: 1 asks free range(gets a range), 2 ask free range (gets same range as 1 because 1 hasn't written the range yet). 1 saves range. 2 saves range (and in the process overwrites the range of 1 because you only checked at the start which numbers were free)
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
@OMI size of data: how many numbers do you expect to sell, how many rows will this table contain?
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
How does any of these designs prevent race conditions?
Sep
2
reviewed Reject suggested edit on Does Jquery basically use CSS3 for animation and effects?
Sep
1
reviewed Reject suggested edit on Developer failing developer interviews
Aug
29
reviewed Edit suggested edit on C++ Data Server and J2ME client communication
Aug
29
revised C++ Data Server and J2ME client communication
improved formatting
Aug
29
reviewed Reject suggested edit on Structural pattern for an unconventional use of a database
Aug
26
comment How do I move away from the “for-loop” school of thought?
The way I read that link on vectorizing data is that it mainly hides the looping and makes it more efficient but it still takes place. Correct me if I'm wrong but will numpy arrays transform O(n^2) operations into O(n log n) operations? If you don't handle complexity you're just delaying your bottlneck.
Aug
26
answered How do I move away from the “for-loop” school of thought?
Aug
26
comment How do I move away from the “for-loop” school of thought?
If your arrays are slow you may want to think about using other datastructures, like a binary tree. laurentluce.com/posts/binary-search-tree-library-in-python
Aug
26
comment Is method overloading anything more than syntactic sugar?
Following your reasoning, the overloaded "+"-operator is purely syntactic sugar, because it can add 2 numbers but also concatenate 2 strings.
Aug
25
reviewed Approve suggested edit on How to implement a genetic algorithm with distance, time, and cost
Aug
25
reviewed Approve suggested edit on What is referential transparency?
Aug
25
comment Minimal set of critical database operations
I'm wondering what the real problem is? Do you want to whitelist some database operations or blacklist others? Like allow statements with SELECT, UPDATE, INSERT but disallow statements with things you may not need? Like UNION, HAVING etc, ?
Aug
22
reviewed Reject suggested edit on Two HTML elements with same id attribute: How bad is it really?
Aug
22
comment Do you think asking to sign contributor license agreement for a open source project creates a resistance for contributors?
"Lack of a CLA guarantees to me that my work will stay open source." CLA's can provide that too.
Aug
22
reviewed Reject suggested edit on Questioning one of the arguments for dependency injection: Why is creating an object graph hard?