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

Dec
12
comment Why doesn't Java String have static string manipulation methods?
null is an exceptional state and should be handled explicitly.
Dec
11
comment Creative Commons 3 vs Common Public Attribution License Version 1.0 for my PHP Script
I believe that your first condition ("but can not redistribute it as a new product or with a different name") contradictions the OSI definition of open source.
Dec
11
comment ASP.NET Web Forms is bad, or what am I missing?
Another issue with your example is that it's vulnerable to CSRF attacks. (But that'd also be true if you used POST without an Anti-CSRF token)
Dec
11
comment ASP.NET Web Forms is bad, or what am I missing?
Because the HTTP specification says so. "In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered "safe"."
Dec
11
comment ASP.NET Web Forms is bad, or what am I missing?
Don't use GET to modify something. At minimum you should use POST, but preferably DELETE.
Dec
11
comment Under what scenarios will an App's localStorage get cleared?
"is it a good idea to use localStorage?" That depends on what you want to store there. You cannot expect it to be permanent, so design your application to take that into account.
Dec
11
comment How should we “pick the comfortable programming language” in an interview?
Unless you have reason to believe that the interviewers are good functional programmers, I'd avoid haskell.
Dec
11
comment How to identify unstable floating point computations?
I meant a custom type that keeps track of upper and lower bounds by using different rounding. This doesn't work in every situation (In particular non continuous operations like x > y don't work), but should work well in many cases.
Dec
11
comment How to identify unstable floating point computations?
A custom numeric type that keeps track of the error in C++ should work decently. Of course that requires some changes to the program.
Dec
11
comment Where to store the private key?
The best you can do about malicious clients is restricting them to a well defined service API, not giving them direct access to the db. You can't really do anything beyond that, since you can't hide a secret in the client.
Dec
8
comment How can we calculate Big-O complexity in Functional & Reactive Programming
For the recursive approach you need to know how a certain recurrence relation maps to the cost. See A Short Tutorial on Recurrence Relations for a longer explanation.
Dec
8
comment How can we calculate Big-O complexity in Functional & Reactive Programming
You need to know the performance of the underlying algorithms of the functions you're using.
Dec
6
comment How to camel-case where consecutive words have numbers?
What about SHA-512/256 or SHA3-256? I'm having a hard time coming up with names that don't contain an _.
Dec
6
comment How deterministic are SessionIDs from SHA'd GUIDs?
I'm not worried about rollover, but rollback. I'm worried about rollback after restoring from backup, crashes, etc.
Dec
6
comment How deterministic are SessionIDs from SHA'd GUIDs?
I still recommend a proper CSPRNG over Hash(secret+counter). Counters can roll back when restoring from backup, secrets might not leak once... A proper CSPRNG is forward secret, recovers from compromise, doesn't require persistent state,... If you use the hashing approach, at least include a CSPRNG output in the hash inputs in addition to secret and counter.
Dec
6
comment How deterministic are SessionIDs from SHA'd GUIDs?
UUIDs don't necessarily contain fully random bits. V4 GUIDs are mostly random (apart from 6 bits) as you said. But V1 GUIDs are highly structured, and it sounds like the OP's API still uses V1 GUIDs.
Dec
5
comment Is it ethical or even legal to track user data/metrics using IP
Storing full email addresses is already slightly problematic in Germany.
Dec
5
revised Sorting an array of numbers with decimal places
deleted 16 characters in body
Dec
4
revised Sorting an array of numbers with decimal places
added 34 characters in body
Dec
4
answered Sorting an array of numbers with decimal places