7,737 reputation
1736
bio website
location
age
visits member for 3 years, 9 months
seen 1 hour ago

1d
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?
Aug
19
comment How to change the state of a singleton in runtime
why not just use an existing logging framework like log4j?
Aug
12
comment How and what should I be (unit) testing for in this method?
a slightly unrelated point, id probably pull the email stuff out of this function unless this is pretty much at the top level already. at the moment it feels like it breaks the SRP to me
Aug
11
comment Is the inconvenience about merging in SVN prior to v1.5 obsolete by now when lack of metadata isn't the case anymore?
possibly also worth mentioning that svn dosen't have a separate concept of tags either
Jul
31
comment Does lots of Instance Variables within my class suggest flawed Design?
@FinalFind I imgaine Telastyn meant you should use some sort of collection docs.oracle.com/javase/7/docs/api/java/util/Collection.html
Jul
31
comment Reverse a queue using an extra queue
you may want to ask about a specific part of a solution you don't understand
Jul
21
revised If we could get a file's binary form, would this method of file compression work?
added 3 characters in body
Jul
21
comment If we could get a file's binary form, would this method of file compression work?
if anything this is more of a parity/error detecting code (though not a very good one) en.wikipedia.org/wiki/Repetition_code
Jul
21
revised If we could get a file's binary form, would this method of file compression work?
a missing negation in there somewhere
Jul
21
comment If we could get a file's binary form, would this method of file compression work?
additionally one of the arrays is the original file while the other is the complement of the original file
Jul
14
comment What precisely do I/my company need to do “make available/publish” source code changes and satisfy GPL/LGPL
ok you are modifying the source but are you distributing the modified binary to anyone or just using it internally? if you don't distribute the binary you do not need to publish the source anyway
Jul
9
answered Testing Facades, Is it a good idea?