764 reputation
37
bio website
location
age
visits member for 2 years, 11 months
seen 3 hours ago

Jun
17
answered How to minimize typos when you code?
May
11
comment Find number of occurrence of a word in a 2D matrix of Characters
Your example does not cover corner cases where multiple occurences overlap (what about a palindromic "TEAMEAT" sequence in the matrix?). If multiple solutions exist, do you want to produce them all or only one?
Apr
21
awarded  Mortarboard
Apr
14
revised What is the pattern for a safe interface in C++
deleted 52 characters in body
Apr
14
comment What is the pattern for a safe interface in C++
@paercebal thanks for your comments; about pure virtual classes, you are right, it does not solve all your constraints (I will remove this part). I understand the "interface error" part and how catching errors at compile-time is useful: but you asked if you are paranoid, and I think the rational approach is to balance your need for static checks with the likeliness of the mistake happening. Good luck with the compiler thing :)
Apr
14
answered What is the pattern for a safe interface in C++
Mar
22
comment Patterns for propagating changes up an object model..?
#1 is not necessarly bad if you communicate through an interface (IAnimalObserver) instead of that specific Parent class.
Mar
2
awarded  Yearling
Feb
11
revised Testing all combinations
More explanations
Feb
11
revised Testing all combinations
Avoid repetition ("in order")
Feb
11
answered Testing all combinations
Sep
16
awarded  Commentator
Sep
16
comment What's best practice for a SELECT * FROM SQL in PHP?
btw, do you need an intermediate Array? why not output the table directly?
Sep
12
awarded  Enthusiast
Sep
1
answered Is there any way to detect on a website if the mouse has not been moved for awhile?
Aug
25
answered Generic term for “objects” vs “fundamental types”?
Aug
20
comment How to assure users that website and passwords are secure
@Thomas Noted, thanks.
Aug
20
comment How to assure users that website and passwords are secure
SHA-512 with random per-user salt is ok, but with no additional effort, you can use bcrypt which seems more secure. More importantly, with security, you should always check with an expert (I am not one).
Jun
19
comment Namespaces, why are they necessary for prefixes?
But you would'nt prefix every element with the fully qualified URI, would you? Prefix is a local symbol in your document that refers to the URI. Even if you have two documents using the same prefix p, what matters is which URI they respectively point to. Of course, you cannot merely copy/paste the content of one document into another. You must dereference prefixes to fully qualify all elements, with respect to each document's namespace declaration.
Jun
19
answered Namespaces, why are they necessary for prefixes?