Reputation
2,731
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
2 8 19
Newest
 Enthusiast
Impact
~81k people reached

Jun
9
comment Are “plus” and “minus” appropriate method names?
sum sounds wrong in this context. I prefer .net's AddDays.
Jun
5
comment How to handle rating?
I'd store both the individual votes and the denormalized totals (and don't make the stackexchange mistake of storing only upvotes - downvotes instead of both).
Jun
2
comment If possible, would it be a bad practice to use Nullable for non value types?
"the language does not seem to have a problem with using nullable on other types" Nullable<T> has a struct constrain on T, so you only use it on value types.
Jun
1
comment std::vector Non-Array Implementation?
@ThomasEding Of course. This was just a response to Steven's comment that the performance guarantees would be hard to implement without a contiguous memory block.
Jun
1
comment std::vector Non-Array Implementation?
@StevenBurnap A fixed depth tree has the same asymptotic performance as a single block. Of course in practice the additional indirections will decrease performance.
Jun
1
comment How to think as a C programmer after biased with OOP language?
As a C# programmer I'd miss delegates (function pointers with one bound parameter) far more than I'd miss objects.
May
22
comment Resetting vs. re-sending forgotten passwords
See How to securely hash passwords? on security.se.
May
19
comment How do you avoid getters and setters?
I don't think the customer class should know about any of these things.
May
11
comment Is there any point in preventing developers from having a local copy of the database in their machine?
If your application is well written, knowledge of the database scheme shouldn't allow any attacks. Don't rely on security-through-obscurity.
May
11
comment Is there any point in preventing developers from having a local copy of the database in their machine?
How would they even write database queries without knowing the schema?
May
7
comment Java: why do collections accept a Comparator but not (a hypothetical) Hasher and Equator?
1) In C# you can pass an IEqualityComparer<T> to a hash based collection. If you don't specify one, it uses a default implementation based on Object.Equals and Object.GetHashCode(). 2) IMO overriding Equals on a mutable reference type is rarely a good idea. That way the default equality is pretty strict, but you can use a more relaxed equality rule when you need it via a custom IEqualityComparer<T>.
May
4
comment Synchronization between two systems using MongoDB as changelog
One pitfall is that ObjectIds don't increase monotonically.
Apr
18
comment Using uniqueness types to implement safe parallelism
You might want to take a look at Mozilla's Rust.
Apr
13
comment How is distribution of PKI certificates allowed?
I'd expect certificates to not meet the threshold of originality required for copyright protection. In particular check the section "Mechanically-produced works" in the wikipedia article.
Apr
12
comment How can I argue convincingly against duplicating database columns?
Wouldn't adding views that do the join internally make writing queries just as easy? You could suggest them as an alternative.
Apr
7
comment Has pre-increment operators become that common?
In C++ with custom iterators this might be a useful optimization. In C I don't see why it should matter.
Apr
2
comment Does path coverage guarantee finding all bugs?
With 32 bit integers and typical cryptographic hashes (SHA2, SHA3, etc.) computing this should be quite cheap. A couple of seconds or so.
Mar
30
comment Does path coverage guarantee finding all bugs?
Easy for sufficiently small integers :)
Mar
23
comment Method extraction vs underlying assumptions
@gnat I think this question is closer to "Is it OK to split long functions and methods into smaller ones even though they don't preserve the class invariants?"
Mar
14
comment Working with static constructor in Java
As I read the question, it's about static initializers, not about normal static emthods.