Reputation
3,499
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
3 10 23
Newest
 Civic Duty
Impact
~109k people reached

Apr
7
comment How can I promote the use of the Builder pattern in my team?
Why builders instead of pseudo-mutators? (i.e. a method that returns a copy of the object, with one/a few fields changed.) Builders are ugly, even if they're sometimes required for performance.
Apr
6
revised How to solve O (N log N) and more
formatting
Apr
5
comment Exception Handling: When and Why?
In a well designed language (e.g. Rust) you barely need exception handling. In C# avoiding exceptions if much harder.
Apr
4
comment Why does Google Chrome use SQLite if the usage of threads results in parallel access?
Saving cookies is a rare operation, so the cost of thread synchronization doesn't matter much.
Apr
4
comment Can the circle-ellipse problem be solved by reversing the relationship?
You can solve the problem combining immutability with a factory method.
Apr
4
comment Is there any reason to use id= or name= on AngularJS directives?
name might be useful for accessibility and automation. For example for a password manager.
Apr
4
comment Is there any reason to use id= or name= on AngularJS directives?
If you ever need them, add them when you need them.
Apr
3
comment Repository UUID equivalent
You could use the url or the root-hash. But without context it's hard to advise you.
Apr
1
comment In which process does syntax error occur? (tokenizing or parsing)
@PaulDraper Not sure if separating out a regular language as first phase is the right choice. For example matched pairs (not regular) might be necessary to describe string literals in some languages, yet it still makes sense to handle them in the first phase. Avoiding/minimizing back-tracking seems like a better guideline.
Mar
31
comment What is a Relocatable Binary?
What's their reason for such complicated fixups? Why isn't pointer sized addition enough? (At least for load-time relocation, at link time you might want to do more complicated optimizations, like shortening jumps, but I'd expect those to happen on an intermediate representation)
Mar
31
revised Purpose of Base Address?
added 40 characters in body
Mar
31
comment What is a Relocatable Binary?
Related question: Purpose of Base Address?
Mar
24
comment Storing mass user-files
I'd switch to in-house once the costs of the third party exceed the costs of hiring admins and buying hardware to do it yourself.
Mar
24
comment How to secure my authentication code?
This question should be acceptable on Code Review, but I'd recommend fixing the issues already pointed out (e.g. parameterized queries, password hashing) first.
Mar
24
comment How to secure my authentication code?
@MarjanVenema password_hash takes care of that. Just use password_hash to create the hash and password_verify() to verify. On older versions of php, use the polyfill.
Mar
24
comment Is “use ”abc“.equals(myString) instead of myString.equals(”abc“) to avoid null pointer exception” already problematic in terms of business logic?
I'd use Object.equals(a, b) for comparisons. Add an explicit != null assertion if you need that instead of abusing a method call to check it implicitly.
Mar
24
comment How to secure my authentication code?
Don't store plaintext passwords. Hash them using password_hash.
Mar
24
comment How to secure my authentication code?
You forgot the die call after setting the Location header. Probably harmless in this case, but can easily lead to security holes in future versions.
Mar
23
comment How do I generate multiple hashes that can be resolved to a single value?
It's called encryption. You get different ciphertext if you use different nonces/IVs.
Mar
23
comment Can StringBuilder be used to effectively store and manage multiple variables of data?
Have you considered CSV or Json?