45,810 reputation
370162
bio website google.com
location Germany
age 47
visits member for 4 years, 4 months
seen 43 mins ago

Senior developer, mathematics and CS background. C# / C++ / VB.NET / VBA, but did also some Perl / Python / Javascript / Scheme and other languages in the past.


Mar
19
revised Algorithm for triangulating a polygon with given boundary edges
Tags generalized, first sentence improved
Mar
19
awarded  Good Answer
Mar
19
revised Algorithm for triangulating a polygon with given boundary edges
edited title
Mar
19
comment Algorithm for triangulating a polygon with given boundary edges
I removed the part from your question which would cause it to be closed soon. Now it is a question about algorithms, which is ok for this site (it is still not a very good one, because it does not tell which algorithms you have already investigated, or what you mean by "well-shaped"). If you are not interested in algorithmic answers, delete the question and ask instead on softwarerecs.stackexchange.com
Mar
19
revised Algorithm for triangulating a polygon with given boundary edges
deleted 412 characters in body
Mar
19
comment Write two versions of class with two different super classes without violating DRY?
@user949300: "desirable" is a soft term, and yes, when you have a component which can either take a dict or a LimitedDict as an input, and that piece of software was written with the potential loss of elements in the container in mind, then this will probably work, of course. But only because something works does not mean it leads you to a maintainable solution. The LSP is about how to design inherited classes which can be used as a replacement for the base class (or other derived classes) in most cases, not in some specially prepared cases.
Mar
18
awarded  Nice Answer
Mar
18
revised Write two versions of class with two different super classes without violating DRY?
added 7 characters in body
Mar
18
revised Write two versions of class with two different super classes without violating DRY?
added 299 characters in body
Mar
18
answered Write two versions of class with two different super classes without violating DRY?
Mar
18
comment When is it a good idea to force garbage collection?
@MainMa: I disagree on the downvoting and closing of Stephen's answer. There is simple way of profiling correctly: you profile twice, once without forcing the GC, and once with forcing it. When there is a noteable difference, it will make sense to force the GC, otherwise not (in fact, when trying forced GC calls as an optimization, one should IMHO always profile, since it will probably show that the influence of the forced GC calls is much lower than expected).
Mar
17
revised Should I always return an error code from C functions?
added 116 characters in body
Mar
17
revised Should I always return an error code from C functions?
added 200 characters in body
Mar
17
answered Should I always return an error code from C functions?
Mar
16
comment Do enums create brittle interfaces?
Using an enum for colors creates brittle interfaces, not just "using an enum".
Mar
16
comment Why don't we have a default character for the opposite of 0?
The opposite of zero is not MAX_VALUE, since the opposite of MAX_VALUE is MIN_VALUE.
Mar
16
revised How granular should we get with repositories?
added 9 characters in body
Mar
16
revised How granular should we get with repositories?
added 363 characters in body
Mar
16
answered How granular should we get with repositories?
Mar
16
comment How to efficiently troubleshoot or test new code when hardware setup to reproduce bugs is difficult or impossible to obtain?
@Rémi: maybe "can seldom" is not the usual order of words in plain english? FWIW, I changed my answer to make this unambigous, thanks for the reply.