47,408 reputation
373169
bio website google.com
location Germany
age 47
visits member for 4 years, 4 months
seen 7 hours 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.


Apr
7
answered Why are my unit tests so expensive?
Apr
7
comment Why are my unit tests so expensive?
So you were doing "two days of just unit testing"? And since you work upfront and spend the same time for coding as for writing tests, does that mean you did two days of coding without any testing, and could not find more than a minor bug? Sounds strange.
Apr
7
comment How much work should I place inside a lock statement?
@RussellatISC: as Joseph already stated: Monitor.Wait releases the lock. I recommend to have a look into the docs.
Apr
7
comment How do you unit test \ use TDD methods for ETL's and reporting projects?
"since the age in the base data changed" - what is so hard about providing stable test data as input? If there are time depend calculations involved, mock the reference timer out.
Apr
7
comment How do you unit test \ use TDD methods for ETL's and reporting projects?
Can you please explain in detail what you mean by "the reports SP", and why refreshing the data in the student field invalidates your test data? I don't get it.
Apr
7
revised How much work should I place inside a lock statement?
deleted 49 characters in body
Apr
7
comment How much work should I place inside a lock statement?
@RussellatISC: ThreadPool.QueueUserWorkItem calls SomeMethod asynchronously, the "lock" section above will be left before or at least shortly after the new thread with SomeMethod starts to run.
Apr
7
revised How much work should I place inside a lock statement?
rolled back to a previous revision
Apr
7
revised How much work should I place inside a lock statement?
added 153 characters in body
Apr
7
answered How much work should I place inside a lock statement?
Apr
7
comment What does “Increment” in Agile software development mean?
@KhrystynafromUkraine: "Increment" means a small portion of functionality or requirement you add to a program within the timeline of an iteration. You can not only have increments without iterations, you can also have iterations without increments - when you do only refactoring, without adding new functionality to your program.
Apr
7
comment How to avoid big class complexity while keeping encapsulation?
@castarco: AFAIK Sagemath is build using NumPy, and NumPy is implemented using C code for performance reasons. Did you consider to follow a similar path?
Apr
7
comment How “good” are PC randomly generated variables?
@user3002386: that is a different question. When you take the time and follow the recommendations on programmers.stackexchange.com/help/how-to-ask, I guess you could make a question worth to be posted from it.
Apr
7
comment How to avoid big class complexity while keeping encapsulation?
@castarco: well, I don't know what you measured in comparison to what, and how many "object creations" you expect per function call (I was thinking of one helper object per type of calculation, could be reused for many calculations of the same type). But maybe that is exactly what you have in mind with your Funtion classes? So is your problem solved that way, or do you still have a question?
Apr
7
comment How “good” are PC randomly generated variables?
There is nothing like "usual pseudo-random source on a PC" - there is a pseudo random generator implemented in version X of runtime environment Y for programming language Z - for arbitrary combinations of X,Y and Z. And I am not even talking about additional libraries.
Apr
7
revised How to avoid big class complexity while keeping encapsulation?
added 88 characters in body
Apr
7
answered How to avoid big class complexity while keeping encapsulation?
Apr
7
comment How “good” are PC randomly generated variables?
This depends - on the algorithm (which depends on the software you use, not on "the PC"), and more important, on your definition of "well generated". In the current form, the question is not answerable. I suggest you look for "pseudo random" on google and come back when you informed yourself enough to ask a better question.
Apr
7
revised Would SQLite be less useful without accepting inserts of non-numeric values into numeric columns?
title more focussed
Apr
6
revised Would SQLite be less useful without accepting inserts of non-numeric values into numeric columns?
added 26 characters in body