7,823 reputation
1837
bio website
location
age
visits member for 4 years
seen yesterday

Dec
17
awarded  Yearling
Dec
15
comment Separate code coverage reports for unit and integration tests, or one report for both?
The type of coverage metrics being used seems to be completely orthogonal to the question, any metric can be calculated for unit test or integration test or both
Dec
15
answered For a beginner, should the adoption of a language determine which version to learn?
Nov
26
comment Algorithm for finding automorphisms of a string in O(n) time
re: edit, yes it doesn't work - for "byebye" this will return 3. according to the question it should return 2.
Nov
26
comment Algorithm for finding automorphisms of a string in O(n) time
I don't think this even works- you are counting the number of rotations until you get an automorphism not the number of automorphisms in all rotations
Nov
11
comment Is there any mechanism to make programming language more stable(compatible) for changes?
with the corollary that as much of the language as possible should be defined in importable packages/modules as possible
Oct
29
comment Class Versus Struct
@EsbenSkovPedersen no blogs.msdn.com/b/ericlippert/archive/2010/09/30/…
Oct
29
comment Class Versus Struct
@Klaim technically its not right for C# either (structs can be on the heap) The important distinction in C# is between value semantics and reference semantics, a distinction that C++ doesn't need as it can have values or references for anything
Oct
27
comment Algorithm to match timestamped events from two sources
do you actually need the max offset if you are going to check both forward and backward nearest neighbours match? also this misses returning the non matched items as in the question
Sep
30
awarded  Explainer
Sep
22
comment Why is there no 'finally' construct in C++?
another advantage of RAII is that it works for member variables as well as local variables (neither finally nor using works for members)
Sep
16
comment Having unwanted bits in version control history
hg convert could help with the last bit if wanted, but mostly i'd just go with a completely new repo
Sep
9
comment What constitutes “Proper use” of the javascript Eval feature?
question body and title do not match
Aug
31
awarded  Nice Answer
Aug
21
comment Is this method pure?
it is pure, in a very similar way to how IO in haskell is pure, its a pure function that produces a sequence of action aka an imperative program. the difference here is that in haskell the sequence of actions can only be executed by the runtime, where as here you can execute it as many times as you like. So Eric is right it is a pure function, but also a unsafe function and should therefore be avoided
Aug
21
comment How to represent a graph with multiple edges allowed between nodes and edges that can selectively disappear
if you are attaching info for every edge to the cell you effectively have an adjaceny list anyway, you lose the benefit a matrix gives you for dense graphs
Aug
20
comment How to represent a graph with multiple edges allowed between nodes and edges that can selectively disappear
surely an adjacency matrix normally can't represent more than 1 edge between each pair of nodes
Aug
20
comment How to name a clamp function that only clamps from one side?
Clamp is a reasonable option as well and considering custom types is also a useful point +1
Aug
19
revised How to name a clamp function that only clamps from one side?
added 175 characters in body
Aug
19
answered How to name a clamp function that only clamps from one side?