7,682 reputation
1735
bio website
location
age
visits member for 3 years, 6 months
seen 2 hours ago

2d
answered Testing Facades, Is it a good idea?
2d
comment Equidistant polygons
does just plotting with a larger line weight work for you? if not why?
Jul
7
comment An algorithm for reconstructing a graph from its shortest path information?
@Giorgio adding a single edge from v1 to v3 that is longer than v1-v2-v3 results in the same set of matrices unless I'm missing something - so would be a counterexample for the non-uniform edge case
Jul
7
comment Is reading+modifying existing code better than making your own?
also bear in mind the copyright/licensing issue implied by copying someone else's code
Jun
27
comment How should I test boolean function with many possible permutations
@DavidK yes for unit test it might be too slow with a file, this is more target to integration tests
Jun
27
comment How should I test boolean function with many possible permutations
@SilviuBurcea sure, I've mentioned one possible refactor, there are others though, e.g. extract method which MainMa covers
Jun
27
revised How should I test boolean function with many possible permutations
added 427 characters in body
Jun
27
answered How should I test boolean function with many possible permutations
Jun
26
comment Use of AGPL software on server with closed-source software
the "I may also use some IPC, like datagram sockets to provide a bridge between the AGPL software and the other software. This closed sourced software will provide a web interface to the user." part seems more directly a breach of the license to me
Jun
12
comment Is method overriding always a violation of Liskov Substitution Principle?
suggesting that you should almost always call the base method when overriding strikes me as wrong as it implies your method now breaks the SRP
Jun
2
comment Can I, as author and copyright holder, relicense my code under a more liberal license after it has been published under a more restrictive license?
no but they can fork a gpl project and use it internally, or they can fork a gpl project and release the fork as gpl
Jun
2
answered Can I, as author and copyright holder, relicense my code under a more liberal license after it has been published under a more restrictive license?
May
12
comment Should you always pass the bare minimum data needed into a function in cases like this
@Peri a real User class might be complex to create, taking an interface allows you to mock it out so you can keep your tests simple
Apr
29
comment How should I handle exception that *should* never be thrown?
the trouble with using an assert is it won't trigger in production, which for most of these things is exactly when the impossible thing happens
Apr
17
comment Should I still use Debug.Assert today?
@DougM performance critical code, its a reference to the knuth quote. I'd also add that I think the heartbleed bug demonstrates that my view is the correct one, unless you have no other choice, do not elide precondition checks in your release code
Apr
9
comment What is the coding standard for a long parameter list?
there is never only 1 standard xkcd.com/927
Apr
9
comment Wrapper around C++ STL
was it always just wrappers around STL though? it may predate the STL and has later been reimplemented using the STL
Apr
3
comment Why can't a User Story be attached to more than one Feature?
i.e. it may be an indication the story is an epic/too big
Apr
3
comment Are monads a viable (maybe preferable) alternative to inheritance hierarchies?
I suspect this might be type classes vs classes not monads vs classes? otherwise the answer is surely no, as there are type classes/classes that can't meet the monad laws.
Mar
26
comment Why is it bad to write something in language X as if you're writing a program in language Y in terms of using a shared coding paradigm
before you even get to RAII though you want to consider if you need to use new at all, using dynamic storage if you can use automatic storage is just making more work for yourself